PageRenderTime 61ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/jetpack/modules/module-info.php

https://bitbucket.org/ssellek/saywhatnation.bitbucket
PHP | 731 lines | 539 code | 147 blank | 45 comment | 26 complexity | 739995a3fb3a23c513dad95b70774d3d MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1, GPL-2.0, GPL-3.0
  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. // VaultPress (stub)
  10. function vaultpress_jetpack_more_info() {
  11. if ( function_exists( 'is_multisite' ) && is_multisite() ) {
  12. $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
  13. } else {
  14. $vaultpress_url = 'http://vaultpress.com/jetpack/';
  15. }
  16. ?>
  17. <div class="jp-info-img">
  18. <a href="<?php echo $vaultpress_url?>">
  19. <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" />
  20. </a>
  21. </div>
  22. <h4><?php esc_html_e( 'VaultPress', 'jetpack' ) ?></h4>
  23. <?php if ( class_exists( 'VaultPress' ) || function_exists( 'vaultpress_contact_service' ) ) : ?>
  24. <p><?php esc_html_e( 'Your WordPress installation is currently being protected with the world&#8217;s best security, backup, and support.', 'jetpack' ); ?></p>
  25. <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>
  26. <?php else : ?>
  27. <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>
  28. <p><?php printf( _x( 'View %s.', 'View _Plans_&_Pricing_. (VaultPress)', 'jetpack' ), '<a href="' . $vaultpress_url . '">' . esc_html__( 'Plans & Pricing', 'jetpack' ) . '</a>' ); ?></a></p>
  29. <?php endif;
  30. }
  31. add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' );
  32. add_action( 'jetpack_module_more_info_connected_vaultpress', 'vaultpress_jetpack_more_info' );
  33. function vaultpress_jetpack_load_more_link() {
  34. if ( function_exists( 'is_multisite' ) && is_multisite() ) {
  35. $vaultpress_url = 'http://vaultpress.com/jetpack-ms/';
  36. } else {
  37. $vaultpress_url = 'http://vaultpress.com/jetpack/';
  38. }
  39. echo '<a class="button-secondary more-info-link" href="' . $vaultpress_url . '">' . __( "Learn More", 'jetpack' ) . '</a>';
  40. }
  41. add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' );
  42. // Gravatar Hovercards
  43. function grofiles_more_info() { ?>
  44. <div class="jp-info-img">
  45. <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">
  46. <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" />
  47. </a>
  48. </div>
  49. <h4><?php esc_html_e( 'Gravatar Hovercards', 'jetpack' ) ?></h4>
  50. <h5><?php esc_html_e( "What&#8217;s a Hovercard?", 'jetpack' ) ?></h5>
  51. <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>
  52. <p><?php esc_html_e( 'Hovercards offer a great way to show your internet presence and help people find your own blog.', 'jetpack' ); ?></p>
  53. <?php
  54. }
  55. add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' );
  56. function grofiles_more_info_connected() { ?>
  57. <div class="jp-info-img">
  58. <a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/">
  59. <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" />
  60. </a>
  61. </div>
  62. <h4><?php esc_html_e( 'Gravatar Hovercards', 'jetpack' ) ?></h4>
  63. <h5><?php esc_html_e( "What&#8217;s a Hovercard?", 'jetpack' ) ?></h5>
  64. <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>
  65. <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>
  66. <?php
  67. }
  68. add_action( 'jetpack_module_more_info_connected_gravatar-hovercards', 'grofiles_more_info_connected' );
  69. function grofiles_load_more_link() {
  70. 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>';
  71. }
  72. add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' );
  73. // Shortcodes
  74. function jetpack_shortcodes_more_info() { ?>
  75. <div class="jp-info-img">
  76. <a href="http://en.support.wordpress.com/shortcodes/">
  77. <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" />
  78. </a>
  79. </div>
  80. <h4><?php esc_html_e( 'Shortcode Embeds', 'jetpack' ) ?></h4>
  81. <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>
  82. <?php
  83. }
  84. add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' );
  85. function jetpack_shortcodes_more_info_connected() { ?>
  86. <div class="jp-info-img">
  87. <a href="http://en.support.wordpress.com/shortcodes/">
  88. <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" />
  89. </a>
  90. </div>
  91. <h4><?php esc_html_e( 'Shortcode Embeds', 'jetpack' ) ?></h4>
  92. <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>
  93. <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>
  94. <?php
  95. $codes = array( 'archives' => 'http://support.wordpress.com/archives-shortcode/',
  96. 'audio' => 'http://support.wordpress.com/audio/',
  97. 'blip.tv' => 'http://support.wordpress.com/videos/bliptv/',
  98. 'dailymotion' => 'http://support.wordpress.com/videos/dailymotion/',
  99. 'flickr' => 'http://support.wordpress.com/videos/flickr-video/',
  100. 'scribd' => 'http://support.wordpress.com/scribd/',
  101. 'slideshare' => 'http://support.wordpress.com/slideshows/slideshare/',
  102. 'soundcloud' => 'http://support.wordpress.com/audio/soundcloud-audio-player/',
  103. 'vimeo' => 'http://support.wordpress.com/videos/vimeo/',
  104. 'youtube' => 'http://support.wordpress.com/videos/youtube/',
  105. 'polldaddy' => 'http://support.polldaddy.com/wordpress-shortcodes/',
  106. );
  107. $codes['wpvideo (VideoPress)'] = 'http://en.support.wordpress.com/videopress/';
  108. $available = '';
  109. foreach ( $codes as $code => $url ) {
  110. $available[] = '<a href="' . $url . '" target="_blank">[' . $code . ']</a>';
  111. }
  112. ?>
  113. <p><?php echo wp_sprintf( esc_html__( 'Available shortcodes are: %l.', 'jetpack' ), $available ); ?></p>
  114. <?php
  115. }
  116. add_action( 'jetpack_module_more_info_connected_shortcodes', 'jetpack_shortcodes_more_info_connected' );
  117. function jetpack_shortcodes_load_more_link( $description ) {
  118. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/shortcodes/">' . esc_html__( 'Learn More' , 'jetpack' ) . '</a>';
  119. }
  120. add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' );
  121. // Shortlinks
  122. function wpme_more_info() { ?>
  123. <div class="jp-info-img">
  124. <a href="http://wp.me/sf2B5-shorten">
  125. <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" />
  126. </a>
  127. </div>
  128. <h4><?php esc_html_e( 'WP.me Shortlinks' , 'jetpack' ); ?></h4>
  129. <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>
  130. <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>
  131. <?php
  132. }
  133. add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );
  134. function wpme_more_info_connected() { ?>
  135. <div class="jp-info-img">
  136. <a href="http://wp.me/sf2B5-shorten">
  137. <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" />
  138. </a>
  139. </div>
  140. <h4><?php esc_html_e( 'WP.me Shortlinks' , 'jetpack' ); ?></h4>
  141. <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>
  142. <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>
  143. <?php
  144. }
  145. add_action( 'jetpack_module_more_info_connected_shortlinks', 'wpme_more_info_connected' );
  146. function wpme_load_more_link( $description ) {
  147. echo '<a class="button-secondary more-info-link" href="http://wp.me/sf2B5-shorten">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  148. }
  149. add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );
  150. // WordPress.com Stats
  151. function stats_more_info() { ?>
  152. <div class="jp-info-img">
  153. <a href="http://en.support.wordpress.com/stats/">
  154. <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" />
  155. </a>
  156. </div>
  157. <h4><?php esc_html_e( 'WordPress.com Stats' , 'jetpack' ); ?></h4>
  158. <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>
  159. <?php
  160. }
  161. add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );
  162. function stats_more_info_connected() { ?>
  163. <div class="jp-info-img">
  164. <a href="http://en.support.wordpress.com/stats/">
  165. <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" />
  166. </a>
  167. </div>
  168. <h4><?php esc_html_e( 'WordPress.com Stats' , 'jetpack' ); ?></h4>
  169. <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>
  170. <p><?php printf( __( 'You can <a href="%s">view your stats dashboard here</a>.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?></p>
  171. <?php
  172. }
  173. add_action( 'jetpack_module_more_info_connected_stats', 'stats_more_info_connected' );
  174. function stats_load_more_link( $description ) {
  175. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/stats/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  176. }
  177. add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );
  178. // Publicize
  179. function publicize_more_info() { ?>
  180. <div class="jp-info-img">
  181. <a href="http://en.support.wordpress.com/publicize/">
  182. <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" />
  183. </a>
  184. </div>
  185. <h4><?php esc_html_e( 'Publicize' , 'jetpack' ); ?></h4>
  186. <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>
  187. <p><?php esc_html_e( 'Publicize allows you to share your posts on Facebook, Twitter, Tumblr, Yahoo!, and Linkedin.', 'jetpack' ); ?></p>
  188. <?php if ( 'jetpack_module_more_info_connected_publicize' == current_filter() ) : ?>
  189. <p><?php printf( __( 'Manage your <a href="%s">Publicize settings</a>.', 'jetpack' ), menu_page_url( 'sharing', false ) ); ?>
  190. <?php endif; ?>
  191. <p>&rarr; <a href="http://jetpack.me/support/publicize/"><?php esc_html_e( 'More information on using Publicize.', 'jetpack' ); ?></a></p>
  192. <?php
  193. }
  194. add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' );
  195. add_action( 'jetpack_module_more_info_connected_publicize', 'publicize_more_info' );
  196. function publicize_load_more_link( $description ) {
  197. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/publicize/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  198. }
  199. add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' );
  200. // Notifications
  201. function notes_more_info() { ?>
  202. <div class="jp-info-img">
  203. <a href="http://support.wordpress.com/notifications/">
  204. <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" />
  205. </a>
  206. </div>
  207. <h4><?php esc_html_e( 'Notifications' , 'jetpack' ); ?></h4>
  208. <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>
  209. <?php
  210. }
  211. add_action( 'jetpack_module_more_info_notes', 'notes_more_info' );
  212. function notes_more_info_connected() { ?>
  213. <div class="jp-info-img">
  214. <a href="http://support.wordpress.com/notifications/">
  215. <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" />
  216. </a>
  217. </div>
  218. <h4><?php esc_html_e( 'Notifications' , 'jetpack' ); ?></h4>
  219. <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>
  220. <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>
  221. <?php
  222. }
  223. add_filter( 'jetpack_module_more_info_connected_notes', 'notes_more_info_connected' );
  224. function notes_load_more_link( $description ) {
  225. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/notifications/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  226. }
  227. add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' );
  228. // LaTeX
  229. function latex_more_info() { ?>
  230. <div class="jp-info-img">
  231. <a href="http://support.wordpress.com/latex/">
  232. <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" />
  233. </a>
  234. </div>
  235. <h4><img src="http://l.wordpress.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>
  236. <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="http://l.wordpress.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>
  237. <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="http://l.wordpress.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" />' ); ?></p>
  238. <p><?php esc_html_e( 'Wow, that sounds nerdy.', 'jetpack' ) ?></p>
  239. <?php
  240. }
  241. add_action( 'jetpack_module_more_info_latex', 'latex_more_info' );
  242. function latex_more_info_connected() { ?>
  243. <div class="jp-info-img">
  244. <a href="http://support.wordpress.com/latex/">
  245. <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" />
  246. </a>
  247. </div>
  248. <h4><img src="http://l.wordpress.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>
  249. <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="http://l.wordpress.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>
  250. <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="http://l.wordpress.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>
  251. <?php
  252. }
  253. add_action( 'jetpack_module_more_info_connected_latex', 'latex_more_info_connected' );
  254. function latex_load_more_link( $description ) {
  255. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/latex/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  256. }
  257. add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' );
  258. // Sharedaddy
  259. function sharedaddy_more_info() { ?>
  260. <div class="jp-info-img">
  261. <a href="http://en.support.wordpress.com/sharing/">
  262. <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" />
  263. </a>
  264. </div>
  265. <h4><?php esc_html_e( 'Sharing' , 'jetpack' ); ?></h4>
  266. <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>
  267. <p><?php
  268. if ( is_multisite() ) {
  269. esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, StumbleUpon, PressThis, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
  270. } else {
  271. esc_html_e( 'The following services are included: Twitter, Facebook, Reddit, StumbleUpon, Digg, LinkedIn, Google +1, Print, and Email.' , 'jetpack' );
  272. }
  273. ?></p>
  274. <p><?php esc_html_e( 'Additionally you can define your own custom services.', 'jetpack' ); ?></p>
  275. <?php
  276. }
  277. add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' );
  278. function sharedaddy_more_info_connected() { ?>
  279. <div class="jp-info-img">
  280. <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>
  281. </div>
  282. <h4><?php esc_html_e( 'Sharing' , 'jetpack' ); ?></h4>
  283. <?php
  284. if ( class_exists( 'Sharing_Admin' ) ) {
  285. ?>
  286. <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>
  287. <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' ); ?>
  288. <?php
  289. }
  290. ?>
  291. <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>
  292. <?php
  293. }
  294. add_action( 'jetpack_module_more_info_connected_sharedaddy', 'sharedaddy_more_info_connected' );
  295. function sharedaddy_load_more_link( $description ) {
  296. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/sharing/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  297. }
  298. add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' );
  299. // After The Deadline
  300. function jpatd_more_info() { ?>
  301. <div class="jp-info-img">
  302. <a href="http://en.support.wordpress.com/proofreading/">
  303. <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" />
  304. </a>
  305. </div>
  306. <h4><?php esc_html_e( 'Spelling and Grammar' , 'jetpack' ); ?></h4>
  307. <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>
  308. <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>
  309. <?php
  310. }
  311. add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' );
  312. function jpatd_load_more_link( $description ) {
  313. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/proofreading/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  314. }
  315. add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' );
  316. // RSS Links Widget, Image Widget, Twitter Widget
  317. function jetpack_widgets_more_info() { ?>
  318. <div class="jp-info-img">
  319. <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" />
  320. </div>
  321. <h4><?php esc_html_e( 'Extra Sidebar Widgets' , 'jetpack' ); ?></h4>
  322. <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>
  323. <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>
  324. <?php
  325. }
  326. add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' );
  327. function jetpack_widgets_more_info_connected() { ?>
  328. <div class="jp-info-img">
  329. <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" />
  330. </div>
  331. <h4><?php esc_html_e( 'Extra Sidebar Widgets' , 'jetpack' ); ?></h4>
  332. <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>
  333. <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>
  334. <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>
  335. <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>
  336. <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>
  337. <?php
  338. }
  339. add_action( 'jetpack_module_more_info_connected_widgets', 'jetpack_widgets_more_info_connected' );
  340. function jetpack_widgets_load_more_link( $description ) {
  341. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/widgets/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  342. }
  343. add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' );
  344. // Subscriptions
  345. function jetpack_subscriptions_more_info() { ?>
  346. <div class="jp-info-img">
  347. <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" />
  348. </div>
  349. <h4><?php esc_html_e( 'Subscriptions' , 'jetpack' ); ?></h4>
  350. <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>
  351. <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>
  352. <?php
  353. if ( 'jetpack_module_more_info_connected_subscriptions' == current_filter() )
  354. 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' ) );
  355. 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' ) );
  356. }
  357. add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' );
  358. add_action( 'jetpack_module_more_info_connected_subscriptions', 'jetpack_subscriptions_more_info' );
  359. function jetpack_subscriptions_load_more_link() {
  360. echo '<a class="button-secondary more-info-link" href="http://en.support.wordpress.com/following/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  361. }
  362. add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' );
  363. // Enhanced Distribution
  364. function jetpack_enhanced_distribution_more_info() { ?>
  365. <h4><?php esc_html_e( 'Enhanced Distribution' , 'jetpack' ); ?></h4>
  366. <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>
  367. <?php
  368. }
  369. add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
  370. add_action( 'jetpack_module_more_info_connected_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );
  371. function jetpack_enhanced_distribution_more_link() {
  372. echo '<a class="button-secondary more-info-link" href="http://en.wordpress.com/firehose/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  373. }
  374. add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' );
  375. // JSON API
  376. function jetpack_json_api_more_info() { ?>
  377. <h4><?php esc_html_e( 'JSON API' , 'jetpack' ); ?></h4>
  378. <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' ); ?>
  379. <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>
  380. <?php
  381. }
  382. add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' );
  383. add_action( 'jetpack_module_more_info_connected_json-api', 'jetpack_json_api_more_info' );
  384. function jetpack_json_api_more_link() {
  385. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/json-api/">' . esc_html__( 'Learn More', 'jetpack' ) . '</a>';
  386. }
  387. add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' );
  388. // Contact Form: START
  389. function jetpack_contact_form_learn_more_button() {
  390. echo '<a class="button-secondary more-info-link" href="http://support.wordpress.com/contact-form/">' . __( 'Learn More', 'jetpack' ) . '</a>';
  391. }
  392. function jetpack_contact_form_more_info() {
  393. echo '<div class="jp-info-img">';
  394. echo '<a href="http://support.wordpress.com/contact-form/">';
  395. 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" />';
  396. echo '</a>';
  397. echo '</div>';
  398. echo '<h4>' . esc_html__( 'Contact Form', 'jetpack' ) . '</h4>';
  399. echo '<p>';
  400. _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' );
  401. echo '</p>';
  402. 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' );
  403. echo '</p>';
  404. }
  405. add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' );
  406. add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' );
  407. add_action( 'jetpack_module_more_info_connected_contact-form', 'jetpack_contact_form_more_info' );
  408. // Contact Form: STOP
  409. // Jetpack Comments: START
  410. function jetpack_comments_learn_more_button() {
  411. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  412. }
  413. function jetpack_comments_more_info() {
  414. ?>
  415. <div class="jp-info-img">
  416. <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" />
  417. </div>
  418. <h4><?php esc_html_e( 'Jetpack Comments', 'jetpack' ); ?></h4>
  419. <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>
  420. <?php if ( 'jetpack_module_more_info_connected_comments' == current_filter() ) : ?>
  421. <p><?php printf(
  422. __( "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' ),
  423. admin_url( 'options-discussion.php#jetpack-comments-settings' )
  424. ); ?></p>
  425. <?php endif; ?>
  426. <?php
  427. }
  428. add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' );
  429. add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' );
  430. add_action( 'jetpack_module_more_info_connected_comments', 'jetpack_comments_more_info' );
  431. // Jetpack Comments: STOP
  432. // Gallery Carousel: START
  433. function jetpack_carousel_learn_more_button() {
  434. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  435. }
  436. function jetpack_carousel_more_info() {
  437. ?>
  438. <div class="jp-info-img">
  439. <img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/screenshot-6.png' ) ?>" alt="<?php esc_attr_e( 'Gallery Carousel Screenshot', 'jetpack' ) ?>" width="300" height="188" />
  440. </div>
  441. <h4><?php esc_html_e( 'Carousel', 'jetpack' ); ?></h4>
  442. <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>
  443. <?php
  444. }
  445. add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' );
  446. add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' );
  447. add_action( 'jetpack_module_more_info_connected_carousel', 'jetpack_carousel_more_info' );
  448. // Gallery Carousel: STOP
  449. // Custom CSS: START
  450. function jetpack_custom_css_more_info() {
  451. ?>
  452. <div class="jp-info-img">
  453. <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" />
  454. </div>
  455. <h4><?php esc_html_e( 'Custom CSS', 'jetpack' ); ?></h4>
  456. <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>
  457. <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>
  458. <?php
  459. }
  460. function jetpack_custom_css_more_button() {
  461. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  462. }
  463. add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );
  464. add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );
  465. // Custom CSS: STOP
  466. // Minileven: START
  467. function jetpack_minileven_more_info() {
  468. ?>
  469. <div class="jp-info-img">
  470. <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" />
  471. </div>
  472. <h4><?php esc_html_e( 'Mobile Theme', 'jetpack' ); ?></h4>
  473. <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>
  474. <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>
  475. <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>
  476. <?php
  477. }
  478. function jetpack_minileven_more_button() {
  479. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  480. }
  481. add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' );
  482. add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' );
  483. // Minileven: STOP
  484. // Mobile Push Notifications: START
  485. function jetpack_mobile_push_notifications_more_info() { ?>
  486. <div class="jp-info-img">
  487. <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" />
  488. </div>
  489. <h4><?php esc_html_e( 'Mobile Push Notifications' , 'jetpack' ); ?></h4>
  490. <p><?php _e( 'If you have your blog added to the <a href="http://ios.wordpress.org/">WordPress for iOS app</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' ); ?></p>
  491. <?php
  492. }
  493. function jetpack_mobile_push_notifications_more_link() {
  494. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  495. }
  496. add_action( 'jetpack_learn_more_button_mobile-push', 'jetpack_mobile_push_notifications_more_link' );
  497. add_action( 'jetpack_module_more_info_mobile-push', 'jetpack_mobile_push_notifications_more_info' );
  498. // Mobile Push Notifications: STOP
  499. // Infinite Scroll: START
  500. /**
  501. *
  502. */
  503. function jetpack_infinite_scroll_more_info() {
  504. $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/' );
  505. ?>
  506. <h4><?php esc_html_e( 'Infinite Scroll', 'jetpack' ); ?></h4>
  507. <?php if ( ! Jetpack::is_active() || ( Jetpack::is_active() && current_theme_supports( 'infinite-scroll' ) ) ) : ?>
  508. <p><?php esc_html_e( 'When you write great content, all you really want is people to find it, right?', 'jetpack' ); ?></p>
  509. <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>
  510. <?php else : ?>
  511. <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>
  512. <p><?php esc_html_e( "Until your theme supports Infinite Scroll, you won't be able to activate this module.", 'jetpack' ); ?></p>
  513. <?php
  514. if ( current_user_can( 'update_themes' ) ) :
  515. ob_start();
  516. theme_update_available( function_exists( 'wp_get_theme' ) ? wp_get_theme() : (object) get_theme( get_current_theme() ) );
  517. $theme_update_available = ob_get_clean();
  518. if ( ! empty( $theme_update_available ) ) : ?>
  519. <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>
  520. <?php else : ?>
  521. <p><?php echo $support_text; ?></p>
  522. <?php endif; ?>
  523. <?php else : ?>
  524. <p><?php echo $support_text; ?></p>
  525. <?php endif; ?>
  526. <?php endif;
  527. }
  528. add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' );
  529. /**
  530. *
  531. */
  532. function jetpack_infinite_scroll_more_button() {
  533. echo '<a class="button more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  534. }
  535. add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' );
  536. // Infinite Scroll: STOP
  537. // Post by Email: START
  538. function jetpack_post_by_email_more_info() { ?>
  539. <div class="jp-info-img">
  540. <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" />
  541. </div>
  542. <h4><?php esc_html_e( 'Post by Email' , 'jetpack' ); ?></h4>
  543. <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>
  544. <?php if ( 'jetpack_module_more_info_connected_post-by-email' == current_filter() ) : ?>
  545. <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' ) ); ?>
  546. <?php endif; ?>
  547. <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>
  548. <?php
  549. }
  550. function jetpack_post_by_email_more_link() {
  551. echo '<a class="button-secondary more-info-link" href="http://jetpack.me/support/post-by-email/">' . __( 'Learn More', 'jetpack' ) . '</a>';
  552. }
  553. add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );
  554. add_action( 'jetpack_module_more_info_connected_post-by-email', 'jetpack_post_by_email_more_info' );
  555. add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );
  556. // Post by Email: STOP
  557. // Photon: START
  558. /**
  559. *
  560. */
  561. function jetpack_photon_more_info() { ?>
  562. <h4><?php esc_html_e( 'Photon' , 'jetpack' ); ?></h4>
  563. <p><?php esc_html_e( "Give your site a boost by loading images in post and posts' featured images 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>
  564. <?php
  565. }
  566. add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' );
  567. /**
  568. * Display "Learn More" button for Photon module
  569. * @uses __
  570. * @action jetpack_learn_more_button_photon
  571. * @return string
  572. */
  573. function jetpack_photon_more_link() {
  574. echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>';
  575. }
  576. add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' );
  577. // Photon: STOP