PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 2.6.6
Jetpack – WP Security, Backup, Speed, & Growth v2.6.6
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
901 lines 51.8 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 */
9
10 // VaultPress (stub)
11
12 function vaultpress_jetpack_more_info() {
13 if ( function_exists( 'is_multisite' ) && is_multisite() ) {
14 $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
15 } else {
16 $vaultpress_url = 'http://vaultpress.com/jetpack/';
17 }
18 ?>
19
20 <div class="jp-info-img">
21 <a href="<?php echo $vaultpress_url?>">
22 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/vaultpress.png' ) ?>" alt="<?php esc_attr_e( 'VaultPress', 'jetpack' ) ?>" width="300" height="150" />
23 </a>
24 </div>
25
26 <h4><?php esc_html_e( 'VaultPress', 'jetpack' ) ?></h4>
27 <?php if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) : ?>
28 <p><?php esc_html_e( 'Your WordPress installation is currently being protected with the world&#8217;s best security, backup, and support.', 'jetpack' ); ?></p>
29 <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>
30 <?php else : ?>
31 <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>
32 <p><?php printf( _x( 'View %s.', 'View _Plans_&_Pricing_. (VaultPress)', 'jetpack' ), '<a href="' . $vaultpress_url . '">' . esc_html__( 'Plans & Pricing', 'jetpack' ) . '</a>' ); ?></a></p>
33 <?php endif;
34 }
35 add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' );
36 add_action( 'jetpack_module_more_info_connected_vaultpress', 'vaultpress_jetpack_more_info' );
37
38 function vaultpress_jetpack_load_more_link() {
39 if ( function_exists( 'is_multisite' ) && is_multisite() ) {
40 $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
41 } else {
42 $vaultpress_url = 'http://vaultpress.com/jetpack/';
43 }
44
45 echo '<a class="button-secondary more-info-link" href="' . $vaultpress_url . '">' . __( "Learn More", 'jetpack' ) . '</a>';
46 }
47 add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' );
48
49 // Gravatar Hovercards
50 function grofiles_more_info() { ?>
51 <div class="jp-info-img">
52 <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">
53 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/hovercards.png' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" />
54 </a>
55 </div>
56
57 <h4><?php esc_html_e( 'Gravatar Hovercards', 'jetpack' ) ?></h4>
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__ ) ) ) . '/_inc/images/screenshots/hovercards.png' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" />
69 </a>
70 </div>
71
72 <h4><?php esc_html_e( 'Gravatar Hovercards', 'jetpack' ) ?></h4>
73 <h5><?php esc_html_e( "What&#8217;s a Hovercard?", 'jetpack' ) ?></h5>
74 <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>
75 <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>
76 <?php
77 }
78 add_action( 'jetpack_module_more_info_connected_gravatar-hovercards', 'grofiles_more_info_connected' );
79
80 function grofiles_load_more_link() {
81 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>';
82 }
83 add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' );
84
85
86 // Shortcodes
87 function jetpack_shortcodes_more_info() { ?>
88 <div class="jp-info-img">
89 <a href="http://en.support.wordpress.com/shortcodes/">
90 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/shortcodes.png' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" />
91 </a>
92 </div>
93
94 <h4><?php esc_html_e( 'Shortcode Embeds', 'jetpack' ) ?></h4>
95 <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>
96 <?php
97 }
98 add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' );
99
100 function jetpack_shortcodes_more_info_connected() { ?>
101 <div class="jp-info-img">
102 <a href="http://en.support.wordpress.com/shortcodes/">
103 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/shortcodes.png' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" />
104 </a>
105 </div>
106
107 <h4><?php esc_html_e( 'Shortcode Embeds', 'jetpack' ) ?></h4>
108 <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>
109 <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>
110 <?php
111 $codes = array( 'archives' => 'http://support.wordpress.com/archives-shortcode/',
112 'audio' => 'http://support.wordpress.com/audio/',
113 'blip.tv' => 'http://support.wordpress.com/videos/bliptv/',
114 'dailymotion' => 'http://support.wordpress.com/videos/dailymotion/',
115 'flickr' => 'http://support.wordpress.com/videos/flickr-video/',
116 'scribd' => 'http://support.wordpress.com/scribd/',
117 'slideshare' => 'http://support.wordpress.com/slideshows/slideshare/',
118 'soundcloud' => 'http://support.wordpress.com/audio/soundcloud-audio-player/',
119 'vimeo' => 'http://support.wordpress.com/videos/vimeo/',
120 'youtube' => 'http://support.wordpress.com/videos/youtube/',
121 'polldaddy' => 'http://support.polldaddy.com/wordpress-shortcodes/',
122 );
123
124 $codes['wpvideo (VideoPress)'] = 'http://en.support.wordpress.com/videopress/';
125
126 $available = '';
127 foreach ( $codes as $code => $url ) {
128 $available[] = '<a href="' . $url . '" target="_blank">[' . $code . ']</a>';
129
130 }
131 ?>
132 <p><?php echo wp_sprintf( esc_html__( 'Available shortcodes are: %l.', 'jetpack' ), $available ); ?></p>
133 <?php
134 }
135 add_action( 'jetpack_module_more_info_connected_shortcodes', 'jetpack_shortcodes_more_info_connected' );
136
137 function jetpack_shortcodes_load_more_link( $description ) {
138 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/shortcodes/">' . esc_html__( 'Learn More' , 'jetpack' ) . '</a>';
139 }
140 add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' );
141
142
143 // Shortlinks
144 function wpme_more_info() { ?>
145 <div class="jp-info-img">
146 <a href="http://wp.me/sf2B5-shorten">
147 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/shortlinks.png' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" />
148 </a>
149 </div>
150
151 <h4><?php esc_html_e( 'WP.me Shortlinks' , 'jetpack' ); ?></h4>
152 <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>
153 <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>
154 <?php
155 }
156 add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );
157
158 function wpme_more_info_connected() { ?>
159 <div class="jp-info-img">
160 <a href="http://wp.me/sf2B5-shorten">
161 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/shortlinks.png' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" />
162 </a>
163 </div>
164
165 <h4><?php esc_html_e( 'WP.me Shortlinks' , 'jetpack' ); ?></h4>
166 <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>
167 <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>
168 <?php
169 }
170 add_action( 'jetpack_module_more_info_connected_shortlinks', 'wpme_more_info_connected' );
171
172 function wpme_load_more_link( $description ) {
173 echo '<a class="button-secondary more-info-link" href="http://wp.me/sf2B5-shorten">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
174 }
175 add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );
176
177
178 // WordPress.com Stats
179 function stats_more_info() { ?>
180 <div class="jp-info-img">
181 <a href="http://en.support.wordpress.com/stats/">
182 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/stats.png' ) ?>" alt="<?php esc_attr_e( 'WordPress.com Stats', 'jetpack' ) ?>" width="300" height="150" />
183 </a>
184 </div>
185
186 <h4><?php esc_html_e( 'WordPress.com Stats' , 'jetpack' ); ?></h4>
187 <p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. WordPress.com Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p>
188 <?php
189 }
190 add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );
191
192 function stats_more_info_connected() { ?>
193 <div class="jp-info-img">
194 <a href="http://en.support.wordpress.com/stats/">
195 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/stats.png' ) ?>" alt="<?php esc_attr_e( 'WordPress.com Stats', 'jetpack' ) ?>" width="300" height="150" />
196 </a>
197 </div>
198
199 <h4><?php esc_html_e( 'WordPress.com Stats' , 'jetpack' ); ?></h4>
200 <p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. WordPress.com Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p>
201 <p><?php printf( __( 'You can <a href="%s">view your stats dashboard here</a>.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?></p>
202 <?php
203 }
204 add_action( 'jetpack_module_more_info_connected_stats', 'stats_more_info_connected' );
205
206 function stats_load_more_link( $description ) {
207 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/stats/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
208 }
209 add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );
210
211 // Publicize
212 function publicize_more_info() { ?>
213 <div class="jp-info-img">
214 <a href="http://en.support.wordpress.com/publicize/">
215 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/publicize.png' ) ?>" alt="<?php esc_attr_e( 'Publicize', 'jetpack' ) ?>" width="328" height="123" />
216 </a>
217 </div>
218
219 <h4><?php esc_html_e( 'Publicize' , 'jetpack' ); ?></h4>
220 <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>
221 <p><?php esc_html_e( 'Publicize allows you to share your posts on Facebook, Twitter, Tumblr, Yahoo!, and Linkedin.', 'jetpack' ); ?></p>
222
223 <?php if ( 'jetpack_module_more_info_connected_publicize' == current_filter() ) : ?>
224
225 <p><?php printf( __( 'Manage your <a href="%s">Publicize settings</a>.', 'jetpack' ), menu_page_url( 'sharing', false ) ); ?>
226
227 <?php endif; ?>
228
229 <p>&rarr; <a href="http://jetpack.me/support/publicize/"><?php esc_html_e( 'More information on using Publicize.', 'jetpack' ); ?></a></p>
230 <?php
231 }
232
233 add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' );
234 add_action( 'jetpack_module_more_info_connected_publicize', 'publicize_more_info' );
235
236 function publicize_load_more_link( $description ) {
237 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/publicize/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
238 }
239 add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' );
240
241 // Notifications
242 function notes_more_info() { ?>
243 <div class="jp-info-img">
244 <a href="http://support.wordpress.com/notifications/">
245 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/notes.png' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" />
246 </a>
247 </div>
248
249 <h4><?php esc_html_e( 'Notifications' , 'jetpack' ); ?></h4>
250 <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>
251 <?php
252 }
253 add_action( 'jetpack_module_more_info_notes', 'notes_more_info' );
254
255 function notes_more_info_connected() { ?>
256 <div class="jp-info-img">
257 <a href="http://support.wordpress.com/notifications/">
258 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/notes.png' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" />
259 </a>
260 </div>
261
262 <h4><?php esc_html_e( 'Notifications' , 'jetpack' ); ?></h4>
263 <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>
264 <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>
265 <?php
266 }
267 add_filter( 'jetpack_module_more_info_connected_notes', 'notes_more_info_connected' );
268
269 function notes_load_more_link( $description ) {
270 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/notifications/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
271 }
272 add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' );
273
274
275 // LaTeX
276 function latex_more_info() { ?>
277 <div class="jp-info-img">
278 <a href="http://support.wordpress.com/latex/">
279 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/beautifulmath.png' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" />
280 </a>
281 </div>
282
283 <h4><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: -27%" /> Makes Beautiful Math</h4>
284 <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>
285 <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>
286 <p><?php esc_html_e( 'Wow, that sounds nerdy.', 'jetpack' ) ?></p>
287 <?php
288 }
289 add_action( 'jetpack_module_more_info_latex', 'latex_more_info' );
290
291 function latex_more_info_connected() { ?>
292 <div class="jp-info-img">
293 <a href="http://support.wordpress.com/latex/">
294 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/beautifulmath.png' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" />
295 </a>
296 </div>
297
298 <h4><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: -27%;" /> Makes Beautiful Math</h4>
299 <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>
300 <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>
301 <?php
302 }
303 add_action( 'jetpack_module_more_info_connected_latex', 'latex_more_info_connected' );
304
305 function latex_load_more_link( $description ) {
306 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/latex/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
307 }
308 add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' );
309
310
311 // Sharedaddy
312 function sharedaddy_more_info() { ?>
313 <div class="jp-info-img">
314 <a href="http://en.support.wordpress.com/sharing/">
315 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/sharing.png' ) ?>" alt="<?php esc_attr_e( 'Sharing', 'jetpack' ) ?>" width="300" height="150" />
316 </a>
317 </div>
318 <h4><?php esc_html_e( 'Sharing' , 'jetpack' ); ?></h4>
319 <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>
320
321 <p><?php
322 if ( is_multisite() ) {
323 esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, StumbleUpon, PressThis, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
324 } else {
325 esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, StumbleUpon, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
326 }
327 ?></p>
328
329 <p><?php esc_html_e( 'Additionally you can define your own custom services.', 'jetpack' ); ?></p>
330 <?php
331 }
332 add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' );
333
334 function sharedaddy_more_info_connected() { ?>
335 <div class="jp-info-img">
336 <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>
337 </div>
338
339 <h4><?php esc_html_e( 'Sharing' , 'jetpack' ); ?></h4>
340 <?php
341 if ( class_exists( 'Sharing_Admin' ) ) {
342 ?>
343
344 <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>
345 <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' ); ?>
346
347 <?php
348 }
349 ?>
350
351 <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>
352 <?php
353 }
354 add_action( 'jetpack_module_more_info_connected_sharedaddy', 'sharedaddy_more_info_connected' );
355
356 function sharedaddy_load_more_link( $description ) {
357 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/sharing/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
358 }
359 add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' );
360
361
362 // After The Deadline
363 function jpatd_more_info() { ?>
364 <div class="jp-info-img">
365 <a href="http://en.support.wordpress.com/proofreading/">
366 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/spelling.png' ) ?>" alt="<?php esc_attr_e( 'Spelling and Grammar', 'jetpack' ) ?>" width="300" height="150" />
367 </a>
368 </div>
369
370 <h4><?php esc_html_e( 'Spelling and Grammar' , 'jetpack' ); ?></h4>
371
372 <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>
373 <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>
374 <?php
375 }
376 add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' );
377
378 function jpatd_load_more_link( $description ) {
379 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/proofreading/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
380 }
381 add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' );
382
383
384 // RSS Links Widget, Image Widget, Twitter Widget
385 function jetpack_widgets_more_info() { ?>
386 <div class="jp-info-img">
387 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/widgets.png' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" />
388 </div>
389
390 <h4><?php esc_html_e( 'Extra Sidebar Widgets' , 'jetpack' ); ?></h4>
391
392 <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>
393 <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>
394
395 <?php
396 }
397 add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' );
398
399 function jetpack_widgets_more_info_connected() { ?>
400 <div class="jp-info-img">
401 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/widgets.png' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" />
402 </div>
403
404 <h4><?php esc_html_e( 'Extra Sidebar Widgets' , 'jetpack' ); ?></h4>
405
406 <p><strong><?php esc_html_e( 'The RSS Links Widget', 'jetpack' ); ?></strong> <?php esc_html_e( 'lets you easily add post and comment RSS feeds to a sidebar on your theme.', 'jetpack' ) ?></p>
407 <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.', 'jetpack' ) ?></p>
408 <p><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.', 'jetpack' ) ?></p>
409 <p><strong><?php esc_html_e( 'The Image Widget', 'jetpack' ); ?></strong> <?php esc_html_e( 'lets you easily add images to a sidebar on your theme.', 'jetpack' ) ?></p>
410
411 <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>
412 <?php
413 }
414 add_action( 'jetpack_module_more_info_connected_widgets', 'jetpack_widgets_more_info_connected' );
415
416 function jetpack_widgets_load_more_link( $description ) {
417 echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/widgets/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
418 }
419 add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' );
420
421 // Subscriptions
422 function jetpack_subscriptions_more_info() { ?>
423 <div class="jp-info-img">
424 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/subscriptions.png' ) ?>" alt="<?php esc_attr_e( 'Subsriptions Screenshot', 'jetpack' ) ?>" width="300" height="150" />
425 </div>
426
427 <h4><?php esc_html_e( 'Subscriptions' , 'jetpack' ); ?></h4>
428
429 <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>
430 <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>
431
432 <?php
433
434 if ( 'jetpack_module_more_info_connected_subscriptions' == current_filter() )
435 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' ) );
436 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' ) );
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 <h4><?php esc_html_e( 'Enhanced Distribution' , 'jetpack' ); ?></h4>
450
451 <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>
452
453 <?php
454 }
455
456 add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
457 add_action( 'jetpack_module_more_info_connected_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
458
459 function jetpack_enhanced_distribution_more_link() {
460 echo '<a class="button-secondary more-info-link" href="http://en.wordpress.com/firehose/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
461 }
462 add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' );
463
464 // JSON API
465 function jetpack_json_api_more_info() { ?>
466 <h4><?php esc_html_e( 'JSON API' , 'jetpack' ); ?></h4>
467
468 <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' ); ?>
469
470 <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>
471
472 <?php
473 }
474
475 add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' );
476 add_action( 'jetpack_module_more_info_connected_json-api', 'jetpack_json_api_more_info' );
477
478 function jetpack_json_api_more_link() {
479 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/json-api/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
480 }
481 add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' );
482
483 // Contact Form: START
484 function jetpack_contact_form_learn_more_button() {
485 echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/contact-form/">' . __( 'Learn More', 'jetpack' ) . '</a>';
486 }
487
488 function jetpack_contact_form_more_info() {
489 echo '<div class="jp-info-img">';
490 echo '<a href="http://support.wordpress.com/contact-form/">';
491 echo '<img class="jp-info-img" src="' . plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/contactform.png' ) . '" alt="' . esc_attr__( 'Contact Form', 'jetpack' ) . '" width="300" height="150" />';
492 echo '</a>';
493 echo '</div>';
494
495 echo '<h4>' . esc_html__( 'Contact Form', 'jetpack' ) . '</h4>';
496
497 echo '<p>';
498 _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' );
499 echo '</p>';
500
501 echo '<p>'; _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' );
502 echo '</p>';
503 }
504
505 add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' );
506 add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' );
507 add_action( 'jetpack_module_more_info_connected_contact-form', 'jetpack_contact_form_more_info' );
508 // Contact Form: STOP
509
510 // Jetpack Comments: START
511 function jetpack_comments_learn_more_button() {
512 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
513 }
514
515 function jetpack_comments_more_info() {
516 ?>
517 <div class="jp-info-img">
518 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/comments.png' ) ?>" alt="<?php esc_attr_e( 'Jetpack Comments Screenshot', 'jetpack' ) ?>" width="300" height="150" />
519 </div>
520
521 <h4><?php esc_html_e( 'Jetpack Comments', 'jetpack' ); ?></h4>
522
523 <p><?php esc_html_e( 'Jetpack Comments enables your visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on your site.', 'jetpack' ); ?></p>
524
525 <?php if ( 'jetpack_module_more_info_connected_comments' == current_filter() ) : ?>
526
527 <p><?php printf(
528 __( "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' ),
529 admin_url( 'options-discussion.php#jetpack-comments-settings' )
530 ); ?></p>
531
532 <?php endif; ?>
533 <?php
534 }
535
536 add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' );
537 add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' );
538 add_action( 'jetpack_module_more_info_connected_comments', 'jetpack_comments_more_info' );
539 // Jetpack Comments: STOP
540
541 // Gallery Carousel: START
542 function jetpack_carousel_learn_more_button() {
543 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
544 }
545
546 function jetpack_carousel_more_info() {
547 ?>
548 <div class="jp-info-img">
549 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/carousel.png' ) ?>" alt="<?php esc_attr_e( 'Gallery Carousel Screenshot', 'jetpack' ) ?>" width="300" height="188" />
550 </div>
551
552 <h4><?php esc_html_e( 'Carousel', 'jetpack' ); ?></h4>
553
554 <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>
555 <?php
556 }
557
558 add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' );
559 add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' );
560 add_action( 'jetpack_module_more_info_connected_carousel', 'jetpack_carousel_more_info' );
561 // Gallery Carousel: STOP
562
563 // Custom CSS: START
564 function jetpack_custom_css_more_info() {
565 ?>
566 <div class="jp-info-img">
567 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/custom-css.png' ) ?>" alt="<?php esc_attr_e( 'Custom CSS', 'jetpack' ) ?>" width="300" height="150" />
568 </div>
569
570 <h4><?php esc_html_e( 'Custom CSS', 'jetpack' ); ?></h4>
571 <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>
572 <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>
573
574 <?php
575 }
576
577 function jetpack_custom_css_more_button() {
578 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
579 }
580
581 add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );
582 add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );
583 // Custom CSS: STOP
584
585 // Minileven: START
586 function jetpack_minileven_more_info() {
587 ?>
588 <div class="jp-info-img">
589 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/mobile-theme.png' ) ?>" alt="<?php esc_attr_e( 'Mobile Theme', 'jetpack' ) ?>" width="300" height="150" />
590 </div>
591
592 <h4><?php esc_html_e( 'Mobile Theme', 'jetpack' ); ?></h4>
593 <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>
594 <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>
595 <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>
596 <?php
597 }
598
599 function jetpack_minileven_more_button() {
600 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
601 }
602
603 add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' );
604 add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' );
605 // Minileven: STOP
606
607
608 // Mobile Push Notifications: START
609 function jetpack_mobile_push_notifications_more_info() { ?>
610 <div class="jp-info-img">
611 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/mobile-push-notifications.jpg' ) ?>" alt="<?php esc_attr_e( 'Mobile Push Notifications', 'jetpack' ) ?>" width="300" height="150" />
612 </div>
613
614 <h4><?php esc_html_e( 'Mobile Push Notifications' , 'jetpack' ); ?></h4>
615
616 <p><?php echo sprintf( __( 'If you use <a href="%1$s">WordPress for iOS</a> or <a href="%2$s">WordPress for Android</a>, you’ll now be able to opt in to receive push notifications of new comments, which makes it easier than ever to keep up with your readers and moderate comments on the go.', 'jetpack' ), 'http://ios.wordpress.org/', 'http://android.wordpress.org/' ); ?></p>
617
618 <?php
619 }
620
621 function jetpack_mobile_push_notifications_more_link() {
622 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
623 }
624
625 add_action( 'jetpack_learn_more_button_mobile-push', 'jetpack_mobile_push_notifications_more_link' );
626 add_action( 'jetpack_module_more_info_mobile-push', 'jetpack_mobile_push_notifications_more_info' );
627 // Mobile Push Notifications: STOP
628
629 // Infinite Scroll: START
630 /**
631 *
632 */
633 function jetpack_infinite_scroll_more_info() {
634 $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/' );
635
636 ?>
637 <h4><?php esc_html_e( 'Infinite Scroll', 'jetpack' ); ?></h4>
638
639 <?php if ( ! Jetpack::is_active() || ( Jetpack::is_active() && current_theme_supports( 'infinite-scroll' ) ) ) : ?>
640 <p><?php esc_html_e( 'When you write great content, all you really want is people to find it, right?', 'jetpack' ); ?></p>
641
642 <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>
643
644 <?php else : ?>
645 <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>
646
647 <p><?php esc_html_e( "Until your theme supports Infinite Scroll, you won't be able to activate this module.", 'jetpack' ); ?></p>
648
649 <?php
650
651 if ( current_user_can( 'update_themes' ) ) :
652 ob_start();
653 theme_update_available( function_exists( 'wp_get_theme' ) ? wp_get_theme() : (object) get_theme( get_current_theme() ) );
654 $theme_update_available = ob_get_clean();
655
656 if ( ! empty( $theme_update_available ) ) : ?>
657 <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>
658 <?php else : ?>
659 <p><?php echo $support_text; ?></p>
660 <?php endif; ?>
661 <?php else : ?>
662 <p><?php echo $support_text; ?></p>
663 <?php endif; ?>
664 <?php endif;
665 }
666 add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' );
667
668 /**
669 *
670 */
671 function jetpack_infinite_scroll_more_button() {
672 echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
673 }
674 add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' );
675 // Infinite Scroll: STOP
676
677
678 // Post by Email: START
679 function jetpack_post_by_email_more_info() { ?>
680 <div class="jp-info-img">
681 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/post-by-email.png' ) ?>" alt="<?php esc_attr_e( 'Post by Email', 'jetpack' ) ?>" width="300" height="115" />
682 </div>
683
684 <h4><?php esc_html_e( 'Post by Email' , 'jetpack' ); ?></h4>
685
686 <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>
687
688 <?php if ( 'jetpack_module_more_info_connected_post-by-email' == current_filter() ) : ?>
689
690 <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' ) ); ?>
691
692 <?php endif; ?>
693
694 <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>
695
696 <?php
697 }
698
699 function jetpack_post_by_email_more_link() {
700 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/post-by-email/">' . __( 'Learn More', 'jetpack' ) . '</a>';
701 }
702
703 add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );
704 add_action( 'jetpack_module_more_info_connected_post-by-email', 'jetpack_post_by_email_more_info' );
705 add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );
706 // Post by Email: STOP
707
708
709 // Photon: START
710 /**
711 *
712 */
713 function jetpack_photon_more_info() { ?>
714 <h4><?php esc_html_e( 'Photon' , 'jetpack' ); ?></h4>
715
716 <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>
717 <?php
718 }
719 add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' );
720
721 /**
722 * Display "Learn More" button for Photon module
723 * @uses __
724 * @action jetpack_learn_more_button_photon
725 * @return string
726 */
727 function jetpack_photon_more_link() {
728 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
729 }
730 add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' );
731 // Photon: STOP
732
733 // Tiled Galleries: START
734 function jetpack_tiled_gallery_more_info() { ?>
735 <h4><?php esc_html_e( 'Tiled Galleries' , 'jetpack' ); ?></h4>
736
737 <div class="jp-info-img">
738 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/tiled-gallery.png' ) ?>" alt="<?php esc_attr_e( 'Tiled Galleries', 'jetpack' ) ?>" width="300" height="150" />
739 </div>
740
741 <p><?php esc_html_e( 'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphic editor.', 'jetpack' ); ?></p>
742 <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>
743 <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>
744 <?php
745 }
746 add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' );
747
748 function jetpack_tiled_gallery_more_link() {
749 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
750 }
751 add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' );
752 // Tiled Galleries: STOP
753
754 // Likes: START
755 function jetpack_likes_more_info() { ?>
756
757 <div class="jp-info-img">
758 <a href="http://jetpack.me/support/likes/">
759 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/likes.png' ) ?>" alt="<?php esc_attr_e( 'Likes', 'jetpack' ) ?>" width="323" height="69" />
760 </a>
761 </div>
762
763 <h4><?php esc_html_e( 'Likes' , 'jetpack' ); ?></h4>
764
765 <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>
766 <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>
767
768 <p>&rarr; <a href="http://jetpack.me/support/likes/"><?php esc_html_e( 'More information on using Likes.', 'jetpack' ); ?></a></p>
769
770 <?php
771 }
772 add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' );
773
774 function jetpack_likes_more_link() {
775 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
776 }
777 add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' );
778 // Likes: STOP
779
780 // Google+ Profile: START
781 function jetpack_gplus_authorship_more_info() { ?>
782
783 <div class="jp-info-img">
784 <a href="http://jetpack.me/support/google-plus/">
785 <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/_inc/images/screenshots/google-plus.png' ) ?>" alt="<?php esc_attr_e( 'Google+ Profile', 'jetpack' ) ?>" width="350" height="33" />
786 </a>
787 </div>
788
789 <h4><?php esc_html_e( 'Google+ Profile' , 'jetpack' ); ?></h4>
790
791 <p><?php esc_html_e( 'The Google+ profile module allows you to connect your blog and Google+ accounts.', 'jetpack' ) ?></p>
792 <p><?php esc_html_e( 'Displayed below your posts will be a link back to your Google+ profile and a Google+ follow button. A link will also be added to your Google+ profile.', 'jetpack' ); ?></p>
793
794 <p>&rarr; <a href="http://jetpack.me/support/google-plus/"><?php esc_html_e( 'More information on using Google+ Profile.', 'jetpack' ); ?></a></p>
795
796 <?php
797 }
798 add_action( 'jetpack_module_more_info_gplus-authorship', 'jetpack_gplus_authorship_more_info' );
799
800 function jetpack_gplus_authorship_more_link() {
801 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
802 }
803 add_action( 'jetpack_learn_more_button_gplus-authorship', 'jetpack_gplus_authorship_more_link' );
804 // Google+ Profile: STOP
805
806 // Omnisearch: START
807 function jetpack_omnisearch_more_info() {
808 ?>
809
810 <h4><?php esc_html_e( 'Omnisearch' , 'jetpack' ); ?></h4>
811
812 <p><?php esc_html_e( 'Search once, get results from everything! Currently supports searching posts, pages, comments, media, and plugins.', 'jetpack' ); ?></p>
813
814 <p><?php esc_html_e( 'Omnisearch plays nice with other plugins by letting other providers offer results as well.', 'jetpack' ); ?></p>
815
816 <?php if( class_exists( 'Jetpack_Omnisearch' ) && current_user_can( 'edit_posts' ) ): ?>
817 <?php echo Jetpack_Omnisearch::get_omnisearch_form(); ?>
818 <?php endif; ?>
819
820 <?php
821 }
822
823 function jetpack_omnisearch_more_link() {
824 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/omnisearch/">' . __( 'Learn More', 'jetpack' ) . '</a>';
825 }
826
827 add_action( 'jetpack_module_more_info_omnisearch', 'jetpack_omnisearch_more_info' );
828 add_action( 'jetpack_learn_more_button_omnisearch', 'jetpack_omnisearch_more_link' );
829 // Omnisearch: STOP
830
831 // Widget Visibility: START
832 function jetpack_widget_visibility_more_info() { ?>
833 <h4><?php esc_html_e( 'Widget Visibility', 'jetpack' ); ?></h4>
834
835 <p><?php esc_html_e( 'Control which pages your widgets appear on with Widget Visibility.', 'jetpack' ); ?></p>
836 <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>
837 <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>
838 <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>
839 <?php
840 }
841
842 function jetpack_widget_visibility_more_link() {
843 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/widget-visibility/">' . __( 'Learn More', 'jetpack' ) . '</a>';
844 }
845
846 add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' );
847 add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' );
848 // Widget Visibility: STOP
849
850 // VideoPress: START
851 function jetpack_videopress_more_info() {
852 ?>
853 <h4><?php esc_html_e( 'VideoPress', 'jetpack' ); ?></h4>
854 <p><?php _e( '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="http://store.wordpress.com/premium-upgrades/videopress/" target="_blank">VideoPress subscription</a>.', 'jetpack' ); ?></p>
855 <?php
856 }
857 add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' );
858
859 function jetpack_videopress_more_link() {
860 echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
861 }
862 add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' );
863 // VideoPress: STOP
864
865 // SSO: START
866 function jetpack_sso_more_info() { ?>
867 <h4><?php esc_html_e( 'Single Sign On' , 'jetpack' ); ?></h4>
868
869 <p><?php esc_html_e( 'With WordPress.com 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>
870 <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>
871
872 <?php
873 }
874
875 function jetpack_sso_more_link() {
876 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/sso/">' . __( 'Learn More', 'jetpack' ) . '</a>';
877 }
878
879 add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' );
880 add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' );
881 // SSO: STOP
882
883 // Monitor: START
884 function jetpack_monitor_more_info() { ?>
885 <h4><?php esc_html_e( 'Monitor' , 'jetpack' ); ?></h4>
886
887 <p><?php esc_html_e( 'Nobody likes downtime, and that\'s why Jetpack Monitor is on the job, keeping tabs on your site. 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' ); ?>
888
889 <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>
890
891 <?php
892 }
893 add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' );
894
895 function jetpack_monitor_more_link() {
896 echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/monitor/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
897 }
898 add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' );
899 // Monitor: STOP
900
901