summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.jetpack-connection-banner.php')
-rw-r--r--plugins/jetpack/class.jetpack-connection-banner.php73
1 files changed, 38 insertions, 35 deletions
diff --git a/plugins/jetpack/class.jetpack-connection-banner.php b/plugins/jetpack/class.jetpack-connection-banner.php
index d077e7f5..285013d3 100644
--- a/plugins/jetpack/class.jetpack-connection-banner.php
+++ b/plugins/jetpack/class.jetpack-connection-banner.php
@@ -69,19 +69,19 @@ class Jetpack_Connection_Banner {
}
/**
- * Given a string for the the banner was added, and an int that represents the slide to
+ * Given a string for the the banner was added, and an int that represents the slide to
* a URL for, this function returns a connection URL with a from parameter that will
* support split testing.
*
* @param string $jp_version_banner_added A short version of when the banner was added. Ex. 44
- * @param string|int $slide_num The index of the slide, 1-indexed.
+ * @param string|int $slide_num The index of the slide, 1-indexed.
* @return string
*/
function build_connect_url_for_slide( $jp_version_banner_added, $slide_num ) {
global $current_screen;
return Jetpack::init()->build_connect_url(
- true,
- false,
+ true,
+ false,
sprintf( 'banner-%s-slide-%s-%s', $jp_version_banner_added, $slide_num, $current_screen->base )
);
}
@@ -141,7 +141,10 @@ class Jetpack_Connection_Banner {
function enqueue_banner_scripts() {
wp_enqueue_script(
'jetpack-connection-banner-js',
- plugins_url( '_inc/jetpack-connection-banner.js', JETPACK__PLUGIN_FILE ),
+ Jetpack::get_file_url_for_environment(
+ '_inc/build/jetpack-connection-banner.min.js',
+ '_inc/jetpack-connection-banner.js'
+ ),
array( 'jquery' ),
JETPACK__VERSION,
true
@@ -174,7 +177,7 @@ class Jetpack_Connection_Banner {
<div class="jp-wpcom-connect__vertical-nav-container">
<div class="vertical-menu__feature-item jp-feature-intro vertical-menu__feature-item-is-selected">
<div class="vertical-menu__feature-item-icon">
- <svg class="jp-wpcom-connect__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 1 20 20" version="1.1"><path d="M14.4 11.3L10.5 18.1 10.5 8.7 13.7 9.5C14.5 9.7 14.9 10.6 14.4 11.3L14.4 11.3ZM9.6 13.3L6.5 12.5C5.7 12.3 5.3 11.4 5.7 10.7L9.6 3.9 9.6 13.3ZM10 1C4.5 1 0 5.5 0 11 0 16.5 4.5 21 10 21 15.5 21 20 16.5 20 11 20 5.5 15.5 1 10 1L10 1Z" /></svg>
+ <svg class="jp-wpcom-connect__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" version="1.1"><path d="M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M11,14H6l5-10V14z M13,20V10h5L13,20z"/></svg>
</div>
<span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Welcome to Jetpack', 'jetpack' ); ?></span>
</div>
@@ -223,10 +226,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Jetpack simplifies site security, customization, and management.', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/jetpack-welcome.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/jetpack-welcome.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it',
+ 'jetpack'
); ?>" height="auto" width="250" />
</div>
@@ -285,10 +288,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Detailed stats and traffic tools to help your site grow', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/stats-people.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
+ <img src="<?php echo plugins_url( 'jetpack/images/stats-people.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
'Get clear and concise stats and analytics about your visitors',
- 'jetpack'
+ 'jetpack'
); ?>" height="auto" width="225" />
</div>
@@ -337,10 +340,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Multiple security tools to give you peace of mind', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/security.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/security.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security',
+ 'jetpack'
); ?>" height="auto" width="250" />
</div>
@@ -391,10 +394,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Hundreds of beautiful themes to choose from', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/customize-theme.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Choosing a design for your site is essential. It defines your brand, your layout, and your visitors’ reading experience',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/customize-theme.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Choosing a design for your site is essential. It defines your brand, your layout, and your visitors’ reading experience',
+ 'jetpack'
); ?>" height="auto" width="250" />
</div>
@@ -446,10 +449,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Faster site speeds through the WordPress.com CDN', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/cloud-based.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Jetpack automatically optimizes and speeds up images using the global WordPress.com Content Delivery Network (CDN)',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/cloud-based.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Jetpack automatically optimizes and speeds up images using the global WordPress.com Content Delivery Network (CDN)',
+ 'jetpack'
); ?>" height="auto" width="225" />
</div>
@@ -489,10 +492,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'Free WordPress apps to manage your site(s) from any device', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/apps.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Our mobile and desktop apps are free and available to you on Apple or Android devices once Jetpack is connected to WordPress.com',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/apps.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Our mobile and desktop apps are free and available to you on Apple or Android devices once Jetpack is connected to WordPress.com',
+ 'jetpack'
); ?>" height="auto" width="225" />
</div>
@@ -532,10 +535,10 @@ class Jetpack_Connection_Banner {
<h2><?php esc_html_e( 'More Jetpack features our users love', 'jetpack' ) ?></h2>
<div class="jp-wpcom-connect__content-icon jp-connect-illo">
- <img src="<?php echo plugins_url( 'jetpack/images/customize-theme-2.svg', dirname( __FILE__ ) ); ?>" alt="<?php
- esc_attr_e(
- 'Jetpack includes other features that help you customize your site',
- 'jetpack'
+ <img src="<?php echo plugins_url( 'jetpack/images/customize-theme-2.svg', dirname( __FILE__ ) ); ?>" alt="<?php
+ esc_attr_e(
+ 'Jetpack includes other features that help you customize your site',
+ 'jetpack'
); ?>" height="auto" width="225" />
</div>
@@ -592,7 +595,7 @@ class Jetpack_Connection_Banner {
<div class="jp-wpcom-connect__vertical-nav-container">
<div class="vertical-menu__feature-item jp-feature-intro vertical-menu__feature-item-is-selected">
<div class="vertical-menu__feature-item-icon">
- <svg class="jp-wpcom-connect__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 1 20 20" version="1.1"><path d="M14.4 11.3L10.5 18.1 10.5 8.7 13.7 9.5C14.5 9.7 14.9 10.6 14.4 11.3L14.4 11.3ZM9.6 13.3L6.5 12.5C5.7 12.3 5.3 11.4 5.7 10.7L9.6 3.9 9.6 13.3ZM10 1C4.5 1 0 5.5 0 11 0 16.5 4.5 21 10 21 15.5 21 20 16.5 20 11 20 5.5 15.5 1 10 1L10 1Z" /></svg>
+ <svg class="jp-wpcom-connect__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" version="1.1"><path d="M14.4 11.3L10.5 18.1 10.5 8.7 13.7 9.5C14.5 9.7 14.9 10.6 14.4 11.3L14.4 11.3ZM9.6 13.3L6.5 12.5C5.7 12.3 5.3 11.4 5.7 10.7L9.6 3.9 9.6 13.3ZM10 1C4.5 1 0 5.5 0 11 0 16.5 4.5 21 10 21 15.5 21 20 16.5 20 11 20 5.5 15.5 1 10 1L10 1Z" /></svg>
</div>
<span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Welcome to Jetpack', 'jetpack' ); ?></span>
</div>
@@ -844,7 +847,7 @@ class Jetpack_Connection_Banner {
<div class="jp-connect-full__step-header">
<div class="jp-connect-full__step-header-logos">
- <svg class="jp-connect-full__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 1 20 20" version="1.1"><path d="M14.4 11.3L10.5 18.1 10.5 8.7 13.7 9.5C14.5 9.7 14.9 10.6 14.4 11.3L14.4 11.3ZM9.6 13.3L6.5 12.5C5.7 12.3 5.3 11.4 5.7 10.7L9.6 3.9 9.6 13.3ZM10 1C4.5 1 0 5.5 0 11 0 16.5 4.5 21 10 21 15.5 21 20 16.5 20 11 20 5.5 15.5 1 10 1L10 1Z" /></svg>
+ <svg class="jp-connect-full__svg-jetpack" xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" version="1.1"><path d="M30,0C13.5,0,0,13.5,0,30s13.5,30,30,30s30-13.5,30-30S46.5,0,30,0z M29,35H13L29,6V35z M31,54V25h16L31,54z"/></svg>
<svg class="jp-connect-full__svg-sync" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><title>Connect Jetpack to WordPress.com</title><rect x="0" fill="none" /><g><path d="M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"/></g></svg>