PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 3.7.5
Jetpack – WP Security, Backup, Speed, & Growth v3.7.5
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / module-info.php

module-info.php in Jetpack – WP Security, Backup, Speed, & Growth 3.7.5, at modules/module-info.php

1,023 lines 59.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * "Learn More" information blocks for all modules live in this file.
4 *
5 * jetpack_module_more_info_<module-slug> hooks are for pre-connection information
6 * jetpack_module_more_info_connected_<module-slug> hooks are used once the user
7 * is connected to show them links to admin panels, usage info etc.
8 * jetpack_search_terms_<module-slug> filters are searchable from the settings page.
9 * Separate your search terms by comma, and please send translation context with _x()
10 */
11
12 // VaultPress (stub)
13
14 function vaultpress_jetpack_more_info() {
15 if ( function_exists( 'is_multisite' ) && is_multisite() ) {
16 $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
17 } else {
18 $vaultpress_url = 'http://vaultpress.com/jetpack/';
19 }
20 ?>
21
22 <div class="jp-info-img">
23 <a href="<?php echo $vaultpress_url?>">
24 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/vaultpress.png' ) ?>" alt="<?php esc_attr_e( 'VaultPress', 'jetpack' ) ?>" width="300" height="150" />
25 </a>
26 </div>
27
28 <?php if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) : ?>
29 <p><?php esc_html_e( 'Your WordPress installation is currently being protected with the world&#8217;s best security, backup, and support.', 'jetpack' ); ?></p>
30 <p><?php printf( _x( 'To check your backups, see any security alerts, or check your VaultPress Vitality, visit your %s.', 'Visit your _VaultPress_dashboard_.', 'jetpack' ), '<a href="https://dashboard.vaultpress.com/">' . esc_html__( 'VaultPress dashboard', 'jetpack' ) . '</a>' ); ?></a></p>
31 <?php else : ?>
32 <p><?php esc_html_e( 'With a monthly subscription, the VaultPress plugin will backup your site&#8217;s content, themes, and plugins in real-time, as well as perform regular security scans for common threats and attacks.', 'jetpack' ); ?></p>
33 <p><?php printf( _x( 'View %s.', 'View _Plans_&_Pricing_. (VaultPress)', 'jetpack' ), '<a href="' . $vaultpress_url . '">' . esc_html__( 'Plans & Pricing', 'jetpack' ) . '</a>' ); ?></a></p>
34 <?php endif;
35 }
36 add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' );
37 add_action( 'jetpack_module_more_info_connected_vaultpress', 'vaultpress_jetpack_more_info' );
38
39 function vaultpress_jetpack_load_more_link() {
40 if ( function_exists( 'is_multisite' ) && is_multisite() ) {
41 $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
42 } else {
43 $vaultpress_url = 'http://vaultpress.com/jetpack/';
44 }
45
46 echo '<a class="button-secondary more-info-link" href="' . $vaultpress_url . '">' . __( "Learn More", 'jetpack' ) . '</a>';
47 }
48 add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' );
49
50 // Gravatar Hovercards
51 function grofiles_more_info() { ?>
52 <div class="jp-info-img">
53 <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">
54 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/hovercards.png' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" />
55 </a>
56 </div>
57
58 <h5><?php esc_html_e( "What&#8217;s a Hovercard?", 'jetpack' ) ?></h5>
59 <p><?php esc_html_e( 'Hovercards enhance plain Gravatar images with information about a person: name, bio, pictures, their contact info, and other services they use on the web like Twitter, Facebook, or LinkedIn.', 'jetpack' ); ?></p>
60 <p><?php esc_html_e( 'Hovercards offer a great way to show your internet presence and help people find your own blog.', 'jetpack' ); ?></p>
61 <?php
62 }
63 add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' );
64
65 function grofiles_more_info_connected() { ?>
66 <div class="jp-info-img">
67 <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">
68 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/hovercards.png' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" />
69 </a>
70 </div>
71
72 <h5><?php esc_html_e( "What&#8217;s a Hovercard?", 'jetpack' ) ?></h5>
73 <p><?php esc_html_e( 'Hovercards enhance plain Gravatar images with information about a person: name, bio, pictures, their contact info, and other services.', 'jetpack' ); ?></p>
74 <p><?php esc_html_e( 'To see hovercards, look at any blog post on your blog that has comments. If the commenter has a hovercard associated with their gravatar, mouse over their image and the hovercard will appear. To turn hovercards off, click the Deactivate button above.', 'jetpack' ); ?></p>
75 <?php
76 }
77 add_action( 'jetpack_module_more_info_connected_gravatar-hovercards', 'grofiles_more_info_connected' );
78
79 function grofiles_load_more_link() {
80 echo '<a class="button-secondary more-info-link" href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
81 }
82 add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' );
83
84
85 // Shortcodes
86 function jetpack_shortcodes_more_info() { ?>
87 <div class="jp-info-img">
88 <a href="http://en.support.wordpress.com/shortcodes/">
89 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortcodes.png' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" />
90 </a>
91 </div>
92
93 <p><?php esc_html_e( 'Shortcodes allow you to easily and safely embed media from other places in your site. With just one simple code, you can tell WordPress to embed YouTube, Flickr, and other media.', 'jetpack' ) ?></p>
94 <?php
95 }
96 add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' );
97
98 function jetpack_shortcodes_more_info_connected() { ?>
99 <div class="jp-info-img">
100 <a href="http://en.support.wordpress.com/shortcodes/">
101 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortcodes.png' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" />
102 </a>
103 </div>
104
105 <p><?php esc_html_e( 'Shortcodes allow you to easily and safely embed media from other places in your site. With just one simple code, you can tell WordPress to embed YouTube, Flickr, and other media.', 'jetpack' ) ?></p>
106 <p><?php esc_html_e( 'Enter a shortcode directly into the Post/Page editor to embed media. For specific instructions follow the links below.', 'jetpack' ) ?></p>
107 <?php
108 $codes = array( 'archives' => 'http://support.wordpress.com/archives-shortcode/',
109 'bandcamp' => 'http://en.support.wordpress.com/audio/bandcamp/',
110 'blip.tv' => 'http://support.wordpress.com/videos/bliptv/',
111 'dailymotion' => 'http://support.wordpress.com/videos/dailymotion/',
112 'facebook' => 'http://en.support.wordpress.com/facebook-integration/facebook-embeds/',
113 'flickr' => 'http://support.wordpress.com/videos/flickr-video/',
114 'gist' => 'http://en.support.wordpress.com/gist/',
115 'googlemaps' => 'http://support.wordpress.com/google-maps/',
116 'jetpack_subscription_form' => 'http://jetpack.me/support/subscriptions/#display',
117 'polldaddy' => 'http://support.polldaddy.com/wordpress-shortcodes/',
118 'presentation' => 'http://en.support.wordpress.com/presentations/',
119 'recipes' => 'http://en.support.wordpress.com/recipes/',
120 'scribd' => 'http://support.wordpress.com/scribd/',
121 'slideshare' => 'http://support.wordpress.com/slideshows/slideshare/',
122 'slideshow' => 'http://en.support.wordpress.com/slideshows/',
123 'soundcloud' => 'http://support.wordpress.com/audio/soundcloud-audio-player/',
124 'ted' => 'http://en.support.wordpress.com/videos/ted-talks/',
125 'twitter-timeline' => 'http://en.support.wordpress.com/widgets/twitter-timeline-widget/#embedding-with-a-shortcode',
126 // 'upcomingevents' => 'http://en.support.wordpress.com/widgets/upcoming-events/#events-list-shortcode',
127 'vimeo' => 'http://support.wordpress.com/videos/vimeo/',
128 'vine' => 'http://en.support.wordpress.com/videos/vine/',
129 'youtube' => 'http://support.wordpress.com/videos/youtube/',
130 );
131
132 $codes['wpvideo (VideoPress)'] = 'http://en.support.wordpress.com/videopress/';
133
134 $available = '';
135 foreach ( $codes as $code => $url ) {
136 $available[] = '<a href="' . $url . '" target="_blank">[' . $code . ']</a>';
137
138 }
139 ?>
140 <p><?php echo wp_sprintf( esc_html__( 'Available shortcodes are: %l.', 'jetpack' ), $available ); ?></p>
141 <?php
142 }
143 add_action( 'jetpack_module_more_info_connected_shortcodes', 'jetpack_shortcodes_more_info_connected' );
144
145 function jetpack_shortcodes_load_more_link( $description ) {
146 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/shortcodes/">' . esc_html__( 'Learn More' , 'jetpack' ) . '</a>';
147 }
148 add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' );
149
150
151 // Shortlinks
152 function wpme_more_info() { ?>
153 <div class="jp-info-img">
154 <a href="http://wp.me/sf2B5-shorten">
155 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortlinks.png' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" />
156 </a>
157 </div>
158
159 <p><?php esc_html_e( "Instead of typing or copy-pasting long URLs, you can now get a short and simple link to your posts and pages. This uses the super compact wp.me domain name, and gives you a unique URL you can use that will be safe and reliable.", 'jetpack' ) ?></p>
160 <p><?php esc_html_e( "It&#8217;s perfect for use on Twitter, Facebook, and cell phone text messages where every character counts.", 'jetpack' ) ?></p>
161 <?php
162 }
163 add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );
164
165 function wpme_more_info_connected() { ?>
166 <div class="jp-info-img">
167 <a href="http://wp.me/sf2B5-shorten">
168 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortlinks.png' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" />
169 </a>
170 </div>
171
172 <p><?php esc_html_e( "Instead of typing or copy-pasting long URLs, you can now get a short and simple link to your posts and pages. This uses the super compact wp.me domain name, and gives you a unique URL you can use that will be safe and reliable.", 'jetpack' ) ?></p>
173 <p><?php esc_html_e( "To use shortlinks, go to any already published post (or publish something new!). A &#8220;Get Shortlink&#8221; button will be visible under the Post title. When you click it, a dialog box will appear with the shortlink and you can copy and paste to Twitter, Facebook or wherever your heart desires.", 'jetpack' ) ?></p>
174 <?php
175 }
176 add_action( 'jetpack_module_more_info_connected_shortlinks', 'wpme_more_info_connected' );
177
178 function wpme_load_more_link( $description ) {
179 echo '<a class="button-secondary more-info-link" href="http://wp.me/sf2B5-shorten">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
180 }
181 add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );
182
183
184 // Site Stats
185 function stats_more_info() { ?>
186 <div class="jp-info-img">
187 <a href="http://en.support.wordpress.com/stats/">
188 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/stats.png' ) ?>" alt="<?php esc_attr_e( 'Site Stats', 'jetpack' ) ?>" width="300" height="150" />
189 </a>
190 </div>
191
192 <p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. Site Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p>
193 <?php
194 }
195 add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );
196
197 function stats_more_info_connected() { ?>
198 <div class="jp-info-img">
199 <a href="http://en.support.wordpress.com/stats/">
200 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/stats.png' ) ?>" alt="<?php esc_attr_e( 'Site Stats', 'jetpack' ) ?>" width="300" height="150" />
201 </a>
202 </div>
203
204 <p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. Site Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p>
205 <p><?php printf( __( 'You can <a href="%s">view your stats dashboard here</a>.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?></p>
206 <?php
207 }
208 add_action( 'jetpack_module_more_info_connected_stats', 'stats_more_info_connected' );
209
210 function stats_load_more_link( $description ) {
211 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/stats/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
212 }
213 add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );
214
215 function jetpack_stats_search_terms( $terms ) {
216 $terms = _x( 'statistics, tracking, analytics, views, traffic', 'search terms', 'jetpack' );
217 return $terms;
218 }
219 add_filter( 'jetpack_search_terms_stats', 'jetpack_stats_search_terms' );
220
221 // Publicize
222 function publicize_more_info() { ?>
223 <div class="jp-info-img">
224 <a href="http://en.support.wordpress.com/publicize/">
225 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/publicize.png' ) ?>" alt="<?php esc_attr_e( 'Publicize', 'jetpack' ) ?>" width="328" height="123" />
226 </a>
227 </div>
228
229 <p><?php esc_html_e( 'Publicize allows you to connect your blog to popular social networking sites and automatically share new posts with your friends. You can make a connection for just yourself or for all users on your blog.', 'jetpack' ) ?></p>
230 <p><?php esc_html_e( 'Publicize allows you to share your posts on Facebook, Twitter, Tumblr, Yahoo!, and Linkedin.', 'jetpack' ); ?></p>
231
232 <?php if ( 'jetpack_module_more_info_connected_publicize' == current_filter() ) : ?>
233
234 <p><?php printf( __( 'Manage your <a href="%s">Publicize settings</a>.', 'jetpack' ), menu_page_url( 'sharing', false ) ); ?>
235
236 <?php endif; ?>
237
238 <p>&rarr; <a href="http://jetpack.me/support/publicize/"><?php esc_html_e( 'More information on using Publicize.', 'jetpack' ); ?></a></p>
239 <?php
240 }
241
242 add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' );
243 add_action( 'jetpack_module_more_info_connected_publicize', 'publicize_more_info' );
244
245 function publicize_load_more_link( $description ) {
246 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/publicize/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
247 }
248 add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' );
249
250 // Notifications
251 function notes_more_info() { ?>
252 <div class="jp-info-img">
253 <a href="http://support.wordpress.com/notifications/">
254 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/notes.png' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" />
255 </a>
256 </div>
257
258 <p><?php esc_html_e( 'Keep up with the latest happenings on all your WordPress sites and interact with other WordPress.com users.', 'jetpack' ) ?></p>
259 <?php
260 }
261 add_action( 'jetpack_module_more_info_notes', 'notes_more_info' );
262
263 function notes_more_info_connected() { ?>
264 <div class="jp-info-img">
265 <a href="http://support.wordpress.com/notifications/">
266 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/notes.png' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" />
267 </a>
268 </div>
269
270 <p><?php esc_html_e( 'Keep up with the latest happenings on all your WordPress sites and interact with other WordPress.com users.', 'jetpack' ) ?></p>
271 <p><?php printf( __( 'You can view your notifications in the Toolbar and <a href="%s">on WordPress.com</a>.', 'jetpack' ), 'http://wordpress.com/#!/notifications/' ); ?></p>
272 <?php
273 }
274 add_filter( 'jetpack_module_more_info_connected_notes', 'notes_more_info_connected' );
275
276 function notes_load_more_link( $description ) {
277 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/notifications/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
278 }
279 add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' );
280
281
282 // LaTeX
283 function latex_more_info() { ?>
284 <div class="jp-info-img">
285 <a href="http://support.wordpress.com/latex/">
286 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/beautifulmath.png' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" />
287 </a>
288 </div>
289
290 <p><?php printf( esc_html__( '%s is a powerful markup language for writing complex mathematical equations, formulas, etc.', 'jetpack' ), '<a href="http://www.latex-project.org/" target="_blank"><img src="//s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' ); ?></p>
291 <p><?php printf( esc_html__( 'Jetpack combines the power of %s and the simplicity of WordPress to give you the ultimate in math blogging platforms.', 'jetpack' ), '<img src="//s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" />' ); ?></p>
292 <p><?php esc_html_e( 'Wow, that sounds nerdy.', 'jetpack' ) ?></p>
293 <?php
294 }
295 add_action( 'jetpack_module_more_info_latex', 'latex_more_info' );
296
297 function latex_more_info_connected() { ?>
298 <div class="jp-info-img">
299 <a href="http://support.wordpress.com/latex/">
300 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/beautifulmath.png' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" />
301 </a>
302 </div>
303
304 <p><?php printf( esc_html__( '%s is a powerful markup language for writing complex mathematical equations, formulas, etc.', 'jetpack' ), '<a href="http://www.latex-project.org/" target="_blank"><img src="//s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' ); ?></p>
305 <p><?php printf( __( 'Use <code>$latex your latex code here$</code> or <code>[latex]your latex code here[/latex]</code> to include %s in your posts and comments. There are <a href="%s" target="_blank">all sorts of options</a> available.', 'jetpack' ), '<img src="//s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" />', 'http://support.wordpress.com/latex/' ); ?></p>
306 <?php
307 }
308 add_action( 'jetpack_module_more_info_connected_latex', 'latex_more_info_connected' );
309
310 function latex_load_more_link( $description ) {
311 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/latex/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
312 }
313 add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' );
314
315
316 // Sharedaddy
317 function sharedaddy_more_info() { ?>
318 <div class="jp-info-img">
319 <a href="http://en.support.wordpress.com/sharing/">
320 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/sharing.png' ) ?>" alt="<?php esc_attr_e( 'Sharing', 'jetpack' ) ?>" width="300" height="150" />
321 </a>
322 </div>
323 <p><?php esc_html_e( 'Share your posts with Twitter, Facebook, and a host of other services. You can configure services to appear as icons, text, or both. Some services have additional options to display smart buttons, such as Twitter, which will update the number of times the post has been shared.', 'jetpack' ); ?></p>
324
325 <p><?php
326 if ( is_multisite() ) {
327 esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, PressThis, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
328 } else {
329 esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
330 }
331 ?></p>
332
333 <p><?php esc_html_e( 'Additionally you can define your own custom services.', 'jetpack' ); ?></p>
334 <?php
335 }
336 add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' );
337
338 function sharedaddy_more_info_connected() { ?>
339 <div class="jp-info-img">
340 <embed type="application/x-shockwave-flash" src="http://s0.videopress.com/player.swf?v=1.02" height="190" wmode="transparent" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=WV0JOwY2"></embed>
341 </div>
342
343 <?php
344 if ( class_exists( 'Sharing_Admin' ) ) {
345 ?>
346
347 <p><?php printf( __( 'To configure your sharing settings, go to the Settings &rarr; <a href="%s">Sharing</a> menu.', 'jetpack' ), 'options-general.php?page=sharing' ); ?></p>
348 <p><?php esc_html_e( 'Drag and drop sharing services into the enabled section to have them show up on your site, and drag them into the hidden section to have them hidden behind a button.', 'jetpack' ); ?>
349
350 <?php
351 }
352 ?>
353
354 <p><?php printf( __( 'Full details can be found on the <a href="%s">Sharing support page</a>. This video also gives a swish run-down of how to use the Sharing feature. Watch it in HD for extra snazz!', 'jetpack' ), 'http://support.wordpress.com/sharing/' ); ?></p>
355 <?php
356 }
357 add_action( 'jetpack_module_more_info_connected_sharedaddy', 'sharedaddy_more_info_connected' );
358
359 function sharedaddy_load_more_link( $description ) {
360 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/sharing/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
361 }
362 add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' );
363
364
365 // After The Deadline
366 function jpatd_more_info() { ?>
367 <div class="jp-info-img">
368 <a href="http://en.support.wordpress.com/proofreading/">
369 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/spelling.png' ) ?>" alt="<?php esc_attr_e( 'Spelling and Grammar', 'jetpack' ) ?>" width="300" height="150" />
370 </a>
371 </div>
372
373 <p><?php printf( __( "The <a href='%s'>After&nbsp;the&nbsp;Deadline</a> Proofreading service improves your writing by using artificial intelligence to find your errors and offer smart suggestions.", 'jetpack' ), 'http://www.afterthedeadline.com/' ); ?></p>
374 <p><?php printf( __( 'After the Deadline provides a number of <a href="%s">customization options</a>, which you can edit in your profile.', 'jetpack' ), esc_url( get_edit_profile_url( get_current_user_id() ) ) . '#atd' ); ?></p>
375 <?php
376 }
377 add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' );
378
379 function jpatd_load_more_link( $description ) {
380 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/proofreading/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
381 }
382 add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' );
383
384
385 // RSS Links Widget, Image Widget, Twitter Widget
386 function jetpack_widgets_more_info() { ?>
387 <div class="jp-info-img">
388 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/widgets.png' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" />
389 </div>
390
391 <p><strong><?php esc_html_e( 'The RSS Links Widget ', 'jetpack' ); ?></strong> <?php esc_html_e( "allows you to add links to your blog&#8217;s post and comment RSS feeds in your sidebar. This makes it easy for your readers to stay updated when you post new content or receive new comments.", 'jetpack' ) ?></p>
392 <p><strong><?php esc_html_e( 'The Twitter Widget ', 'jetpack' ); ?></strong> <?php esc_html_e( "shows your latest tweets within a sidebar on your theme. It&#8217;s an easy way to add more activity to your site. There are also a number of customization options.", 'jetpack' ) ?> <strong><?php esc_html_e( 'The Facebook Like Box Widget ', 'jetpack' ); ?></strong> <?php esc_html_e( "shows your Facebook Like Box within a sidebar on your theme. It&#8217;s a great way to let your readers show their support.", 'jetpack' ) ?> <strong><?php esc_html_e( 'The Image Widget ', 'jetpack' ); ?></strong><?php esc_html_e( "allows you to easily add images to widget areas in your theme. It&#8217;s an easy way to add more visual interest to your site.", 'jetpack' ) ?></p>
393
394 <?php
395 }
396 add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' );
397
398 function jetpack_widgets_more_info_connected() { ?>
399 <div class="jp-info-img">
400 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/widgets.png' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" />
401 </div>
402
403 <p><?php printf( __( '<strong>The Twitter Widget</strong> shows your latest tweets within a sidebar on your theme.', 'jetpack' ) ); ?></p>
404 <p><?php printf( __( '<strong>The Facebook Like Box Widget</strong> shows your Facebook Like Box within a sidebar on your theme.', 'jetpack' ) ); ?></p>
405 <p><?php printf( __( '<strong>The Image Widget</strong> lets you easily add images to a sidebar on your theme.', 'jetpack' ) ); ?></strong> <?php esc_html_e( '', 'jetpack' ) ?></p>
406 <p><?php printf( __( '<strong>The Gravatar Widget</strong> allows you to pull in your Gravatar image along with some of your Gravatar profile data.', 'jetpack' ) ); ?></p>
407 <p><?php printf( __( '<strong>The Gallery Widget</strong> provides you with a simple way to display a photo gallery or slideshow in your blog’s sidebar. Requires the Tiled Gallery module.', 'jetpack' ) ); ?></p>
408 <p><?php printf( __( '<strong>The Display WordPress Posts Widget</strong> lets you display up to ten recent posts from another WordPress.com blog, or a self-hosted WordPress site with Jetpack enabled.', 'jetpack' ) ); ?></p>
409 <p><?php printf( __( '<strong>The Social Media Icons Widget</strong> lets you add icons for the most popular social networks to your sidebar or other widget area.', 'jetpack' ) ); ?></p>
410 <!--<p><?php printf( __( '<strong>The Upcoming Events Widget</strong> allows you to use an iCalendar link to display a list of events on your site.', 'jetpack' ) ); ?></p>-->
411
412 <p><?php esc_html_e( 'Each of these widgets has a number of customization options.', 'jetpack' ); ?> <?php printf( __( 'To use the widgets, go to Appearance &#8594; <a href="%s">Widgets</a>. Drag them into one of your sidebars and configure away.', 'jetpack' ), admin_url( 'widgets.php' ) ); ?></p>
413 <?php
414 }
415 add_action( 'jetpack_module_more_info_connected_widgets', 'jetpack_widgets_more_info_connected' );
416
417 function jetpack_widgets_load_more_link( $description ) {
418 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/widgets/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
419 }
420 add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' );
421
422 // Subscriptions
423 function jetpack_subscriptions_more_info() { ?>
424 <div class="jp-info-img">
425 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/subscriptions.png' ) ?>" alt="<?php esc_attr_e( 'Subsriptions Screenshot', 'jetpack' ) ?>" width="300" height="150" />
426 </div>
427
428 <p><?php esc_html_e( 'Easily allow any visitor to subscribe to all of your posts via email through a widget in your blog&#8217;s sidebar. Every time you publish a post, WordPress.com will send a notification to all your subscribers.', 'jetpack' ); ?></p>
429 <p><?php esc_html_e( 'When leaving comments, your visitors can also subscribe to a post&#8217;s comments to keep up with the conversation.', 'jetpack' ); ?></p>
430
431 <?php
432
433 if ( 'jetpack_module_more_info_connected_subscriptions' == current_filter() )
434 printf( '<p>' . __( 'To use the Subscriptions widget, go to Appearance &#8594; <a href="%s">Widgets</a>. Drag the widget labeled &#8220;Blog Subscriptions (Jetpack)&#8221; into one of your sidebars and configure away.', 'jetpack' ) . '</p>', admin_url( 'widgets.php' ) );
435 printf( '<p>' . __( 'You can also make changes to your Subscription settings at the bottom of the <a href="%s">Discussion Settings</a> page.', 'jetpack' ) . '</p>', admin_url( 'options-discussion.php#jetpack-subscriptions-settings' ) );
436 printf( '<p>' . __( 'To customize the emails sent from your blog to your followers, check the settings at the bottom of the <a href="%s">Reading Settings</a> page.', 'jetpack' ) . '</p>', admin_url( 'options-reading.php#follower-settings' ) );
437 }
438 add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' );
439 add_action( 'jetpack_module_more_info_connected_subscriptions', 'jetpack_subscriptions_more_info' );
440
441 function jetpack_subscriptions_load_more_link() {
442 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/following/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
443 }
444 add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' );
445
446 // Enhanced Distribution
447
448 function jetpack_enhanced_distribution_more_info() { ?>
449 <p><?php esc_html_e( 'Jetpack will automatically take the great published content from your blog or website and share it instantly with third party services like search engines, increasing your reach and traffic.', 'jetpack' ); ?></p>
450
451 <?php
452 }
453
454 add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
455 add_action( 'jetpack_module_more_info_connected_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
456
457 function jetpack_enhanced_distribution_more_link() {
458 echo '<a class="button-secondary more-info-link" href="http://en.wordpress.com/firehose/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
459 }
460 add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' );
461
462 // Protect
463 function jetpack_protect_more_info() { ?>
464 <p><?php esc_html_e( 'Protect is a cloud-powered brute force attack prevention tool. We leverage the millions of WordPress sites to identify and block malicious IPs.
465
466 Protect tracks failed login attempts across all Jetpack-connected sites using the Protect module. If any single IP has too many failed attempts in a short period of time, they are blocked from logging in to any site with this plugin installed.
467
468 Protect is derived from BruteProtect, and will disable BruteProtect on your site if it is currently enabled.', 'jetpack' ); ?></p><?php
469 }
470
471 add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' );
472 add_action( 'jetpack_module_more_info_connected_protect', 'jetpack_protect_more_info' );
473
474 function jetpack_protect_more_link() {
475 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/protect/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
476 }
477 add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' );
478
479 function jetpack_protect_search_terms( $terms ) {
480 $terms = _x( 'security, secure, protection, botnet, brute force', 'search terms', 'jetpack' );
481 return $terms;
482 }
483 add_filter( 'jetpack_search_terms_protect', 'jetpack_protect_search_terms' );
484
485 // JSON API
486 function jetpack_json_api_more_info() { ?>
487 <p><?php esc_html_e( 'Jetpack will allow you to authorize applications and services to securely connect to your blog and allow them to use your content in new ways and offer you new functionality.', 'jetpack' ); ?>
488
489 <p><?php _e( "Developers can use WordPress.com's <a href='http://developer.wordpress.com/docs/oauth2/'>OAuth2</a> authentication system and <a href='http://developer.wordpress.com/docs/api/'>WordPress.com REST API</a> to manage and access your site's content.", 'jetpack' ); ?></p>
490
491 <?php
492 }
493
494 add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' );
495 add_action( 'jetpack_module_more_info_connected_json-api', 'jetpack_json_api_more_info' );
496
497 function jetpack_json_api_more_link() {
498 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/json-api/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
499 }
500 add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' );
501
502 // Contact Form: START
503 function jetpack_contact_form_learn_more_button() {
504 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/contact-form/">' . __( 'Learn More', 'jetpack' ) . '</a>';
505 }
506
507 function jetpack_contact_form_more_info() {
508 echo '<div class="jp-info-img">';
509 echo '<a href="http://support.wordpress.com/contact-form/">';
510 echo '<img class="jp-info-img" src="' . plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/contactform.png' ) . '" alt="' . esc_attr__( 'Contact Form', 'jetpack' ) . '" width="300" height="150" />';
511 echo '</a>';
512 echo '</div>';
513
514 echo '<p>';
515 _e( 'A contact form is a great way to offer your readers the ability to get in touch, without giving out your personal email address.', 'jetpack' );
516 echo '</p>';
517
518 echo '<p>';
519 _e( 'Each contact form can easily be customized to fit your needs. When a user submits your contact form, the feedback will be filtered through <a href="http://akismet.com/">Akismet</a> (if it is active on your site) to make sure it’s not spam. Any legitimate feedback will then be emailed to you, and added to your feedback management area.', 'jetpack' );
520 echo '</p>';
521 }
522
523 add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' );
524 add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' );
525 add_action( 'jetpack_module_more_info_connected_contact-form', 'jetpack_contact_form_more_info' );
526 // Contact Form: STOP
527
528 // Comments: START
529 function jetpack_comments_learn_more_button() {
530 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
531 }
532
533 function jetpack_comments_more_info() {
534 ?>
535 <div class="jp-info-img">
536 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/comments.png' ) ?>" alt="<?php esc_attr_e( 'Comments Screenshot', 'jetpack' ) ?>" width="300" height="150" />
537 </div>
538
539 <p><?php esc_html_e( 'Comments enables your visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on your site.', 'jetpack' ); ?></p>
540
541 <?php if ( 'jetpack_module_more_info_connected_comments' == current_filter() ) : ?>
542
543 <p><?php printf(
544 __( "Jetpack tries to match your site's color scheme automatically, but you can make manual adjustments at the bottom of the <a href='%s'>Discussion Settings</a> page.", 'jetpack' ),
545 admin_url( 'options-discussion.php#jetpack-comments-settings' )
546 ); ?></p>
547
548 <?php endif; ?>
549 <?php
550 }
551
552 add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' );
553 add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' );
554 add_action( 'jetpack_module_more_info_connected_comments', 'jetpack_comments_more_info' );
555 // Comments: STOP
556
557 // Gallery Carousel: START
558 function jetpack_carousel_learn_more_button() {
559 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
560 }
561
562 function jetpack_carousel_more_info() {
563 ?>
564 <div class="jp-info-img">
565 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/carousel.png' ) ?>" alt="<?php esc_attr_e( 'Gallery Carousel Screenshot', 'jetpack' ) ?>" width="300" height="188" />
566 </div>
567
568 <p><?php esc_html_e( 'With Carousel active, any standard WordPress galleries you have embedded in posts or pages will launch a gorgeous full-screen photo browsing experience with comments and EXIF metadata.', 'jetpack' ); ?></p>
569 <?php
570 }
571
572 add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' );
573 add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' );
574 add_action( 'jetpack_module_more_info_connected_carousel', 'jetpack_carousel_more_info' );
575 // Gallery Carousel: STOP
576
577 // Custom CSS: START
578 function jetpack_custom_css_more_info() {
579 ?>
580 <div class="jp-info-img">
581 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-css.png' ) ?>" alt="<?php esc_attr_e( 'Custom CSS', 'jetpack' ) ?>" width="300" height="150" />
582 </div>
583
584 <p><?php esc_html_e( "The Custom CSS editor gives you the ability to add to or replace your theme's CSS, all while supplying syntax coloring, auto-indentation, and immediate feedback on the validity of the CSS you're writing.", 'jetpack' ); ?></p>
585 <p><?php printf( __( 'To use the CSS editor, go to Appearance &#8594; <a href="%s">Edit CSS</a>.', 'jetpack' ), admin_url( 'themes.php?page=editcss' ) ); ?></p>
586
587 <?php
588 }
589
590 function jetpack_custom_css_more_button() {
591 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
592 }
593
594 add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );
595 add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );
596 // Custom CSS: STOP
597
598 // Minileven: START
599 function jetpack_minileven_more_info() {
600 ?>
601 <div class="jp-info-img">
602 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/mobile-theme.png' ) ?>" alt="<?php esc_attr_e( 'Mobile Theme', 'jetpack' ) ?>" width="300" height="150" />
603 </div>
604
605 <p><?php esc_html_e( "There's a good chance that visitors to your site will be using a smartphone, and it's important to provide them with a great reading experience while on the small screen.", 'jetpack' ); ?></p>
606 <p><?php esc_html_e( "Jetpack's mobile theme is optimized for small screens. It uses the header image, background, and widgets from your current theme for a great custom look. Post format support is included, so your photos and galleries will look fantastic on a smartphone.", 'jetpack' ); ?></p>
607 <p><?php esc_html_e( 'Visitors on iPhone, Android, Windows Phone, and other mobile devices will automatically see the mobile theme, with the option to view the full site. You can enable or disable the mobile theme by clicking the "Activate" or "Deactive" button above.', 'jetpack' ); ?></p>
608 <?php
609 }
610
611 function jetpack_minileven_more_button() {
612 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
613 }
614
615 add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' );
616 add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' );
617 // Minileven: STOP
618
619 // Infinite Scroll: START
620 /**
621 *
622 */
623 function jetpack_infinite_scroll_more_info() {
624 $support_text = sprintf( __( 'If you are a theme author, you can learn about adding support for Infinite Scroll at <a href="%1$s">%1$s</a>.', 'jetpack' ), 'http://jetpack.me/support/infinite-scroll/' );
625
626 ?>
627
628 <?php if ( ! Jetpack::is_active() || ( Jetpack::is_active() && current_theme_supports( 'infinite-scroll' ) ) ) : ?>
629 <p><?php esc_html_e( 'When you write great content, all you really want is people to find it, right?', 'jetpack' ); ?></p>
630
631 <p><?php esc_html_e( "With the Infinite Scroll module and a supported theme, that's exactly what happens. Instead of the old way of navigating down a page by scrolling and then clicking a link to get to the next page, waiting for a page refresh&mdash;the document model of the web&mdash;infinite scrolling pulls the next set of posts automatically into view when the reader approaches the bottom of the page, more like an application.", 'jetpack' ); ?></p>
632
633 <?php else : ?>
634 <p><?php echo esc_html( sprintf( __( "At this time, your theme, %s, doesn't support Infinite Scroll. Unlike other Jetpack modules, Infinite Scroll needs information from your theme to function properly.", 'jetpack' ), ( function_exists( 'wp_get_theme' ) ? wp_get_theme()->Name : get_current_theme() ) ) ); ?></p>
635
636 <p><?php esc_html_e( "Until your theme supports Infinite Scroll, you won't be able to activate this module.", 'jetpack' ); ?></p>
637
638 <?php
639
640 if ( current_user_can( 'update_themes' ) ) :
641 ob_start();
642 theme_update_available( function_exists( 'wp_get_theme' ) ? wp_get_theme() : (object) get_theme( get_current_theme() ) );
643 $theme_update_available = ob_get_clean();
644
645 if ( ! empty( $theme_update_available ) ) : ?>
646 <p><?php printf( __( 'There is an update available for your theme. You may wish to check if this update adds Infinite Scroll support by visiting the <a href="%s">WordPress Updates</a> page.', 'jetpack' ), esc_url( admin_url( 'update-core.php' ) ) ); ?></p>
647 <?php else : ?>
648 <p><?php echo $support_text; ?></p>
649 <?php endif; ?>
650 <?php else : ?>
651 <p><?php echo $support_text; ?></p>
652 <?php endif; ?>
653 <?php endif;
654 }
655 add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' );
656
657 /**
658 *
659 */
660 function jetpack_infinite_scroll_more_button() {
661 echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
662 }
663 add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' );
664 // Infinite Scroll: STOP
665
666
667 // Post by Email: START
668 function jetpack_post_by_email_more_info() { ?>
669 <div class="jp-info-img">
670 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/post-by-email.png' ) ?>" alt="<?php esc_attr_e( 'Post by Email', 'jetpack' ) ?>" width="300" height="115" />
671 </div>
672
673 <p><?php esc_html_e( 'Post by Email is a way of publishing posts on your blog by email. Any email client can be used to send the email, allowing you to publish quickly and easily from devices such as cell phones.', 'jetpack' ); ?></p>
674
675 <?php if ( 'jetpack_module_more_info_connected_post-by-email' == current_filter() ) : ?>
676
677 <p><?php printf( __( 'Manage your Post By Email address from your <a href="%s">profile settings</a>.', 'jetpack' ), esc_url( get_edit_profile_url( get_current_user_id() ) . '#post-by-email' ) ); ?>
678
679 <?php endif; ?>
680
681 <p>&rarr; <a href="http://jetpack.me/support/post-by-email/"><?php esc_html_e( 'More information on sending emails, attachments, and customizing your posts.', 'jetpack' ); ?></a></p>
682
683 <?php
684 }
685
686 function jetpack_post_by_email_more_link() {
687 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/post-by-email/">' . __( 'Learn More', 'jetpack' ) . '</a>';
688 }
689
690 add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );
691 add_action( 'jetpack_module_more_info_connected_post-by-email', 'jetpack_post_by_email_more_info' );
692 add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );
693 // Post by Email: STOP
694
695
696 // Photon: START
697 /**
698 *
699 */
700 function jetpack_photon_more_info() { ?>
701 <p><?php esc_html_e( "Give your site a boost by loading images in posts from the WordPress.com content delivery network. We cache your images and serve them from our super-fast network, reducing the burden on your Web host with the click of a button.", 'jetpack' ); ?></p>
702 <?php
703 }
704 add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' );
705
706 /**
707 * Display "Learn More" button for Photon module
708 * @uses __
709 * @action jetpack_learn_more_button_photon
710 * @return string
711 */
712 function jetpack_photon_more_link() {
713 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
714 }
715 add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' );
716 // Photon: STOP
717
718 // Tiled Galleries: START
719 function jetpack_tiled_gallery_more_info() { ?>
720 <div class="jp-info-img">
721 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/tiled-gallery.png' ) ?>" alt="<?php esc_attr_e( 'Tiled Galleries', 'jetpack' ) ?>" width="300" height="150" />
722 </div>
723
724 <p><?php esc_html_e( 'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphic editor.', 'jetpack' ); ?></p>
725 <p><?php printf( __( 'When adding a gallery to your post, you now have the option to select a layout style for your images. We\'ve added support for Rectangular, Square, and Circular galleries. By default, galleries will continue to display using the standard thumbnail grid layout. To make the rectangular layout the default for all of your site\'s galleries, head over to <a href="%s">Settings &rarr; Media</a> and check the box next to "Display all your gallery pictures in a cool mosaic."', 'jetpack' ), admin_url( 'options-media.php' ) ); ?></p>
726 <p><em><?php esc_html_e( 'Note: Images in tiled galleries require extra-special processing, so they will be served from WordPress.com\'s CDN even if the Photon module is disabled.', 'jetpack' ); ?></em></p>
727 <?php
728 }
729 add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' );
730
731 function jetpack_tiled_gallery_more_link() {
732 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
733 }
734 add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' );
735 // Tiled Galleries: STOP
736
737 // Likes: START
738 function jetpack_likes_more_info() { ?>
739
740 <div class="jp-info-img">
741 <a href="http://jetpack.me/support/likes/">
742 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/likes.png' ) ?>" alt="<?php esc_attr_e( 'Likes', 'jetpack' ) ?>" width="323" height="69" />
743 </a>
744 </div>
745
746 <p><?php esc_html_e( 'Likes allow your readers to show their appreciation for your posts and other published content using their WordPress.com accounts. Your readers will then be able to review their liked posts from WordPress.com.', 'jetpack' ) ?></p>
747 <p><?php esc_html_e( 'Displayed below your posts will be how many people have liked your posts and the Gravatars of those who have liked them.', 'jetpack' ); ?></p>
748 <?php if ( current_user_can( 'jetpack_manage_modules' ) ) : ?>
749 <p><?php esc_html_e( 'You can turn Likes on by following these steps:', 'jetpack' ); ?></p>
750 <ol>
751 <li><?php esc_html_e( 'Make sure the module is activated by clicking on "Activate" at the bottom of this page.', 'jetpack' ); ?></li>
752 <li><?php esc_html_e( 'Go to Settings > Sharing in your Dashboard.', 'jetpack' ); ?></li>
753 <li><?php esc_html_e( 'Ensure that "WordPress.com Likes are…" is set to "On for all posts"', 'jetpack' ); ?></li>
754 </ol>
755 <?php endif; ?>
756 <p>&rarr; <a href="http://jetpack.me/support/likes/"><?php esc_html_e( 'More information on using Likes.', 'jetpack' ); ?></a></p>
757
758 <?php
759 }
760 add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' );
761
762 function jetpack_likes_more_link() {
763 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
764 }
765 add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' );
766 // Likes: STOP
767
768 // Omnisearch: START
769 function jetpack_omnisearch_more_info() {
770 ?>
771
772 <p><?php esc_html_e( 'Search once, get results from everything! Currently supports searching posts, pages, comments, media, and plugins.', 'jetpack' ); ?></p>
773
774 <p><?php esc_html_e( 'Omnisearch plays nice with other plugins by letting other providers offer results as well.', 'jetpack' ); ?></p>
775
776 <?php if( class_exists( 'Jetpack_Omnisearch' ) && current_user_can( 'edit_posts' ) ): ?>
777 <?php echo Jetpack_Omnisearch::get_omnisearch_form(); ?>
778 <?php endif; ?>
779
780 <?php
781 }
782
783 function jetpack_omnisearch_more_link() {
784 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/omnisearch/">' . __( 'Learn More', 'jetpack' ) . '</a>';
785 }
786
787 add_action( 'jetpack_module_more_info_omnisearch', 'jetpack_omnisearch_more_info' );
788 add_action( 'jetpack_learn_more_button_omnisearch', 'jetpack_omnisearch_more_link' );
789 // Omnisearch: STOP
790
791 // Widget Visibility: START
792 function jetpack_widget_visibility_more_info() { ?>
793 <p><?php esc_html_e( 'Control which pages your widgets appear on with Widget Visibility.', 'jetpack' ); ?></p>
794 <p><?php esc_html_e( 'To control visibility, expand the widget and click the Visibility button next to the Save button, and then, choose a set of visibility options.', 'jetpack' ); ?></p>
795 <p><?php esc_html_e( 'For example, if you wanted the Archives widget to only appear on category archives and error pages, choose "Show" from the first dropdown and then add two rules: "Page is 404 Error Page" and "Category is All Category Pages."', 'jetpack' ); ?></p>
796 <p><?php esc_html_e( 'You can also hide widgets based on the current page. For example, if you don\'t want the Archives widget to appear on search results pages, choose "Hide" and "Page is Search results."', 'jetpack' ); ?></p>
797 <?php
798 }
799
800 function jetpack_widget_visibility_more_link() {
801 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/widget-visibility/">' . __( 'Learn More', 'jetpack' ) . '</a>';
802 }
803
804 add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' );
805 add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' );
806 // Widget Visibility: STOP
807
808 // VideoPress: START
809 function jetpack_videopress_more_info() {
810 ?>
811 <p><?php printf(
812 __( 'With the VideoPress module you can easily upload videos to your WordPress site and embed them in your posts and pages. This module requires a WordPress.com account with an active <a href="%1$s" target="_blank">VideoPress subscription</a>. Once you have purchased a VideoPress subscription, <a href="%2$s">click here to configure VideoPress</a>.', 'jetpack' ),
813 'http://store.wordpress.com/premium-upgrades/videopress/',
814 Jetpack::admin_url( 'page=jetpack&configure=videopress' )
815 ); ?></p>
816 <?php
817 }
818 add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' );
819
820 function jetpack_videopress_more_link() {
821 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
822 }
823 add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' );
824 // VideoPress: STOP
825
826 // SSO: START
827 function jetpack_sso_more_info() { ?>
828
829 <p><?php esc_html_e( 'With Single Sign On, your users will be able to log in to or register for your WordPress site with the same credentials they use on WordPress.com. It\'s safe and secure.' , 'jetpack' ); ?></p>
830 <p><?php esc_html_e( 'Once enabled, a "Log in with WordPress.com" option will be added to your existing log in form.' , 'jetpack' ); ?></p>
831
832 <?php
833 }
834
835 function jetpack_sso_more_link() {
836 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/sso/">' . __( 'Learn More', 'jetpack' ) . '</a>';
837 }
838
839 add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' );
840 add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' );
841 // SSO: STOP
842
843 // Monitor: START
844 function jetpack_monitor_more_info() { ?>
845
846 <p><?php esc_html_e( 'Nobody likes downtime, and that\'s why Jetpack Monitor is on the job, keeping tabs on your site by checking it every five minutes. As soon as any downtime is detected, you will receive an email notification alerting you to the issue. That way you can act quickly, to get your site back online again!', 'jetpack' ); ?>
847
848 <p><?php esc_html_e( 'We’ll also let you know as soon as your site is up and running, so you can keep an eye on total downtime.', 'jetpack'); ?></p>
849
850 <?php
851 }
852 add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' );
853
854 function jetpack_monitor_more_link() {
855 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/monitor/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
856 }
857 add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' );
858 // Monitor: STOP
859
860 // Related Posts: START
861 function jetpack_related_posts_more_info() {
862 $template = <<<EOT
863 <div class="jp-info-img">
864 <a href="http://jetpack.me/support/related-posts/">
865 <img class="jp-info-img" src="%s" alt="%s" width="300" height="98" />
866 </a>
867 </div>
868
869 <p>%s</p>
870 <p>&rarr; <a href="http://jetpack.me/support/related-posts/">%s</a></p>
871 EOT;
872 printf(
873 $template,
874 plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/related-posts.png' ),
875 esc_attr__( 'Related Posts', 'jetpack' ),
876 esc_html__( '"Related Posts" shows additional relevant links from your site under your posts. If the feature is enabled, links appear underneath your Sharing Buttons and WordPress.com Likes (if you’ve turned these on).', 'jetpack' ),
877 esc_html__( 'More information on using Related Posts.', 'jetpack' )
878 );
879 }
880 add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' );
881
882 function jetpack_related_posts_more_info_connected() {
883 $template = <<<EOT
884 <div class="jp-info-img">
885 <a href="http://jetpack.me/support/related-posts/">
886 <img class="jp-info-img" src="%s" alt="%s" width="300" height="98" />
887 </a>
888 </div>
889
890 <p>%s</p>
891 <p>&rarr; <a href="http://jetpack.me/support/related-posts/">%s</a></p>
892 <hr />
893 <p><a href="%s#sync-related-posts">%s</a></p>
894 EOT;
895 printf(
896 $template,
897 plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/related-posts.png' ),
898 esc_attr__( 'Related Posts', 'jetpack' ),
899 esc_html__( '"Related Posts" shows additional relevant links from your site under your posts. If the feature is enabled, links appear underneath your Sharing Buttons and WordPress.com Likes (if you’ve turned these on).', 'jetpack' ),
900 esc_html__( 'More information on using Related Posts.', 'jetpack' ),
901 esc_url( Jetpack::admin_url( array( 'page' => 'jetpack-debugger' ) ) ),
902 esc_html__( 'This feature uses the WordPress.com infrastructure and requires that your public content be mirrored there. If you see intermittent issues only affecting certain posts, request a reindex of your posts.', 'jetpack' )
903 );
904 }
905 add_action( 'jetpack_module_more_info_connected_related-posts', 'jetpack_related_posts_more_info_connected' );
906
907 function jetpack_related_posts_more_button() {
908 echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
909 }
910 add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' );
911 // Related Posts: STOP
912
913 // Markdown: START
914 function jetpack_markdown_more_info() { ?>
915 <p><?php esc_html_e( 'Markdown lets you compose posts and comments with links, lists, and other styles using regular characters and punctuation marks. Markdown is used by writers and bloggers who want a quick and easy way to write rich text, without having to take their hands off the keyboard, and without learning a lot of complicated codes and shortcuts.', 'jetpack' ); ?></p>
916
917 <?php
918 }
919 add_action( 'jetpack_module_more_info_markdown', 'jetpack_markdown_more_info' );
920
921 function jetpack_markdown_more_link() {
922 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/markdown/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
923 }
924 add_action( 'jetpack_learn_more_button_markdown', 'jetpack_markdown_more_link' );
925 // Markdown: STOP
926
927 // Site Verification Tools: START
928 function jetpack_verification_tools_more_info() { ?>
929 <p><?php esc_html_e( 'Use these tools to verify that you own/control your website with other external services like Google, Bing and Pinterest.', 'jetpack' ); ?></p>
930 <p><?php printf( __( "Verifying your site allows you to access advanced features on these other services (e.g. Webmaster tools, or getting a verified badge). We'll just add an invisible %s tag to the source code of your homepage.", 'jetpack' ), '<code>meta</code>' ); ?></p>
931 <?php
932 }
933 add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' );
934
935 function jetpack_verification_tools_more_link() {
936 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/webmaster-tools/">' . __( 'Learn More', 'jetpack' ) . '</a>';
937 }
938 add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' );
939 // Site Verification Tools: STOP
940
941 // Custom Content Types: START
942 function jetpack_custom_content_types_more_info() { ?>
943
944 <div class="jp-info-img">
945 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-content-types.png' ) ?>" alt="<?php esc_attr_e( 'Custom Content Type', 'jetpack' ) ?>" width="300" height="150" />
946 </div>
947
948 <p><?php esc_html_e( 'Organize and display different types of content on your site, separate from posts and pages.', 'jetpack' ); ?></p>
949 <p><?php printf( __( 'To enable a custom content type, head over to <a href="%s">Settings &rarr; Writing &rarr; Your Custom Content Types</a> to activate either "Portfolio Projects” or “Testimonials” by checking the corresponding checkbox. You can now add projects and testimonials under the new "Portfolio” or “Testimonials” menu item in your sidebar.', 'jetpack' ), admin_url( 'options-writing.php#cpt-options' ) ); ?></p>
950 <p><?php
951 /* translators: all variables are URLs */
952 printf(
953 __(
954 'Once added, your custom content will be visible on your website at %1$s or %2$s, or you may add them with <a href="%3$s" target="_blank">shortcodes</a>.',
955 'jetpack'
956 ),
957 get_site_url() . '/portfolio/',
958 get_site_url() . '/testimonial/',
959 'http://jetpack.me/support/custom-content-types/'
960 );
961 ?></p>
962 <?php
963 }
964 add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' );
965
966 function jetpack_custom_content_types_more_link() {
967 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/portfolios/">' . __( 'Learn More', 'jetpack' ) . '</a>';
968 }
969 add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' );
970 // Custom Content Types: STOP
971
972 // Site Icon: START
973 function jetpack_custom_site_icon() { ?>
974
975
976 <div class="jp-info-img">
977 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/site-icon.png' ) ?>" alt="<?php esc_attr_e( 'Site Icon', 'jetpack' ) ?>" width="300" height="150" />
978 </div>
979
980 <p><?php esc_html_e( 'Site Icon lets you create an icon for your site. This icon will be used as favicon, mobile icon, and Tile on Windows 8 computers.', 'jetpack' ); ?></p>
981 <p><?php printf( __( 'To add a new icon to your site, head over to <a href="%s">Settings &rarr; General &rarr; Site Icon</a>, and upload an icon.', 'jetpack' ), admin_url( 'options-general.php#site-icon' ) ); ?></p>
982
983 <?php
984 }
985 add_action( 'jetpack_module_more_info_site-icon', 'jetpack_custom_site_icon' );
986
987 function jetpack_site_icon_more_link() {
988 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/site-icon">' . __( 'Learn More', 'jetpack' ) . '</a>';
989 }
990 add_action( 'jetpack_learn_more_button_site-icon', 'jetpack_site_icon_more_link' );
991 // Site Icon: STOP
992
993 // Manage: Start
994 function jetpack_custom_jetpack_manage() { ?>
995
996
997 <div class="jp-info-img">
998 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/manage.png' ) ?>" alt="<?php esc_attr_e( 'Manage all of your WordPress sites, self-hosted or not, from WordPress.com', 'jetpack' ) ?>" width="300" height="150" />
999 </div>
1000
1001 <p><em><?php esc_html_e( 'Enabling Manage allows you to update your self-hosted WordPress sites along with any WordPress.com sites you have, all in one simple dashboard.', 'jetpack' ); ?></em></p>
1002 <p><strong><?php _e( 'Plugins', 'jetpack' ); ?></strong><br />
1003 <?php printf( __( 'Now you can update plugins, set plugins to automatically update, and activate or deactivate plugins on a per-site basis or in bulk from <a href="%s">wordpress.com/plugins</a>.', 'jetpack' ), 'https://wordpress.com/plugins' ); ?></p>
1004
1005 <p><strong><?php _e( 'Themes', 'jetpack' ); ?></strong><br />
1006 <?php printf( __( 'List your installed themes, search, and activate them from <a href="%s">wordpress.com/design</a>.', 'jetpack' ), 'https://wordpress.com/design' ); ?></p>
1007
1008 <p><strong><?php _e( 'Menus', 'jetpack' ); ?></strong><br />
1009 <?php printf( __( 'Create a new menu for your site, or edit existing menus from <a href="%s">wordpress.com/menus</a>.', 'jetpack' ), 'https://wordpress.com/menus' ); ?></p>
1010
1011 <p><strong><?php _e( 'Posts and Pages', 'jetpack' ); ?></strong><br />
1012 <?php printf( __( 'Add a new post or page to any of your sites from a single interface.', 'jetpack' ) ); ?></p>
1013
1014 <?php
1015 }
1016 add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' );
1017
1018 function jetpack_manage_more_link() {
1019 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/site-management/">' . __( 'Learn More', 'jetpack' ) . '</a>';
1020 }
1021 add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' );
1022 // Manage: STOP
1023