/modules/module-info.php

  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. <div class="jp-info-img"> 
  20. <a href="<?php echo $vaultpress_url?>"> 
  21. <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" /> 
  22. </a> 
  23. </div> 
  24.  
  25. <?php if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) : ?> 
  26. <p><?php esc_html_e( 'Your WordPress installation is currently being protected with the world’s best security, backup, and support.', 'jetpack' ); ?></p> 
  27. <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> 
  28. <?php else : ?> 
  29. <p><?php esc_html_e( 'With a monthly subscription, the VaultPress plugin will backup your site’s content, themes, and plugins in real-time, as well as perform regular security scans for common threats and attacks.', 'jetpack' ); ?></p> 
  30. <p><?php printf( _x( 'View %s.', 'View _Plans_&_Pricing_. (VaultPress)', 'jetpack' ), '<a href="' . $vaultpress_url . '">' . esc_html__( 'Plans & Pricing', 'jetpack' ) . '</a>' ); ?></a></p> 
  31. <?php endif; 
  32. add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' ); 
  33. add_action( 'jetpack_module_more_info_connected_vaultpress', 'vaultpress_jetpack_more_info' ); 
  34.  
  35. function vaultpress_jetpack_load_more_link() { 
  36. if ( function_exists( 'is_multisite' ) && is_multisite() ) { 
  37. $vaultpress_url = 'http://vaultpress.com/jetpack-ms/'; 
  38. } else { 
  39. $vaultpress_url = 'http://vaultpress.com/jetpack/'; 
  40.  
  41. echo '<a class="button-secondary more-info-link" href="' . $vaultpress_url . '">' . __( "Learn More", 'jetpack' ) . '</a>'; 
  42. add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' ); 
  43.  
  44. // Gravatar Hovercards 
  45. function grofiles_more_info() { ?> 
  46. <div class="jp-info-img"> 
  47. <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/"> 
  48. <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" /> 
  49. </a> 
  50. </div> 
  51.  
  52. <h5><?php esc_html_e( "What’s a Hovercard?", 'jetpack' ) ?></h5> 
  53. <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> 
  54. <p><?php esc_html_e( 'Hovercards offer a great way to show your internet presence and help people find your own blog.', 'jetpack' ); ?></p> 
  55. <?php 
  56. add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' ); 
  57.  
  58. function grofiles_more_info_connected() { ?> 
  59. <div class="jp-info-img"> 
  60. <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/"> 
  61. <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" /> 
  62. </a> 
  63. </div> 
  64.  
  65. <h5><?php esc_html_e( "What’s a Hovercard?", 'jetpack' ) ?></h5> 
  66. <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> 
  67. <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> 
  68. <?php 
  69. add_action( 'jetpack_module_more_info_connected_gravatar-hovercards', 'grofiles_more_info_connected' ); 
  70.  
  71. function grofiles_load_more_link() { 
  72. 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>'; 
  73. add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' ); 
  74.  
  75.  
  76. // Shortcodes 
  77. function jetpack_shortcodes_more_info() { ?> 
  78. <div class="jp-info-img"> 
  79. <a href="http://en.support.wordpress.com/shortcodes/"> 
  80. <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" /> 
  81. </a> 
  82. </div> 
  83.  
  84. <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> 
  85. <?php 
  86. add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' ); 
  87.  
  88. function jetpack_shortcodes_more_info_connected() { ?> 
  89. <div class="jp-info-img"> 
  90. <a href="http://en.support.wordpress.com/shortcodes/"> 
  91. <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" /> 
  92. </a> 
  93. </div> 
  94.  
  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. <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> 
  97. <?php 
  98. $codes = array( 'archives' => 'http://support.wordpress.com/archives-shortcode/',  
  99. 'bandcamp' => 'http://en.support.wordpress.com/audio/bandcamp/',  
  100. 'blip.tv' => 'http://support.wordpress.com/videos/bliptv/',  
  101. 'dailymotion' => 'http://support.wordpress.com/videos/dailymotion/',  
  102. 'facebook' => 'http://en.support.wordpress.com/facebook-integration/facebook-embeds/',  
  103. 'flickr' => 'http://support.wordpress.com/videos/flickr-video/',  
  104. 'gist' => 'http://en.support.wordpress.com/gist/',  
  105. 'googlemaps' => 'http://support.wordpress.com/google-maps/',  
  106. 'jetpack_subscription_form' => 'http://jetpack.me/support/subscriptions/#display',  
  107. 'polldaddy' => 'http://support.polldaddy.com/wordpress-shortcodes/',  
  108. 'presentation' => 'http://en.support.wordpress.com/presentations/',  
  109. 'recipes' => 'http://en.support.wordpress.com/recipes/',  
  110. 'scribd' => 'http://support.wordpress.com/scribd/',  
  111. 'slideshare' => 'http://support.wordpress.com/slideshows/slideshare/',  
  112. 'slideshow' => 'http://en.support.wordpress.com/slideshows/',  
  113. 'soundcloud' => 'http://support.wordpress.com/audio/soundcloud-audio-player/',  
  114. 'ted' => 'http://en.support.wordpress.com/videos/ted-talks/',  
  115. 'twitter-timeline' => 'http://en.support.wordpress.com/widgets/twitter-timeline-widget/#embedding-with-a-shortcode',  
  116. // 'upcomingevents' => 'http://en.support.wordpress.com/widgets/upcoming-events/#events-list-shortcode',  
  117. 'vimeo' => 'http://support.wordpress.com/videos/vimeo/',  
  118. 'vine' => 'http://en.support.wordpress.com/videos/vine/',  
  119. 'youtube' => 'http://support.wordpress.com/videos/youtube/',  
  120. ); 
  121.  
  122. $codes['wpvideo (VideoPress)'] = 'http://en.support.wordpress.com/videopress/'; 
  123.  
  124. $available = ''; 
  125. foreach ( $codes as $code => $url ) { 
  126. $available[] = '<a href="' . $url . '" target="_blank">[' . $code . ']</a>'; 
  127.  
  128. ?> 
  129. <p><?php echo wp_sprintf( esc_html__( 'Available shortcodes are: %l.', 'jetpack' ), $available ); ?></p> 
  130. <?php 
  131. add_action( 'jetpack_module_more_info_connected_shortcodes', 'jetpack_shortcodes_more_info_connected' ); 
  132.  
  133. function jetpack_shortcodes_load_more_link( $description ) { 
  134. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/shortcodes/">' . esc_html__( 'Learn More' , 'jetpack' ) . '</a>'; 
  135. add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' ); 
  136.  
  137.  
  138. // Shortlinks 
  139. function wpme_more_info() { ?> 
  140. <div class="jp-info-img"> 
  141. <a href="http://wp.me/sf2B5-shorten"> 
  142. <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" /> 
  143. </a> 
  144. </div> 
  145.  
  146. <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> 
  147. <p><?php esc_html_e( "It’s perfect for use on Twitter, Facebook, and cell phone text messages where every character counts.", 'jetpack' ) ?></p> 
  148. <?php 
  149. add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' ); 
  150.  
  151. function wpme_more_info_connected() { ?> 
  152. <div class="jp-info-img"> 
  153. <a href="http://wp.me/sf2B5-shorten"> 
  154. <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" /> 
  155. </a> 
  156. </div> 
  157.  
  158. <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> 
  159. <p><?php esc_html_e( "To use shortlinks, go to any already published post (or publish something new!). A “Get Shortlink” 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> 
  160. <?php 
  161. add_action( 'jetpack_module_more_info_connected_shortlinks', 'wpme_more_info_connected' ); 
  162.  
  163. function wpme_load_more_link( $description ) { 
  164. echo '<a class="button-secondary more-info-link" href="http://wp.me/sf2B5-shorten">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  165. add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' ); 
  166.  
  167.  
  168. // Site Stats 
  169. function stats_more_info() { ?> 
  170. <div class="jp-info-img"> 
  171. <a href="http://en.support.wordpress.com/stats/"> 
  172. <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" /> 
  173. </a> 
  174. </div> 
  175.  
  176. <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> 
  177. <?php 
  178. add_action( 'jetpack_module_more_info_stats', 'stats_more_info' ); 
  179.  
  180. function stats_more_info_connected() { ?> 
  181. <div class="jp-info-img"> 
  182. <a href="http://en.support.wordpress.com/stats/"> 
  183. <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" /> 
  184. </a> 
  185. </div> 
  186.  
  187. <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> 
  188. <p><?php printf( __( 'You can <a href="%s">view your stats dashboard here</a>.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?></p> 
  189. <?php 
  190. add_action( 'jetpack_module_more_info_connected_stats', 'stats_more_info_connected' ); 
  191.  
  192. function stats_load_more_link( $description ) { 
  193. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/stats/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  194. add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' ); 
  195.  
  196.  
  197. // Publicize 
  198. function publicize_more_info() { ?> 
  199. <div class="jp-info-img"> 
  200. <a href="http://en.support.wordpress.com/publicize/"> 
  201. <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" /> 
  202. </a> 
  203. </div> 
  204.  
  205. <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> 
  206. <p><?php esc_html_e( 'Publicize allows you to share your posts on Facebook, Twitter, Tumblr, Yahoo!, and Linkedin.', 'jetpack' ); ?></p> 
  207.  
  208. <?php if ( 'jetpack_module_more_info_connected_publicize' == current_filter() ) : ?> 
  209.  
  210. <p><?php printf( __( 'Manage your <a href="%s">Publicize settings</a>.', 'jetpack' ), menu_page_url( 'sharing', false ) ); ?> 
  211.  
  212. <?php endif; ?> 
  213.  
  214. <p>→ <a href="http://jetpack.me/support/publicize/"><?php esc_html_e( 'More information on using Publicize.', 'jetpack' ); ?></a></p> 
  215. <?php 
  216.  
  217. add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' ); 
  218. add_action( 'jetpack_module_more_info_connected_publicize', 'publicize_more_info' ); 
  219.  
  220. function publicize_load_more_link( $description ) { 
  221. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/publicize/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  222. add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' ); 
  223.  
  224. // Notifications 
  225. function notes_more_info() { ?> 
  226. <div class="jp-info-img"> 
  227. <a href="http://support.wordpress.com/notifications/"> 
  228. <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" /> 
  229. </a> 
  230. </div> 
  231.  
  232. <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> 
  233. <?php 
  234. add_action( 'jetpack_module_more_info_notes', 'notes_more_info' ); 
  235.  
  236. function notes_more_info_connected() { ?> 
  237. <div class="jp-info-img"> 
  238. <a href="http://support.wordpress.com/notifications/"> 
  239. <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" /> 
  240. </a> 
  241. </div> 
  242.  
  243. <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> 
  244. <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> 
  245. <?php 
  246. add_filter( 'jetpack_module_more_info_connected_notes', 'notes_more_info_connected' ); 
  247.  
  248. function notes_load_more_link( $description ) { 
  249. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/notifications/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  250. add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' ); 
  251.  
  252.  
  253. // LaTeX 
  254. function latex_more_info() { ?> 
  255. <div class="jp-info-img"> 
  256. <a href="http://support.wordpress.com/latex/"> 
  257. <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" /> 
  258. </a> 
  259. </div> 
  260.  
  261. <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&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' ); ?></p> 
  262. <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&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" />' ); ?></p> 
  263. <p><?php esc_html_e( 'Wow, that sounds nerdy.', 'jetpack' ) ?></p> 
  264. <?php 
  265. add_action( 'jetpack_module_more_info_latex', 'latex_more_info' ); 
  266.  
  267. function latex_more_info_connected() { ?> 
  268. <div class="jp-info-img"> 
  269. <a href="http://support.wordpress.com/latex/"> 
  270. <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" /> 
  271. </a> 
  272. </div> 
  273.  
  274. <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&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' ); ?></p> 
  275. <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&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" />', 'http://support.wordpress.com/latex/' ); ?></p> 
  276. <?php 
  277. add_action( 'jetpack_module_more_info_connected_latex', 'latex_more_info_connected' ); 
  278.  
  279. function latex_load_more_link( $description ) { 
  280. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/latex/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  281. add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' ); 
  282.  
  283.  
  284. // Sharedaddy 
  285. function sharedaddy_more_info() { ?> 
  286. <div class="jp-info-img"> 
  287. <a href="http://en.support.wordpress.com/sharing/"> 
  288. <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" /> 
  289. </a> 
  290. </div> 
  291. <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> 
  292.  
  293. <p><?php 
  294. if ( is_multisite() ) { 
  295. esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, PressThis, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' ); 
  296. } else { 
  297. esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' ); 
  298. ?></p> 
  299.  
  300. <p><?php esc_html_e( 'Additionally you can define your own custom services.', 'jetpack' ); ?></p> 
  301. <?php 
  302. add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' ); 
  303.  
  304. function sharedaddy_more_info_connected() { ?> 
  305. <div class="jp-info-img"> 
  306. <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> 
  307. </div> 
  308.  
  309. <?php 
  310. if ( class_exists( 'Sharing_Admin' ) ) { 
  311. ?> 
  312.  
  313. <p><?php printf( __( 'To configure your sharing settings, go to the Settings → <a href="%s">Sharing</a> menu.', 'jetpack' ), 'options-general.php?page=sharing' ); ?></p> 
  314. <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' ); ?> 
  315.  
  316. <?php 
  317. ?> 
  318.  
  319. <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> 
  320. <?php 
  321. add_action( 'jetpack_module_more_info_connected_sharedaddy', 'sharedaddy_more_info_connected' ); 
  322.  
  323. function sharedaddy_load_more_link( $description ) { 
  324. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/sharing/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  325. add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' ); 
  326.  
  327.  
  328. // After The Deadline 
  329. function jpatd_more_info() { ?> 
  330. <div class="jp-info-img"> 
  331. <a href="http://en.support.wordpress.com/proofreading/"> 
  332. <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" /> 
  333. </a> 
  334. </div> 
  335.  
  336. <p><?php printf( __( "The <a href='%s'>After the 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> 
  337. <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> 
  338. <?php 
  339. add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' ); 
  340.  
  341. function jpatd_load_more_link( $description ) { 
  342. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/proofreading/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  343. add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' ); 
  344.  
  345.  
  346. // RSS Links Widget, Image Widget, Twitter Widget 
  347. function jetpack_widgets_more_info() { ?> 
  348. <div class="jp-info-img"> 
  349. <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" /> 
  350. </div> 
  351.  
  352. <p><strong><?php esc_html_e( 'The RSS Links Widget ', 'jetpack' ); ?></strong> <?php esc_html_e( "allows you to add links to your blog’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> 
  353. <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’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’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’s an easy way to add more visual interest to your site.", 'jetpack' ) ?></p> 
  354.  
  355. <?php 
  356. add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' ); 
  357.  
  358. function jetpack_widgets_more_info_connected() { ?> 
  359. <div class="jp-info-img"> 
  360. <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" /> 
  361. </div> 
  362.  
  363. <p><?php printf( __( '<strong>The Twitter Widget</strong> shows your latest tweets within a sidebar on your theme.', 'jetpack' ) ); ?></p> 
  364. <p><?php printf( __( '<strong>The Facebook Like Box Widget</strong> shows your Facebook Like Box within a sidebar on your theme.', 'jetpack' ) ); ?></p> 
  365. <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> 
  366. <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> 
  367. <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> 
  368. <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> 
  369. <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> 
  370. <!--<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>--> 
  371.  
  372. <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 → <a href="%s">Widgets</a>. Drag them into one of your sidebars and configure away.', 'jetpack' ), admin_url( 'widgets.php' ) ); ?></p> 
  373. <?php 
  374. add_action( 'jetpack_module_more_info_connected_widgets', 'jetpack_widgets_more_info_connected' ); 
  375.  
  376. function jetpack_widgets_load_more_link( $description ) { 
  377. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/widgets/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  378. add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' ); 
  379.  
  380. // Subscriptions 
  381. function jetpack_subscriptions_more_info() { ?> 
  382. <div class="jp-info-img"> 
  383. <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" /> 
  384. </div> 
  385.  
  386. <p><?php esc_html_e( 'Easily allow any visitor to subscribe to all of your posts via email through a widget in your blog’s sidebar. Every time you publish a post, WordPress.com will send a notification to all your subscribers.', 'jetpack' ); ?></p> 
  387. <p><?php esc_html_e( 'When leaving comments, your visitors can also subscribe to a post’s comments to keep up with the conversation.', 'jetpack' ); ?></p> 
  388.  
  389. <?php 
  390.  
  391. if ( 'jetpack_module_more_info_connected_subscriptions' == current_filter() ) 
  392. printf( '<p>' . __( 'To use the Subscriptions widget, go to Appearance → <a href="%s">Widgets</a>. Drag the widget labeled “Blog Subscriptions (Jetpack)” into one of your sidebars and configure away.', 'jetpack' ) . '</p>', admin_url( 'widgets.php' ) ); 
  393. 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' ) ); 
  394. 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' ) ); 
  395. add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' ); 
  396. add_action( 'jetpack_module_more_info_connected_subscriptions', 'jetpack_subscriptions_more_info' ); 
  397.  
  398. function jetpack_subscriptions_load_more_link() { 
  399. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/following/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  400. add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' ); 
  401.  
  402. // Enhanced Distribution 
  403.  
  404. function jetpack_enhanced_distribution_more_info() { ?> 
  405. <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> 
  406.  
  407. <?php 
  408.  
  409. add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' ); 
  410. add_action( 'jetpack_module_more_info_connected_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' ); 
  411.  
  412. function jetpack_enhanced_distribution_more_link() { 
  413. echo '<a class="button-secondary more-info-link" href="http://en.wordpress.com/firehose/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  414. add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); 
  415.  
  416. // Protect 
  417. function jetpack_protect_more_info() { ?> 
  418. <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. 
  419.  
  420. 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. 
  421.  
  422. Protect is derived from BruteProtect, and will disable BruteProtect on your site if it is currently enabled.', 'jetpack' ); ?></p><?php 
  423.  
  424. add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' ); 
  425. add_action( 'jetpack_module_more_info_connected_protect', 'jetpack_protect_more_info' ); 
  426.  
  427. function jetpack_protect_more_link() { 
  428. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/protect/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  429. add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' ); 
  430.  
  431.  
  432. // JSON API 
  433. function jetpack_json_api_more_info() { ?> 
  434. <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' ); ?> 
  435.  
  436. <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> 
  437.  
  438. <?php 
  439.  
  440. add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' ); 
  441. add_action( 'jetpack_module_more_info_connected_json-api', 'jetpack_json_api_more_info' ); 
  442.  
  443. function jetpack_json_api_more_link() { 
  444. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/json-api/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  445. add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' ); 
  446.  
  447. // Contact Form: START 
  448. function jetpack_contact_form_learn_more_button() { 
  449. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/contact-form/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  450.  
  451. function jetpack_contact_form_more_info() { 
  452. echo '<div class="jp-info-img">'; 
  453. echo '<a href="http://support.wordpress.com/contact-form/">'; 
  454. 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" />'; 
  455. echo '</a>'; 
  456. echo '</div>'; 
  457.  
  458. echo '<p>'; 
  459. _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' ); 
  460. echo '</p>'; 
  461.  
  462. echo '<p>'; 
  463. _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' ); 
  464. echo '</p>'; 
  465.  
  466. add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' ); 
  467. add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' ); 
  468. add_action( 'jetpack_module_more_info_connected_contact-form', 'jetpack_contact_form_more_info' ); 
  469. // Contact Form: STOP 
  470.  
  471. // Comments: START 
  472. function jetpack_comments_learn_more_button() { 
  473. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  474.  
  475. function jetpack_comments_more_info() { 
  476. ?> 
  477. <div class="jp-info-img"> 
  478. <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" /> 
  479. </div> 
  480.  
  481. <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> 
  482.  
  483. <?php if ( 'jetpack_module_more_info_connected_comments' == current_filter() ) : ?> 
  484.  
  485. <p><?php printf( 
  486. __( "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' ),  
  487. admin_url( 'options-discussion.php#jetpack-comments-settings' ) 
  488. ); ?></p> 
  489.  
  490. <?php endif; ?> 
  491. <?php 
  492.  
  493. add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' ); 
  494. add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' ); 
  495. add_action( 'jetpack_module_more_info_connected_comments', 'jetpack_comments_more_info' ); 
  496. // Comments: STOP 
  497.  
  498. // Gallery Carousel: START 
  499. function jetpack_carousel_learn_more_button() { 
  500. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  501.  
  502. function jetpack_carousel_more_info() { 
  503. ?> 
  504. <div class="jp-info-img"> 
  505. <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" /> 
  506. </div> 
  507.  
  508. <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> 
  509. <?php 
  510.  
  511. add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' ); 
  512. add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' ); 
  513. add_action( 'jetpack_module_more_info_connected_carousel', 'jetpack_carousel_more_info' ); 
  514. // Gallery Carousel: STOP 
  515.  
  516. // Custom CSS: START 
  517. function jetpack_custom_css_more_info() { 
  518. ?> 
  519. <div class="jp-info-img"> 
  520. <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" /> 
  521. </div> 
  522.  
  523. <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> 
  524. <p><?php printf( __( 'To use the CSS editor, go to Appearance → <a href="%s">Edit CSS</a>.', 'jetpack' ), admin_url( 'themes.php?page=editcss' ) ); ?></p> 
  525.  
  526. <?php 
  527.  
  528. function jetpack_custom_css_more_button() { 
  529. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  530.  
  531. add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); 
  532. add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' ); 
  533. // Custom CSS: STOP 
  534.  
  535. // Minileven: START 
  536. function jetpack_minileven_more_info() { 
  537. ?> 
  538. <div class="jp-info-img"> 
  539. <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" /> 
  540. </div> 
  541.  
  542. <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> 
  543. <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> 
  544. <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> 
  545. <?php 
  546.  
  547. function jetpack_minileven_more_button() { 
  548. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  549.  
  550. add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' ); 
  551. add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' ); 
  552. // Minileven: STOP 
  553.  
  554. // Infinite Scroll: START 
  555. /** 
  556. * 
  557. */ 
  558. function jetpack_infinite_scroll_more_info() { 
  559. $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/' ); 
  560.  
  561. ?> 
  562.  
  563. <?php if ( ! Jetpack::is_active() || ( Jetpack::is_active() && current_theme_supports( 'infinite-scroll' ) ) ) : ?> 
  564. <p><?php esc_html_e( 'When you write great content, all you really want is people to find it, right?', 'jetpack' ); ?></p> 
  565.  
  566. <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—the document model of the web—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> 
  567.  
  568. <?php else : ?> 
  569. <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> 
  570.  
  571. <p><?php esc_html_e( "Until your theme supports Infinite Scroll, you won't be able to activate this module.", 'jetpack' ); ?></p> 
  572.  
  573. <?php 
  574.  
  575. if ( current_user_can( 'update_themes' ) ) : 
  576. ob_start(); 
  577. theme_update_available( function_exists( 'wp_get_theme' ) ? wp_get_theme() : (object) get_theme( get_current_theme() ) ); 
  578. $theme_update_available = ob_get_clean(); 
  579.  
  580. if ( ! empty( $theme_update_available ) ) : ?> 
  581. <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> 
  582. <?php else : ?> 
  583. <p><?php echo $support_text; ?></p> 
  584. <?php endif; ?> 
  585. <?php else : ?> 
  586. <p><?php echo $support_text; ?></p> 
  587. <?php endif; ?> 
  588. <?php endif; 
  589. add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' ); 
  590.  
  591. /** 
  592. * 
  593. */ 
  594. function jetpack_infinite_scroll_more_button() { 
  595. echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  596. add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' ); 
  597. // Infinite Scroll: STOP 
  598.  
  599.  
  600. // Post by Email: START 
  601. function jetpack_post_by_email_more_info() { ?> 
  602. <div class="jp-info-img"> 
  603. <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" /> 
  604. </div> 
  605.  
  606. <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> 
  607.  
  608. <?php if ( 'jetpack_module_more_info_connected_post-by-email' == current_filter() ) : ?> 
  609.  
  610. <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' ) ); ?> 
  611.  
  612. <?php endif; ?> 
  613.  
  614. <p>→ <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> 
  615.  
  616. <?php 
  617.  
  618. function jetpack_post_by_email_more_link() { 
  619. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/post-by-email/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  620.  
  621. add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' ); 
  622. add_action( 'jetpack_module_more_info_connected_post-by-email', 'jetpack_post_by_email_more_info' ); 
  623. add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' ); 
  624. // Post by Email: STOP 
  625.  
  626.  
  627. // Photon: START 
  628. /** 
  629. * 
  630. */ 
  631. function jetpack_photon_more_info() { ?> 
  632. <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> 
  633. <?php 
  634. add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' ); 
  635.  
  636. /** 
  637. * Display "Learn More" button for Photon module 
  638. * @uses __ 
  639. * @action jetpack_learn_more_button_photon 
  640. * @return string 
  641. */ 
  642. function jetpack_photon_more_link() { 
  643. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  644. add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' ); 
  645. // Photon: STOP 
  646.  
  647. // Tiled Galleries: START 
  648. function jetpack_tiled_gallery_more_info() { ?> 
  649. <div class="jp-info-img"> 
  650. <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" /> 
  651. </div> 
  652.  
  653. <p><?php esc_html_e( 'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphic editor.', 'jetpack' ); ?></p> 
  654. <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 → Media</a> and check the box next to "Display all your gallery pictures in a cool mosaic."', 'jetpack' ), admin_url( 'options-media.php' ) ); ?></p> 
  655. <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> 
  656. <?php 
  657. add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' ); 
  658.  
  659. function jetpack_tiled_gallery_more_link() { 
  660. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  661. add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' ); 
  662. // Tiled Galleries: STOP 
  663.  
  664. // Likes: START 
  665. function jetpack_likes_more_info() { ?> 
  666.  
  667. <div class="jp-info-img"> 
  668. <a href="http://jetpack.me/support/likes/"> 
  669. <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" /> 
  670. </a> 
  671. </div> 
  672.  
  673. <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> 
  674. <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> 
  675. <?php if ( current_user_can( 'jetpack_manage_modules' ) ) : ?> 
  676. <p><?php esc_html_e( 'You can turn Likes on by following these steps:', 'jetpack' ); ?></p> 
  677. <ol> 
  678. <li><?php esc_html_e( 'Make sure the module is activated by clicking on "Activate" at the bottom of this page.', 'jetpack' ); ?></li> 
  679. <li><?php esc_html_e( 'Go to Settings > Sharing in your Dashboard.', 'jetpack' ); ?></li> 
  680. <li><?php esc_html_e( 'Ensure that "WordPress.com Likes are*" is set to "On for all posts"', 'jetpack' ); ?></li> 
  681. </ol> 
  682. <?php endif; ?> 
  683. <p>→ <a href="http://jetpack.me/support/likes/"><?php esc_html_e( 'More information on using Likes.', 'jetpack' ); ?></a></p> 
  684.  
  685. <?php 
  686. add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' ); 
  687.  
  688. function jetpack_likes_more_link() { 
  689. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  690. add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' ); 
  691. // Likes: STOP 
  692.  
  693. // Omnisearch: START 
  694. function jetpack_omnisearch_more_info() { 
  695. ?> 
  696.  
  697. <p><?php esc_html_e( 'Search once, get results from everything! Currently supports searching posts, pages, comments, media, and plugins.', 'jetpack' ); ?></p> 
  698.  
  699. <p><?php esc_html_e( 'Omnisearch plays nice with other plugins by letting other providers offer results as well.', 'jetpack' ); ?></p> 
  700.  
  701. <?php if( class_exists( 'Jetpack_Omnisearch' ) && current_user_can( 'edit_posts' ) ): ?> 
  702. <?php echo Jetpack_Omnisearch::get_omnisearch_form(); ?> 
  703. <?php endif; ?> 
  704.  
  705. <?php 
  706.  
  707. function jetpack_omnisearch_more_link() { 
  708. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/omnisearch/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  709.  
  710. add_action( 'jetpack_module_more_info_omnisearch', 'jetpack_omnisearch_more_info' ); 
  711. add_action( 'jetpack_learn_more_button_omnisearch', 'jetpack_omnisearch_more_link' ); 
  712. // Omnisearch: STOP 
  713.  
  714. // Widget Visibility: START 
  715. function jetpack_widget_visibility_more_info() { ?> 
  716. <p><?php esc_html_e( 'Control which pages your widgets appear on with Widget Visibility.', 'jetpack' ); ?></p> 
  717. <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> 
  718. <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> 
  719. <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> 
  720. <?php 
  721.  
  722. function jetpack_widget_visibility_more_link() { 
  723. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/widget-visibility/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  724.  
  725. add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' ); 
  726. add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' ); 
  727. // Widget Visibility: STOP 
  728.  
  729. // VideoPress: START 
  730. function jetpack_videopress_more_info() { 
  731. ?> 
  732. <p><?php printf( 
  733. __( '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' ),  
  734. 'http://store.wordpress.com/premium-upgrades/videopress/',  
  735. Jetpack::admin_url( 'page=jetpack&configure=videopress' ) 
  736. ); ?></p> 
  737. <?php 
  738. add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' ); 
  739.  
  740. function jetpack_videopress_more_link() { 
  741. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  742. add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' ); 
  743. // VideoPress: STOP 
  744.  
  745. // SSO: START 
  746. function jetpack_sso_more_info() { ?> 
  747.  
  748. <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> 
  749. <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> 
  750.  
  751. <?php 
  752.  
  753. function jetpack_sso_more_link() { 
  754. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/sso/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  755.  
  756. add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' ); 
  757. add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' ); 
  758. // SSO: STOP 
  759.  
  760. // Monitor: START 
  761. function jetpack_monitor_more_info() { ?> 
  762.  
  763. <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' ); ?> 
  764.  
  765. <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> 
  766.  
  767. <?php 
  768. add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' ); 
  769.  
  770. function jetpack_monitor_more_link() { 
  771. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/monitor/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  772. add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' ); 
  773. // Monitor: STOP 
  774.  
  775. // Related Posts: START 
  776. function jetpack_related_posts_more_info() { 
  777. $template = <<<EOT 
  778. <div class="jp-info-img"> 
  779. <a href="http://jetpack.me/support/related-posts/"> 
  780. <img class="jp-info-img" src="%s" alt="%s" width="300" height="98" /> 
  781. </a> 
  782. </div> 
  783.  
  784. <p>%s</p> 
  785. <p>→ <a href="http://jetpack.me/support/related-posts/">%s</a></p> 
  786. EOT; 
  787. printf( 
  788. $template,  
  789. plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/related-posts.png' ),  
  790. esc_attr__( 'Related Posts', 'jetpack' ),  
  791. 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' ),  
  792. esc_html__( 'More information on using Related Posts.', 'jetpack' ) 
  793. ); 
  794. add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' ); 
  795.  
  796. function jetpack_related_posts_more_info_connected() { 
  797. $template = <<<EOT 
  798. <div class="jp-info-img"> 
  799. <a href="http://jetpack.me/support/related-posts/"> 
  800. <img class="jp-info-img" src="%s" alt="%s" width="300" height="98" /> 
  801. </a> 
  802. </div> 
  803.  
  804. <p>%s</p> 
  805. <p>→ <a href="http://jetpack.me/support/related-posts/">%s</a></p> 
  806. <hr /> 
  807. <p><a href="%s#sync-related-posts">%s</a></p> 
  808. EOT; 
  809. printf( 
  810. $template,  
  811. plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/related-posts.png' ),  
  812. esc_attr__( 'Related Posts', 'jetpack' ),  
  813. 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' ),  
  814. esc_html__( 'More information on using Related Posts.', 'jetpack' ),  
  815. esc_url( Jetpack::admin_url( array( 'page' => 'jetpack-debugger' ) ) ),  
  816. 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' ) 
  817. ); 
  818. add_action( 'jetpack_module_more_info_connected_related-posts', 'jetpack_related_posts_more_info_connected' ); 
  819.  
  820. function jetpack_related_posts_more_button() { 
  821. echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  822. add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' ); 
  823. // Related Posts: STOP 
  824.  
  825. // Markdown: START 
  826. function jetpack_markdown_more_info() { ?> 
  827. <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> 
  828.  
  829. <?php 
  830. add_action( 'jetpack_module_more_info_markdown', 'jetpack_markdown_more_info' ); 
  831.  
  832. function jetpack_markdown_more_link() { 
  833. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/markdown/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>'; 
  834. add_action( 'jetpack_learn_more_button_markdown', 'jetpack_markdown_more_link' ); 
  835. // Markdown: STOP 
  836.  
  837. // Site Verification Tools: START 
  838. function jetpack_verification_tools_more_info() { ?> 
  839. <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> 
  840. <p><?php printf( __( "Verifying your site allows you to access advanced features on these other services (e.g. Webmaster tools, Google Search Console, 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> 
  841. <?php 
  842. add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' ); 
  843.  
  844. function jetpack_verification_tools_more_link() { 
  845. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/webmaster-tools/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  846. add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' ); 
  847. // Site Verification Tools: STOP 
  848.  
  849. // Custom Content Types: START 
  850. function jetpack_custom_content_types_more_info() { ?> 
  851.  
  852. <div class="jp-info-img"> 
  853. <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" /> 
  854. </div> 
  855.  
  856. <p><?php esc_html_e( 'Organize and display different types of content on your site, separate from posts and pages.', 'jetpack' ); ?></p> 
  857. <p><?php printf( __( 'To enable a custom content type, head over to <a href="%s">Settings → Writing → 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> 
  858. <p><?php 
  859. /** translators: all variables are URLs */ 
  860. printf( 
  861. __( 
  862. '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>.',  
  863. 'jetpack' 
  864. ),  
  865. get_site_url() . '/portfolio/',  
  866. get_site_url() . '/testimonial/',  
  867. 'http://jetpack.me/support/custom-content-types/' 
  868. ); 
  869. ?></p> 
  870. <?php 
  871. add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' ); 
  872.  
  873. function jetpack_custom_content_types_more_link() { 
  874. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/portfolios/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  875. add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' ); 
  876. // Custom Content Types: STOP 
  877.  
  878. // Site Icon: START 
  879. function jetpack_custom_site_icon() { ?> 
  880.  
  881.  
  882. <div class="jp-info-img"> 
  883. <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" /> 
  884. </div> 
  885.  
  886. <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> 
  887. <p><?php printf( __( 'To add a new icon to your site, head over to <a href="%s">Settings → General → Site Icon</a>, and upload an icon.', 'jetpack' ), admin_url( 'options-general.php#site-icon' ) ); ?></p> 
  888.  
  889. <?php 
  890. add_action( 'jetpack_module_more_info_site-icon', 'jetpack_custom_site_icon' ); 
  891.  
  892. function jetpack_site_icon_more_link() { 
  893. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/site-icon">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  894. add_action( 'jetpack_learn_more_button_site-icon', 'jetpack_site_icon_more_link' ); 
  895. // Site Icon: STOP 
  896.  
  897. // Manage: Start 
  898. function jetpack_custom_jetpack_manage() { ?> 
  899.  
  900.  
  901. <div class="jp-info-img"> 
  902. <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" /> 
  903. </div> 
  904.  
  905. <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> 
  906. <p><strong><?php _e( 'Plugins', 'jetpack' ); ?></strong><br /> 
  907. <?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> 
  908.  
  909. <p><strong><?php _e( 'Themes', 'jetpack' ); ?></strong><br /> 
  910. <?php printf( __( 'List your installed themes, search, and activate them from <a href="%s">wordpress.com/design</a>.', 'jetpack' ), 'https://wordpress.com/design' ); ?></p> 
  911.  
  912. <p><strong><?php _e( 'Menus', 'jetpack' ); ?></strong><br /> 
  913. <?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> 
  914.  
  915. <p><strong><?php _e( 'Posts and Pages', 'jetpack' ); ?></strong><br /> 
  916. <?php printf( __( 'Add a new post or page to any of your sites from a single interface.', 'jetpack' ) ); ?></p> 
  917.  
  918. <?php 
  919. add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' ); 
  920.  
  921. function jetpack_manage_more_link() { 
  922. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/site-management/">' . __( 'Learn More', 'jetpack' ) . '</a>'; 
  923. add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' ); 
  924. // Manage: STOP 
.