PluginProbe ʕ •ᴥ•ʔ
Jetpack – WP Security, Backup, Speed, & Growth / 6.5.4
Jetpack – WP Security, Backup, Speed, & Growth v6.5.4
15.9-a.7 15.9-a.5 15.9-a.3 15.9-a.1 15.8 15.8-beta 15.8-a.7 15.8-a.5 5.2.5 5.3.4 5.4.4 5.5.5 5.6.5 5.7.5 5.8.4 5.9.4 6.0.4 6.1 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.4 6.4.1 6.4.2 6.4.3 6.4.4 6.4.5 6.4.6 6.5 6.5.1 6.5.2 6.5.3 6.5.4 6.6 6.6.1 6.6.2 6.6.3 6.6.4 6.6.5 6.7 6.7.1 6.7.2 6.7.3 6.7.4 6.8 6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.9 6.9.1 6.9.2 6.9.3 6.9.4 7.0 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.2 7.2.1 7.2.1.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3 7.3.0.1 7.3.1 7.3.1.1 7.3.2 7.3.3 7.3.4 7.3.5 7.4 7.4.1 7.4.2 7.4.3 7.4.4 7.4.5 7.5 7.5.0.1 7.5.1 7.5.2 7.5.3 7.5.4 7.5.5 7.5.6 7.5.7 7.6 7.6.1 7.6.2 7.6.3 7.6.4 7.7 7.7.1 7.7.2 7.7.3 7.7.4 7.7.5 7.7.6 7.8 7.8.1 7.8.2 7.8.3 7.8.4 7.9 7.9.1 7.9.2 7.9.3 7.9.4 8.0 8.0.1 8.0.2 8.0.3 8.1 8.1.1 8.1.2 8.1.3 8.1.4 8.2 8.2.0.1 8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.3 8.3.1 8.3.2 8.3.3 8.4 8.4.1 8.4.2 8.4.3 8.4.4 8.4.5 8.5 8.5.1 8.5.2 8.5.3 8.6 8.6.1 8.6.2 8.6.3 8.6.4 8.7 8.7.0.1 8.7.1 8.7.2 8.7.3 8.7.4 8.8 8.8.1 8.8.2 8.8.3 8.8.4 8.8.5 8.9 8.9.1 8.9.2 8.9.3 8.9.4 9.0 9.0.1 9.0.2 9.0.3 9.0.4 9.0.5 9.1 9.1.1 9.1.2 9.1.3 9.2 9.2.1 9.2.2 9.2.3 9.2.4 9.3 9.3.1 9.3.2 9.3.3 9.3.4 9.3.5 9.4 9.4.1 9.4.2 9.4.3 9.4.4 9.5 9.5.1 9.5.2 9.5.3 9.5.4 9.5.5 9.6 9.6.1 9.6.2 9.6.3 9.6.4 9.7 9.7.1 9.7.2 15.7-beta.2 9.7.3 15.7.1 9.8 15.8-a.1 9.8.1 15.8-a.3 9.8.2 2.0.9 9.8.3 2.1.7 9.9 2.2.10 9.9.1 2.3.10 9.9.2 2.4.7 9.9.3 2.5.5 2.6.6 2.7.5 2.8.5 2.9.6 3.0.6 3.1.5 3.2.5 3.3.6 3.4.6 3.5.6 3.6.4 3.7.5 3.8.5 3.9.10 4.0.7 4.1.4 4.2.5 4.3.5 4.4.5 4.5.3 4.6.3 4.7.4 4.8.5 4.9.3 5.0.3 5.1.4 trunk 10.0 10.0.1 10.0.2 10.1 10.1.1 10.1.2 10.2 10.2.1 10.2.2 10.2.3 10.3 10.3.1 10.3.2 10.4 10.4.1 10.4.2 10.5 10.5.1 10.5.2 10.5.3 10.6 10.6.1 10.6.2 10.7 10.7.1 10.7.2 10.8 10.8.1 10.8.2 10.9 10.9.1 10.9.2 10.9.3 11.0 11.0.1 11.0.2 11.1 11.1.1 11.1.2 11.1.3 11.1.4 11.2 11.2.1 11.2.2 11.3 11.3.1 11.3.2 11.3.3 11.3.4 11.4 11.4.1 11.4.2 11.5 11.5.1 11.5.2 11.5.3 11.6 11.6.1 11.6.2 11.7 11.7.1 11.7.2 11.7.3 11.8 11.8.3 11.8.4 11.8.5 11.8.6 11.9 11.9.1 11.9.2 11.9.3 12.0 12.0.1 12.0.2 12.1 12.1.1 12.1.2 12.2 12.2.1 12.2.2 12.3 12.3.1 12.4 12.4.1 12.5 12.5.1 12.6 12.6.1 12.6.2 12.6.3 12.7 12.7.1 12.7.2 12.8 12.8.1 12.8.2 12.9 12.9.1 12.9.2 12.9.3 12.9.4 13.0 13.0.1 13.1 13.1.1 13.1.2 13.1.3 13.1.4 13.2 13.2.1 13.2.2 13.2.3 13.3 13.3.1 13.3.2 13.4 13.4.1 13.4.2 13.4.3 13.4.4 13.5 13.5.1 13.6 13.6.1 13.7 13.7.1 13.8 13.8.1 13.8.2 13.9 13.9.1 14.0 14.1 14.2 14.2.1 14.3 14.4 14.4.1 14.5 14.6 14.7 14.8 14.9 14.9.1 15.0 15.0.1 15.0.2 15.1 15.1.1 15.2 15.3 15.3.1 15.4 15.5 15.6 15.7 15.7-a.1 15.7-a.3 15.7-a.5 15.7-a.7 15.7-beta
jetpack / class.jetpack-connection-banner.php
jetpack Last commit date
3rd-party 7 years ago _inc 1 year ago bin 7 years ago css 7 years ago images 1 year ago json-endpoints 3 years ago languages 7 years ago modules 1 year ago sal 7 years ago scss 7 years ago sync 7 years ago views 8 years ago .svnignore 12 years ago CODE-OF-CONDUCT.md 9 years ago changelog.txt 7 years ago class.frame-nonce-preview.php 9 years ago class.jetpack-admin.php 8 years ago class.jetpack-autoupdate.php 8 years ago class.jetpack-bbpress-json-api-compat.php 9 years ago class.jetpack-cli.php 7 years ago class.jetpack-client-server.php 8 years ago class.jetpack-client.php 7 years ago class.jetpack-connection-banner.php 7 years ago class.jetpack-constants.php 8 years ago class.jetpack-data.php 7 years ago class.jetpack-debugger.php 8 years ago class.jetpack-error.php 10 years ago class.jetpack-heartbeat.php 7 years ago class.jetpack-idc.php 8 years ago class.jetpack-ixr-client.php 10 years ago class.jetpack-jitm.php 8 years ago class.jetpack-modules-list-table.php 8 years ago class.jetpack-network-sites-list-table.php 9 years ago class.jetpack-network.php 8 years ago class.jetpack-options.php 7 years ago class.jetpack-post-images.php 7 years ago class.jetpack-signature.php 7 years ago class.jetpack-tracks.php 8 years ago class.jetpack-twitter-cards.php 7 years ago class.jetpack-user-agent.php 8 years ago class.jetpack-xmlrpc-server.php 7 years ago class.jetpack.php 7 years ago class.json-api-endpoints.php 3 years ago class.json-api.php 7 years ago class.photon.php 7 years ago composer.json 7 years ago functions.compat.php 7 years ago functions.gallery.php 8 years ago functions.global.php 7 years ago functions.opengraph.php 8 years ago functions.photon.php 8 years ago jetpack.php 1 year ago json-api-config.php 10 years ago json-endpoints.php 8 years ago locales.php 9 years ago phpcs.xml 7 years ago readme.txt 1 year ago require-lib.php 8 years ago uninstall.php 8 years ago wpml-config.xml 10 years ago
class.jetpack-connection-banner.php
1029 lines
1 <?php
2
3 class Jetpack_Connection_Banner {
4 /**
5 * @var Jetpack_Connection_Banner
6 **/
7 private static $instance = null;
8
9 static function init() {
10 if ( is_null( self::$instance ) ) {
11 self::$instance = new Jetpack_Connection_Banner();
12 }
13
14 return self::$instance;
15 }
16
17 /**
18 * Jetpack_Connection_Banner constructor.
19 *
20 * Since we call the Jetpack_Connection_Banner:init() method from the `Jetpack` class, and after
21 * the admin_init action fires, we know that the admin is initialized at this point.
22 */
23 private function __construct() {
24 add_action( 'current_screen', array( $this, 'maybe_initialize_hooks' ) );
25 add_action( 'updating_jetpack_version', array( $this, 'cleanup_on_upgrade' ), 10, 2 );
26 }
27
28 function cleanup_on_upgrade( $new_version = null, $old_version = null ) {
29 if ( version_compare( $old_version, '4.4', '>=' ) && version_compare( $old_version, '5.3', '<' ) ) {
30 delete_option( 'jetpack_connection_banner_ab' );
31 }
32 }
33
34 /**
35 * Checks whether the connection banner A/B test should be ran.
36 *
37 * @since 5.3.0
38 *
39 * @param null $now
40 *
41 * @return bool
42 */
43 static function check_ab_test_not_expired( $now = null ) {
44 // Get the current timestamp in GMT
45 $now = empty( $now ) ? current_time( 'timestamp', 1 ) : $now;
46
47 // Arguments are hour, minute, second, month, day, year. So, we are getting the timestamp for GMT timestamp
48 // for the October 5th, 2017.
49 $expiration = gmmktime( 0, 0, 0, 10, 5, 2017 );
50
51 return $expiration >= $now;
52 }
53
54 /**
55 * Gets the value for which connection banner to show, and initializes if not set.
56 *
57 * @since 5.3.0
58 *
59 * @return int
60 */
61 static function get_random_connection_banner_value() {
62 $random_connection_banner = get_option( 'jetpack_connection_banner_ab' );
63 if ( ! $random_connection_banner ) {
64 $random_connection_banner = mt_rand( 1, 2 );
65 update_option( 'jetpack_connection_banner_ab', $random_connection_banner );
66 }
67
68 return $random_connection_banner;
69 }
70
71 /**
72 * Given a string for the the banner was added, and an int that represents the slide to
73 * a URL for, this function returns a connection URL with a from parameter that will
74 * support split testing.
75 *
76 * @param string $jp_version_banner_added A short version of when the banner was added. Ex. 44
77 * @param string|int $slide_num The index of the slide, 1-indexed.
78 * @return string
79 */
80 function build_connect_url_for_slide( $jp_version_banner_added, $slide_num ) {
81 global $current_screen;
82 $url = Jetpack::init()->build_connect_url(
83 true,
84 false,
85 sprintf( 'banner-%s-slide-%s-%s', $jp_version_banner_added, $slide_num, $current_screen->base )
86 );
87 return add_query_arg( 'auth_approved', 'true', $url );
88 }
89
90 /**
91 * Will initialize hooks to display the new (as of 4.4) connection banner if the current user can
92 * connect Jetpack, if Jetpack has not been deactivated, and if the current page is the plugins page.
93 *
94 * This method should not be called if the site is connected to WordPress.com or if the site is in development mode.
95 *
96 * @since 4.4.0
97 * @since 4.5.0 Made the new (as of 4.4) connection banner display to everyone by default.
98 * @since 5.3.0 Running another split test between 4.4 banner and a new one in 5.3.
99 *
100 * @param $current_screen
101 */
102 function maybe_initialize_hooks( $current_screen ) {
103 // Kill if banner has been dismissed
104 if ( Jetpack_Options::get_option( 'dismissed_connection_banner' ) ) {
105 return;
106 }
107
108 // Don't show the connect notice anywhere but the plugins.php after activating
109 if ( 'plugins' !== $current_screen->base && 'dashboard' !== $current_screen->base ) {
110 return;
111 }
112
113 if ( ! current_user_can( 'jetpack_connect' ) ) {
114 return;
115 }
116
117 if ( self::check_ab_test_not_expired() && 2 == self::get_random_connection_banner_value() ) {
118 add_action( 'admin_notices', array( $this, 'render_banner_b' ) );
119 } else {
120 add_action( 'admin_notices', array( $this, 'render_banner' ) );
121 }
122
123 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_banner_scripts' ) );
124 add_action( 'admin_print_styles', array( Jetpack::init(), 'admin_banner_styles' ) );
125
126 if ( Jetpack::state( 'network_nag' ) ) {
127 add_action( 'network_admin_notices', array( $this, 'network_connect_notice' ) );
128 }
129
130 // Only fires immediately after plugin activation
131 if ( get_transient( 'activated_jetpack' ) ) {
132 add_action( 'admin_notices', array( $this, 'render_connect_prompt_full_screen' ) );
133 delete_transient( 'activated_jetpack' );
134 }
135 }
136
137 /**
138 * Enqueues JavaScript for new connection banner.
139 *
140 * @since 4.4.0
141 */
142 function enqueue_banner_scripts() {
143 wp_enqueue_script(
144 'jetpack-connection-banner-js',
145 Jetpack::get_file_url_for_environment(
146 '_inc/build/jetpack-connection-banner.min.js',
147 '_inc/jetpack-connection-banner.js'
148 ),
149 array( 'jquery' ),
150 JETPACK__VERSION,
151 true
152 );
153
154 wp_localize_script(
155 'jetpack-connection-banner-js',
156 'jp_banner',
157 array(
158 'ajax_url' => admin_url( 'admin-ajax.php' ),
159 'connectionBannerNonce' => wp_create_nonce( 'jp-connection-banner-nonce' ),
160 )
161 );
162 }
163
164 /**
165 * Renders the new connection banner as of 4.4.0.
166 *
167 * @since 4.4.0
168 */
169 function render_banner() { ?>
170 <div id="message" class="updated jp-wpcom-connect__container">
171 <div class="jp-wpcom-connect__inner-container">
172 <span
173 class="notice-dismiss connection-banner-dismiss"
174 title="<?php esc_attr_e( 'Dismiss this notice', 'jetpack' ); ?>">
175 </span>
176
177 <div class="jp-wpcom-connect__vertical-nav">
178 <div class="jp-wpcom-connect__vertical-nav-container">
179 <div class="vertical-menu__feature-item jp-feature-intro vertical-menu__feature-item-is-selected">
180 <div class="vertical-menu__feature-item-icon">
181 <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>
182 </div>
183 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Welcome to Jetpack', 'jetpack' ); ?></span>
184 </div>
185 <div class="vertical-menu__feature-item">
186 <div class="vertical-menu__feature-item-icon">
187 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 2 20 20" version="1.1"><path d="M7.8 17.6L12.2 17.6 12.2 2 7.8 2 7.8 17.6ZM14.4 17.6L18.9 17.6 18.9 5.3 14.4 5.3 14.4 17.6ZM1.1 17.6L5.6 17.6 5.6 9.8 1.1 9.8 1.1 17.6ZM0 22L20 22 20 19.8 0 19.8 0 22Z" /></svg>
188 </div>
189 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Stats &amp; Traffic Tools', 'jetpack' ); ?></span>
190 </div>
191 <div class="vertical-menu__feature-item">
192 <div class="vertical-menu__feature-item-icon">
193 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" viewBox="0 1 16 20" version="1.1"><defs><polygon points="16 10 16 0 0 0 0 10 0 20 16 20"/></defs><g stroke="none" stroke-width="1" transform="translate(0.000000, 1.000000)"><mask fill="white"/><path d="M9 13.7L9 16 7 16 7 13.7C6.4 13.4 6 12.7 6 12 6 10.9 6.9 10 8 10 9.1 10 10 10.9 10 12 10 12.7 9.6 13.4 9 13.7L9 13.7ZM5 5C5 3.3 6.3 2 8 2 9.7 2 11 3.3 11 5L11 6 5 6 5 5ZM14 6L13 6 13 5C13 2.2 10.8 0 8 0 5.2 0 3 2.2 3 5L3 6 2 6C0.9 6 0 6.9 0 8L0 18C0 19.1 0.9 20 2 20L14 20C15.1 20 16 19.1 16 18L16 8C16 6.9 15.1 6 14 6L14 6Z" mask="url(#mask-2)"/></g></svg>
194 </div>
195 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Site Security', 'jetpack' ); ?></span>
196 </div>
197 <div class="vertical-menu__feature-item">
198 <div class="vertical-menu__feature-item-icon">
199 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="0" fill="none" width="20" height="20"/><g><path d="M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"/></g></svg>
200 </div>
201 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Professional Themes', 'jetpack' ); ?></span>
202 </div>
203 <div class="vertical-menu__feature-item">
204 <div class="vertical-menu__feature-item-icon">
205 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 2 20 20" version="1.1"><path d="M6 4L6 10.3 9 7 13.9 12.4 14.5 11.7C15.3 10.8 16.7 10.8 17.5 11.7L18 12.2 18 4 6 4ZM20 4L20 16C20 17.1 19.1 18 18 18L6 18C4.9 18 4 17.1 4 16L4 4C4 2.9 4.9 2 6 2L18 2C19.1 2 20 2.9 20 4L20 4ZM2 20L16 20 16 20C16 21.1 15.1 22 14 22L2 22C0.9 22 0 21.1 0 20L0 8C0 6.9 0.9 6 2 6L2 6 2 20ZM13 7.5C13 6.7 13.7 6 14.5 6 15.3 6 16 6.7 16 7.5 16 8.3 15.3 9 14.5 9 13.7 9 13 8.3 13 7.5L13 7.5Z" /></svg>
206 </div>
207 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Performance', 'jetpack' ); ?></span>
208 </div>
209 <div class="vertical-menu__feature-item wp-app-logo">
210 <div class="vertical-menu__feature-item-icon">
211 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 2 20 20" version="1.1"><defs><polygon points="0 20 20 20 20 0 0 0 0 20"/></defs><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(0.000000, 2.000000)"><mask fill="white"/><path d="M14.3 17.3L16.9 9.8C17.4 8.6 17.5 7.7 17.5 6.8 17.5 6.5 17.5 6.2 17.5 5.9 18.1 7.1 18.5 8.5 18.5 10 18.5 13.1 16.8 15.9 14.3 17.3L14.3 17.3ZM11.2 6C11.7 6 12.1 5.9 12.1 5.9 12.6 5.9 12.5 5.2 12.1 5.2 12.1 5.2 10.7 5.3 9.8 5.3 9 5.3 7.6 5.2 7.6 5.2 7.1 5.2 7.1 5.9 7.5 5.9 7.5 5.9 8 6 8.4 6L9.7 9.6 7.9 15.2 4.8 6C5.3 6 5.8 5.9 5.8 5.9 6.2 5.9 6.2 5.2 5.7 5.2 5.7 5.2 4.3 5.3 3.4 5.3 3.3 5.3 3.1 5.3 2.9 5.3 4.4 3 7 1.5 10 1.5 12.2 1.5 14.2 2.3 15.7 3.7 15.7 3.7 15.7 3.7 15.6 3.7 14.8 3.7 14.2 4.5 14.2 5.2 14.2 5.9 14.6 6.5 15 7.2 15.4 7.8 15.7 8.5 15.7 9.6 15.7 10.3 15.5 11.1 15.1 12.3L14.2 15.2 11.2 6ZM10 18.5C9.2 18.5 8.4 18.4 7.6 18.2L10.1 10.7 12.8 17.9C12.8 17.9 12.8 18 12.8 18 11.9 18.3 11 18.5 10 18.5L10 18.5ZM1.5 10C1.5 8.8 1.8 7.6 2.2 6.5L6.3 17.7C3.5 16.3 1.5 13.4 1.5 10L1.5 10ZM10 0C4.5 0 0 4.5 0 10 0 15.5 4.5 20 10 20 15.5 20 20 15.5 20 10 20 4.5 15.5 0 10 0L10 0Z" fill="#86A6BD" mask="url(#mask-2)"/></g></svg>
212 </div>
213 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'WordPress Apps', 'jetpack' ); ?></span>
214 </div>
215 <div class="vertical-menu__feature-item">
216 <div class="vertical-menu__feature-item-icon">
217 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 4 15 15" version="1.1"><polygon points="6.6 4 6.6 10.6 0 10.6 0 12.4 6.6 12.4 6.6 19 8.4 19 8.4 12.4 15 12.4 15 10.6 8.4 10.6 8.4 4"/></svg>
218 </div>
219 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'More Features', 'jetpack' ); ?></span>
220 </div>
221 </div>
222 </div>
223 <div class="jp-wpcom-connect__content-container">
224
225 <!-- slide 1: intro -->
226 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-one jp__slide-is-active">
227 <h2><?php esc_html_e( 'Jetpack simplifies site security, customization, and management.', 'jetpack' ) ?></h2>
228
229 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
230 <img src="<?php echo plugins_url( 'images/jetpack-welcome.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
231 esc_attr_e(
232 'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it',
233 'jetpack'
234 ); ?>" height="auto" width="250" />
235 </div>
236
237 <p>
238 <?php
239 esc_html_e(
240 'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it.',
241 'jetpack'
242 );
243 ?>
244 </p>
245
246 <p>
247 <?php
248 esc_html_e(
249 'You get detailed visitor stats, state-of-the-art security services, image performance upgrades, traffic generation tools, and more.',
250 'jetpack'
251 );
252 ?>
253 </p>
254
255 <p>
256 <?php
257 esc_html_e(
258 'Connect to WordPress.com (free) to get started!',
259 'jetpack'
260 );
261 ?>
262 </p>
263
264 <p class="jp-banner__button-container">
265 <span class="jp-banner__tos-blurb">
266 <?php jetpack_render_tos_blurb(); ?>
267 </span>
268 <a
269 href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 1 ) ); ?>"
270 class="dops-button is-primary">
271 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
272 </a>
273 <a
274 href="#"
275 class="dops-button next-feature"
276 title="<?php
277 esc_attr_e(
278 'Start tour to Learn about the benefits you receive when you connect Jetpack to WordPress.com',
279 'jetpack'
280 );
281 ?>">
282 <?php esc_html_e( 'Start quick tour', 'jetpack' ); ?>
283 </a>
284 </p>
285 </div> <!-- end slide 1 -->
286
287 <!-- slide 2: stats -->
288 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-two">
289 <h2><?php esc_html_e( 'Detailed stats and traffic tools to help your site grow', 'jetpack' ) ?></h2>
290
291 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
292 <img src="<?php echo plugins_url( 'images/stats-people.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
293 esc_attr_e(
294 'Get clear and concise stats and analytics about your visitors',
295 'jetpack'
296 ); ?>" height="auto" width="225" />
297 </div>
298
299 <p>
300 <?php
301 esc_html_e(
302 'Jetpack provides detailed stats and insights about your viewers.',
303 'jetpack'
304 );
305 ?>
306 </p>
307
308 <p>
309 <?php
310 esc_html_e(
311 'This helps you make informed decisions about your content and drive more traffic to your site with our related posts, social, and enhanced distribution features.',
312 'jetpack'
313 );
314 ?>
315 </p>
316
317 <p>
318 <?php
319 esc_html_e(
320 'Professional Plan customers get access to advanced SEO tools.',
321 'jetpack'
322 );
323 ?>
324 </p>
325
326 <p class="jp-banner__button-container">
327 <span class="jp-banner__tos-blurb">
328 <?php jetpack_render_tos_blurb(); ?>
329 </span>
330 <a href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 2 ) ); ?>" class="dops-button is-primary">
331 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
332 </a>
333 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
334 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
335 </a>
336 </p>
337 </div> <!-- end slide 2 -->
338
339 <!-- slide 3: security -->
340 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-three">
341 <h2><?php esc_html_e( 'Multiple security tools to give you peace of mind', 'jetpack' ) ?></h2>
342
343 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
344 <img src="<?php echo plugins_url( 'images/security.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
345 esc_attr_e(
346 'Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security',
347 'jetpack'
348 ); ?>" height="auto" width="250" />
349 </div>
350
351 <p>
352 <?php
353 esc_html_e(
354 'Jetpack protects your site against brute force attacks and unauthorized logins. We also monitor your site for downtime and keep your plugins updated.',
355 'jetpack'
356 );
357 ?>
358 </p>
359
360 <?php if ( Jetpack::show_backups_ui() ): ?>
361 <p>
362 <?php
363 esc_html_e(
364 'Customers on paid plans also benefit from unlimited backups of your entire site, spam protection, malware scanning, and automated fixes.',
365 'jetpack'
366 );
367 ?>
368 </p>
369 <?php endif; ?>
370
371 <p>
372 <?php
373 esc_html_e(
374 'We also offer free support to all users, and priority assistance to paid customers.',
375 'jetpack'
376 );
377 ?>
378 </p>
379
380 <p class="jp-banner__button-container">
381 <span class="jp-banner__tos-blurb">
382 <?php jetpack_render_tos_blurb(); ?>
383 </span>
384 <a
385 href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 3 ) ); ?>"
386 class="dops-button is-primary">
387 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
388 </a>
389 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
390 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
391 </a>
392 </p>
393 </div> <!-- end slide 3 -->
394
395 <!-- slide 3A: themes -->
396 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-three-a">
397 <h2><?php esc_html_e( 'Hundreds of beautiful themes to choose from', 'jetpack' ) ?></h2>
398
399 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
400 <img src="<?php echo plugins_url( 'images/customize-theme.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
401 esc_attr_e(
402 'Choosing a design for your site is essential. It defines your brand, your layout, and your visitors’ reading experience',
403 'jetpack'
404 ); ?>" height="auto" width="250" />
405 </div>
406
407 <p>
408 <?php
409 esc_html_e(
410 'Choosing a design for your site is essential. It defines your brand, your layout, and your visitors’ reading experience.',
411 'jetpack'
412 );
413 ?>
414 </p>
415
416 <p>
417 <?php
418 esc_html_e(
419 'Jetpack reduces complexity and makes this previously difficult process a breeze. Browse hundreds of themes in our showcase, or search by theme, name, style, color, or type.',
420 'jetpack'
421 );
422 ?>
423 </p>
424
425 <p>
426 <?php
427 esc_html_e(
428 'Preview, install, and activate with one-click, then use our suite of design tools to make it look just as you need it to.',
429 'jetpack'
430 );
431 ?>
432 </p>
433
434 <p class="jp-banner__button-container">
435 <span class="jp-banner__tos-blurb">
436 <?php jetpack_render_tos_blurb(); ?>
437 </span>
438 <a
439 href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', '3a' ) ); ?>"
440 class="dops-button is-primary">
441 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
442 </a>
443 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
444 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
445 </a>
446 </p>
447 </div> <!-- end slide 3A -->
448
449
450 <!-- slide 4: Performance -->
451 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-four">
452 <h2><?php esc_html_e( 'Faster site speeds through the WordPress.com CDN', 'jetpack' ) ?></h2>
453
454 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
455 <img src="<?php echo plugins_url( 'images/cloud-based.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
456 esc_attr_e(
457 'Jetpack automatically optimizes and speeds up images using the global WordPress.com Content Delivery Network (CDN)',
458 'jetpack'
459 ); ?>" height="auto" width="225" />
460 </div>
461
462 <p>
463 <?php
464 esc_html_e(
465 'Jetpack automatically optimizes and speeds up images using the global WordPress.com Content Delivery Network (CDN). Let us do the heavy lifting for you by reducing bandwidth usage which could potentially lower your hosting costs.',
466 'jetpack'
467 );
468 ?>
469 </p>
470
471 <p>
472 <?php
473 esc_html_e(
474 'Use of our CDN is unlimited and scales with your site for free. You can also use it for your theme images to further speed up your site.',
475 'jetpack'
476 );
477 ?>
478 </p>
479
480 <p class="jp-banner__button-container">
481 <span class="jp-banner__tos-blurb">
482 <?php jetpack_render_tos_blurb(); ?>
483 </span>
484 <a href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 4 ) ); ?>" class="dops-button is-primary">
485 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
486 </a>
487 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
488 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
489 </a>
490 </p>
491 </div> <!-- end slide 4 -->
492
493 <!-- slide 5: Apps -->
494 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-five">
495 <h2><?php esc_html_e( 'Free WordPress apps to manage your site(s) from any device', 'jetpack' ) ?></h2>
496
497 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
498 <img src="<?php echo plugins_url( 'images/apps.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
499 esc_attr_e(
500 'Our mobile and desktop apps are free and available to you on Apple or Android devices once Jetpack is connected to WordPress.com',
501 'jetpack'
502 ); ?>" height="auto" width="225" />
503 </div>
504
505 <p>
506 <?php
507 esc_html_e(
508 'Publish content, track stats, moderate comments and so much more from anywhere in the world. Our mobile and desktop apps are free and available to you on Apple or Android devices once Jetpack is connected to WordPress.com.',
509 'jetpack'
510 );
511 ?>
512 </p>
513
514 <p>
515 <?php
516 esc_html_e(
517 'When Jetpack is connected to WordPress.com, head over to the Apps tab within Jetpack for direct links to the mobile and desktop apps.',
518 'jetpack'
519 );
520 ?>
521 </p>
522
523 <p class="jp-banner__button-container">
524 <span class="jp-banner__tos-blurb">
525 <?php jetpack_render_tos_blurb(); ?>
526 </span>
527 <a href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 5 ) ); ?>" class="dops-button is-primary">
528 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
529 </a>
530 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
531 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
532 </a>
533 </p>
534 </div> <!-- end slide 5 -->
535
536 <!-- slide 6: more features -->
537 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-six">
538 <h2><?php esc_html_e( 'More Jetpack features our users love', 'jetpack' ) ?></h2>
539
540 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
541 <img src="<?php echo plugins_url( 'images/customize-theme-2.svg', JETPACK__PLUGIN_FILE ); ?>" alt="<?php
542 esc_attr_e(
543 'Jetpack includes other features that help you customize your site',
544 'jetpack'
545 ); ?>" height="auto" width="225" />
546 </div>
547
548 <p>
549 <?php
550 esc_html_e( 'Jetpack includes other features that help you customize your site including Custom CSS, Contact Forms, Galleries and Carousels, Notifications and Subscriptions, Configurable Widgets, and many more.',
551 'jetpack'
552 );
553 ?>
554 </p>
555
556 <p>
557 <?php
558 esc_html_e( 'Connect to WordPress.com to get started',
559 'jetpack'
560 );
561 ?>
562 <a href="https://jetpack.com/features" target="_blank">
563 <?php esc_html_e( 'or visit our site for the full feature list.', 'jetpack' ); ?>
564 </a>
565 </p>
566
567 <p class="jp-banner__button-container">
568 <span class="jp-banner__tos-blurb">
569 <?php jetpack_render_tos_blurb(); ?>
570 </span>
571 <a
572 href="<?php echo esc_url( $this->build_connect_url_for_slide( '44', 6 ) ); ?>"
573 class="dops-button is-primary">
574 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
575 </a>
576 </p>
577 </div> <!-- end slide 6 -->
578 </div>
579 </div>
580 </div>
581 <?php
582 }
583
584 /**
585 * Renders a split-test banner as of 5.3.0.
586 *
587 * @since 5.3.0
588 */
589 function render_banner_b() { ?>
590 <div id="message" class="updated jp-wpcom-connect__container">
591 <div class="jp-wpcom-connect__inner-container">
592 <span
593 class="notice-dismiss connection-banner-dismiss"
594 title="<?php esc_attr_e( 'Dismiss this notice', 'jetpack' ); ?>">
595 </span>
596
597 <div class="jp-wpcom-connect__vertical-nav">
598 <div class="jp-wpcom-connect__vertical-nav-container">
599 <div class="vertical-menu__feature-item jp-feature-intro vertical-menu__feature-item-is-selected">
600 <div class="vertical-menu__feature-item-icon">
601 <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>
602 </div>
603 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Welcome to Jetpack', 'jetpack' ); ?></span>
604 </div>
605 <div class="vertical-menu__feature-item">
606 <div class="vertical-menu__feature-item-icon">
607 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 2 20 20" version="1.1"><path d="M6 4L6 10.3 9 7 13.9 12.4 14.5 11.7C15.3 10.8 16.7 10.8 17.5 11.7L18 12.2 18 4 6 4ZM20 4L20 16C20 17.1 19.1 18 18 18L6 18C4.9 18 4 17.1 4 16L4 4C4 2.9 4.9 2 6 2L18 2C19.1 2 20 2.9 20 4L20 4ZM2 20L16 20 16 20C16 21.1 15.1 22 14 22L2 22C0.9 22 0 21.1 0 20L0 8C0 6.9 0.9 6 2 6L2 6 2 20ZM13 7.5C13 6.7 13.7 6 14.5 6 15.3 6 16 6.7 16 7.5 16 8.3 15.3 9 14.5 9 13.7 9 13 8.3 13 7.5L13 7.5Z" /></svg>
608 </div>
609 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Create Your Site', 'jetpack' ); ?></span>
610 </div>
611 <div class="vertical-menu__feature-item">
612 <div class="vertical-menu__feature-item-icon">
613 <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 2 20 20" version="1.1"><path d="M7.8 17.6L12.2 17.6 12.2 2 7.8 2 7.8 17.6ZM14.4 17.6L18.9 17.6 18.9 5.3 14.4 5.3 14.4 17.6ZM1.1 17.6L5.6 17.6 5.6 9.8 1.1 9.8 1.1 17.6ZM0 22L20 22 20 19.8 0 19.8 0 22Z" /></svg>
614 </div>
615 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Make It Successful', 'jetpack' ); ?></span>
616 </div>
617 <div class="vertical-menu__feature-item">
618 <div class="vertical-menu__feature-item-icon">
619 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="20" viewBox="0 1 16 20" version="1.1"><defs><polygon points="16 10 16 0 0 0 0 10 0 20 16 20"/></defs><g stroke="none" stroke-width="1" transform="translate(0.000000, 1.000000)"><mask fill="white"/><path d="M9 13.7L9 16 7 16 7 13.7C6.4 13.4 6 12.7 6 12 6 10.9 6.9 10 8 10 9.1 10 10 10.9 10 12 10 12.7 9.6 13.4 9 13.7L9 13.7ZM5 5C5 3.3 6.3 2 8 2 9.7 2 11 3.3 11 5L11 6 5 6 5 5ZM14 6L13 6 13 5C13 2.2 10.8 0 8 0 5.2 0 3 2.2 3 5L3 6 2 6C0.9 6 0 6.9 0 8L0 18C0 19.1 0.9 20 2 20L14 20C15.1 20 16 19.1 16 18L16 8C16 6.9 15.1 6 14 6L14 6Z" mask="url(#mask-2)"/></g></svg>
620 </div>
621 <span class="vertical-menu__feature-item-label"><?php esc_html_e( 'Keep It Safe', 'jetpack' ); ?></span>
622 </div>
623 </div>
624 </div>
625 <div class="jp-wpcom-connect__content-container">
626
627 <!-- slide 1: intro -->
628 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-one jp__slide-is-active">
629 <h2><?php esc_html_e( 'Welcome to Jetpack', 'jetpack' ) ?></h2>
630
631 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
632 <img src="<?php echo plugins_url( 'images/jetpack-welcome.svg', JETPACK__PLUGIN_FILE ); ?>" alt="Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security." height="auto" width="250" />
633 </div>
634
635 <p>
636 <?php
637 esc_html_e(
638 'Jetpack is the best way to experience WordPress, whether your site is brand new or already well established.',
639 'jetpack'
640 );
641 ?>
642 </p>
643
644 <p>
645 <?php
646 esc_html_e(
647 'You get themes and tools to design your site, marketing services to make it successful, and state-of-the-art security.',
648 'jetpack'
649 );
650 ?>
651 </p>
652
653 <p>
654 <?php
655 esc_html_e(
656 'Connect to WordPress.com (free) to get started.',
657 'jetpack'
658 );
659 ?>
660 </p>
661
662 <p class="jp-banner__button-container">
663 <span class="jp-banner__tos-blurb">
664 <?php jetpack_render_tos_blurb(); ?>
665 </span>
666 <a
667 href="<?php echo esc_url( $this->build_connect_url_for_slide( '53', 1 ) ); ?>"
668 class="dops-button is-primary">
669 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
670 </a>
671 <a
672 href="#"
673 class="dops-button next-feature"
674 title="<?php
675 esc_attr_e(
676 'Start tour to Learn about the benefits you receive when you connect Jetpack to WordPress.com',
677 'jetpack'
678 );
679 ?>">
680 <?php esc_html_e( 'Start quick tour', 'jetpack' ); ?>
681 </a>
682 </p>
683 </div> <!-- end slide 1 -->
684
685 <!-- slide 2: design -->
686 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-two">
687 <h2><?php esc_html_e( 'Code-Free Design and Publishing', 'jetpack' ) ?></h2>
688
689 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
690 <img src="<?php echo plugins_url( 'images/customize-theme.svg', JETPACK__PLUGIN_FILE ); ?>" alt="Customization tools and widgets help you make your site look great without writing any code" height="auto" width="225" />
691 </div>
692
693 <p>
694 <?php
695 esc_html_e(
696 'Jetpack gives you access to more than 100 free and 200 premium WordPress themes.',
697 'jetpack'
698 );
699 ?>
700 </p>
701
702 <p>
703 <?php
704 esc_html_e(
705 'Customization tools and widgets help you make your site look great without writing any code, and our CDN speeds up your images.',
706 'jetpack'
707 );
708 ?>
709 </p>
710
711 <p>
712 <?php
713 esc_html_e(
714 'Publish with ease using WordPress.com or the official WordPress mobile apps.',
715 'jetpack'
716 );
717 ?>
718 </p>
719
720 <p class="jp-banner__button-container">
721 <span class="jp-banner__tos-blurb">
722 <?php jetpack_render_tos_blurb(); ?>
723 </span>
724 <a href="<?php echo esc_url( $this->build_connect_url_for_slide( '53', 2 ) ); ?>" class="dops-button is-primary">
725 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
726 </a>
727 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
728 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
729 </a>
730 </p>
731 </div> <!-- end slide 2 -->
732
733 <!-- slide 3: marketing -->
734 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-three">
735 <h2><?php esc_html_e( 'Get The Traffic You Deserve', 'jetpack' ) ?></h2>
736
737 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
738 <img src="<?php echo plugins_url( 'images/stats-people.svg', JETPACK__PLUGIN_FILE ); ?>" alt="Get clear and concise stats and analytics about your visitors." height="auto" width="265" />
739 </div>
740
741 <p>
742 <?php
743 esc_html_e(
744 'A site without traffic is like a car without gas. Jetpack helps you fill up so that you can achieve your goals.',
745 'jetpack'
746 );
747 ?>
748 </p>
749
750 <p>
751 <?php
752 esc_html_e(
753 'Kickstart your marketing with social media automation tools, related content, email subscriptions, and sharing tools.',
754 'jetpack'
755 );
756 ?>
757 </p>
758
759 <p>
760 <?php
761 esc_html_e(
762 'You also get clear and concise stats and analytics about your visitors.',
763 'jetpack'
764 );
765 ?>
766 </p>
767
768 <p class="jp-banner__button-container">
769 <span class="jp-banner__tos-blurb">
770 <?php jetpack_render_tos_blurb(); ?>
771 </span>
772 <a
773 href="<?php echo esc_url( $this->build_connect_url_for_slide( '53', 3 ) ); ?>"
774 class="dops-button is-primary">
775 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
776 </a>
777 <a href="#" class="dops-button next-feature" title="<?php esc_attr_e( 'Jetpack Tour: Next Feature', 'jetpack' ); ?>">
778 <?php esc_html_e( 'Next feature', 'jetpack' ); ?>
779 </a>
780 </p>
781 </div> <!-- end slide 3 -->
782
783 <!-- slide 4: security -->
784 <div class="jp-wpcom-connect__slide jp-wpcom-connect__slide-four">
785 <h2><?php esc_html_e( 'Make Sure Your Site Is Always Online', 'jetpack' ) ?></h2>
786
787 <div class="jp-wpcom-connect__content-icon jp-connect-illo">
788 <img src="<?php echo plugins_url( 'images/security.svg', JETPACK__PLUGIN_FILE ); ?>" alt="Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security." height="auto" width="250" />
789 </div>
790
791 <p>
792 <?php
793 esc_html_e( 'Jetpack checks your site every few minutes, and if it\'s offline we\'ll notify you instantly.',
794 'jetpack'
795 );
796 ?>
797 </p>
798
799 <p>
800 <?php
801 esc_html_e( 'Your site is automatically protected from brute force attacks, plus you can use single sign-on for extra security.',
802 'jetpack'
803 );
804 ?>
805 </p>
806
807 <?php if ( Jetpack::show_backups_ui() ): ?>
808 <p>
809 <?php
810 esc_html_e( 'Paying customers also benefit from automated backups, malware scans, and priority support.',
811 'jetpack'
812 );
813 ?>
814 </p>
815 <?php endif; ?>
816
817 <p class="jp-banner__button-container">
818 <span class="jp-banner__tos-blurb">
819 <?php jetpack_render_tos_blurb(); ?>
820 </span>
821 <a
822 href="<?php echo esc_url( $this->build_connect_url_for_slide( '53', 4 ) ); ?>"
823 class="dops-button is-primary">
824 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
825 </a>
826 </p>
827 </div> <!-- end slide 4 -->
828 </div>
829 </div>
830 </div>
831 <?php
832 }
833
834 /**
835 * Renders the full-screen connection prompt. Only shown once and on plugin activation.
836 */
837 function render_connect_prompt_full_screen() {
838 ?>
839 <div class="jp-connect-full__container"><div class="jp-connect-full__container-card">
840
841 <img
842 class="jetpack-logo"
843 src="<?php echo plugins_url( 'images/jetpack-logo-green.svg', JETPACK__PLUGIN_FILE ); ?>"
844 alt="<?php
845 esc_attr_e(
846 'Jetpack is a free plugin that utilizes powerful WordPress.com servers to enhance your site and simplify managing it',
847 'jetpack'
848 ); ?>"
849 />
850
851 <div class="jp-connect-full__dismiss">
852 <svg class="jp-connect-full__svg-dismiss" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><title>Dismiss Jetpack Connection Window</title><rect x="0" fill="none" /><g><path d="M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"/></g></svg>
853 </div>
854
855 <div class="jp-connect-full__step-header">
856 <h2 class="jp-connect-full__step-header-title"><?php esc_html_e( 'The ideal way to experience WordPress', 'jetpack' ) ?></h2>
857 <h3 class="jp-connect-full__step-header-title"><?php esc_html_e( 'Hassle-free design, marketing, and security — all in one place.', 'jetpack' ) ?></h3>
858 </div>
859 <p class="jp-connect-full__tos-blurb">
860 <?php jetpack_render_tos_blurb(); ?>
861 </p>
862
863 <p class="jp-connect-full__button-container">
864 <a href="<?php echo esc_url( Jetpack::init()->build_connect_url( true, false, 'full-screen-prompt' ) ); ?>" class="dops-button is-primary">
865 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
866 </a>
867 </p>
868
869 <p class="jp-connect-full__dismiss-paragraph">
870 <a><?php echo esc_html_x( 'not now', 'a link that closes the modal window that offers to connect Jetpack', 'jetpack' ); ?></a>
871 </p>
872
873 <div class="jp-connect-full__slide">
874 <div class="jp-connect-full__slide-card">
875 <h4><?php esc_html_e( 'Design & Customization', 'jetpack' ); ?></h4>
876 <p><?php
877 esc_html_e(
878 'Design: Choose from hundreds of website theme designs and customize your site further with feature-rich widgets.',
879 'jetpack'
880 );
881 ?></p>
882 <p><?php
883 esc_html_e(
884 'Optimize: Upload images and videos directly to our powerful servers that present your media with lightning speed.',
885 'jetpack'
886 );
887 ?></p>
888 <p><?php
889 esc_html_e(
890 'Publish: Post on the go from any device using the WordPress apps for iOS, Android, Windows, Linux, and macOS.',
891 'jetpack'
892 );
893 ?></p>
894 </div>
895 <div class="jp-connect-full__slide-card illustration">
896 <img
897 src="<?php echo plugins_url( 'images/jetpack-design.svg', JETPACK__PLUGIN_FILE ); ?>"
898 alt="<?php esc_attr_e( 'Design & Customization', 'jetpack' ); ?>"
899 />
900 </div>
901 </div>
902 <div class="jp-connect-full__slide">
903 <div class="jp-connect-full__slide-card illustration">
904 <img
905 src="<?php echo plugins_url( 'images/jetpack-performance.svg', JETPACK__PLUGIN_FILE ); ?>"
906 alt="<?php esc_attr_e( 'Marketing & Performance', 'jetpack' ); ?>"
907 />
908 </div>
909 <div class="jp-connect-full__slide-card">
910 <h4><?php esc_html_e( 'Marketing & Performance', 'jetpack' ); ?></h4>
911 <p><?php
912 esc_html_e(
913 'Promote: Spread the word about your website by connecting to all major social media channels and plan ahead with automated scheduled posting.',
914 'jetpack'
915 );
916 ?></p>
917 <p><?php
918 esc_html_e(
919 'Measure: Keep track of your site’s performance with real-time stats—see where visitors are coming from and what they’re searching for.',
920 'jetpack'
921 );
922 ?></p>
923 <p><?php
924 esc_html_e(
925 'Earn: Generate revenue with the WordPress.com ad program and accept payment for goods and services via PayPal.',
926 'jetpack'
927 );
928 ?></p>
929 </div>
930 </div>
931 <div class="jp-connect-full__slide">
932 <div class="jp-connect-full__slide-card">
933 <h4><?php esc_html_e( 'Security & Backups', 'jetpack' ); ?></h4>
934 <p><?php
935 esc_html_e(
936 'Monitor: Get instant alerts if your site goes down via email and push notifications.',
937 'jetpack'
938 );
939 ?></p>
940 <p><?php
941 esc_html_e(
942 'Protect: Have peace of mind with around the clock protection against brute force attacks, spam, and malware.',
943 'jetpack'
944 );
945 ?></p>
946 <?php if ( Jetpack::show_backups_ui() ) : ?>
947 <p><?php
948 esc_html_e(
949 'Backup & Restore: Rest assured with real-time site backups and easy roll-back site restores.',
950 'jetpack'
951 );
952 ?></p>
953 <?php endif; ?>
954 </div>
955 <div class="jp-connect-full__slide-card illustration">
956 <img
957 src="<?php echo plugins_url( 'images/security.svg', JETPACK__PLUGIN_FILE ); ?>"
958 alt="<?php esc_attr_e( 'Security & Backups', 'jetpack' ); ?>"
959 />
960 </div>
961 </div>
962
963
964 <img
965 class="support-characters"
966 src="<?php echo plugins_url( 'images/characters.svg', JETPACK__PLUGIN_FILE ); ?>"
967 alt="<?php
968 esc_attr_e(
969 'Jetpack help personnel',
970 'jetpack'
971 ); ?>"
972 />
973 <div class="jp-connect-full__step-support">
974 <h2>At your service whenever you need help</h2>
975 <h3>
976 <?php esc_html_e( 'If you need help at any step of the way we’re happy to chat with you!', 'jetpack' ); ?>
977 </h3>
978 </div>
979
980 <p class="jp-connect-full__button-container">
981 <a href="https://jetpack.com/contact-support/" class="dops-button">
982 <?php esc_html_e( 'Get in touch with us', 'jetpack' ); ?>
983 </a>
984 <a href="https://jetpack.com/support" class="dops-button">
985 <?php esc_html_e( 'Search our support site', 'jetpack' ); ?>
986 </a>
987 </p>
988 <div class="jp-connect-full__step-header bottom">
989 <h2 class="jp-connect-full__step-header-title"><?php esc_html_e( 'Get started today', 'jetpack' ) ?></h2>
990 <h3 class="jp-connect-full__step-header-title">
991 <?php esc_html_e( 'Connect to, or create, a WordPress.com account to start using Jetpack, and activate our powerful security, traffic and customization services.', 'jetpack' ) ?>
992 </h3>
993 </div>
994 <p class="jp-connect-full__tos-blurb">
995 <?php jetpack_render_tos_blurb(); ?>
996 </p>
997 <p class="jp-connect-full__button-container">
998 <a href="<?php echo esc_url( Jetpack::init()->build_connect_url( true, false, 'full-screen-prompt' ) ); ?>" class="dops-button is-primary">
999 <?php esc_html_e( 'Set up Jetpack', 'jetpack' ); ?>
1000 </a>
1001 </p>
1002 </div></div>
1003 <?php
1004 }
1005
1006 /**
1007 * Renders the legacy network connection banner.
1008 */
1009 function network_connect_notice() {
1010 ?>
1011 <div id="message" class="updated jetpack-message">
1012 <div class="squeezer">
1013 <h2>
1014 <?php
1015 echo wp_kses(
1016 __(
1017 '<strong>Jetpack is activated!</strong> Each site on your network must be connected individually by an admin on that site.',
1018 'jetpack'
1019 ),
1020 array( 'strong' => array() )
1021 );
1022 ?>
1023 </h2>
1024 </div>
1025 </div>
1026 <?php
1027 }
1028 }
1029