diff --git a/class.jetpack-admin.php b/class.jetpack-admin.php index 7420297bb209c..6e46ee3867291 100644 --- a/class.jetpack-admin.php +++ b/class.jetpack-admin.php @@ -111,23 +111,13 @@ function get_modules() { $module_array['learn_more_button'] = ob_get_clean(); ob_start(); - if ( Jetpack::is_active() && has_action( 'jetpack_module_more_info_connected_' . $module ) ) { - /** - * Allow the display of information text when Jetpack is connected to WordPress.com. - * The dynamic part of the action, $module, is the module slug. - * - * @since 3.0.0 - */ - do_action( 'jetpack_module_more_info_connected_' . $module ); - } else { - /** - * Allow the display of information text when Jetpack is connected to WordPress.com. - * The dynamic part of the action, $module, is the module slug. - * - * @since 3.0.0 - */ - do_action( 'jetpack_module_more_info_' . $module ); - } + /** + * Allow the display of information text when Jetpack is connected to WordPress.com. + * The dynamic part of the action, $module, is the module slug. + * + * @since 3.0.0 + */ + do_action( 'jetpack_module_more_info_' . $module ); /** * Filter the long description of a module. diff --git a/class.jetpack-modules-list-table.php b/class.jetpack-modules-list-table.php index c7e18f9da031b..941bae754e68b 100644 --- a/class.jetpack-modules-list-table.php +++ b/class.jetpack-modules-list-table.php @@ -306,13 +306,8 @@ function column_description( $item ) { /** This action is documented in class.jetpack-admin.php */ do_action( 'jetpack_learn_more_button_' . $item['module'] ); echo '
view your stats dashboard here.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?>
' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * Publicize + */ +function publicize_load_more_link( $description ) { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' ); - +add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' ); -// Publicize function publicize_more_info() { ?>on WordPress.com.', 'jetpack' ), 'http://wordpress.com/#!/notifications/' ); ?>
' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * LaTeX + */ +function latex_load_more_link( $description ) { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' ); - +add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' ); -// LaTeX function latex_more_info() { ?>' ); ?>
+$latex your latex code here$ or [latex]your latex code here[/latex]
to include %s in your posts and comments. There are all sorts of options available.', 'jetpack' ), '', 'http://support.wordpress.com/latex/' ); ?>
' ); ?>
-$latex your latex code here$ or [latex]your latex code here[/latex]
to include %s in your posts and comments. There are all sorts of options available.', 'jetpack' ), '', 'http://support.wordpress.com/latex/' ); ?>
Sharing support page. 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/' ); ?>
' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * After The Deadline + */ +function jpatd_load_more_link( $description ) { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' ); - +add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' ); -// After The Deadline function jpatd_more_info() { ?>-
- - -
The Twitter Widget shows your latest tweets within a sidebar on your theme.', 'jetpack' ) ); ?>
The Facebook Like Box Widget shows your Facebook Like Box within a sidebar on your theme.', 'jetpack' ) ); ?>
The Image Widget lets you easily add images to a sidebar on your theme.', 'jetpack' ) ); ?>
@@ -406,14 +325,16 @@ function jetpack_widgets_more_info_connected() { ?>Widgets. Drag them into one of your sidebars and configure away.', 'jetpack' ), admin_url( 'widgets.php' ) ); ?>
' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * Subscriptions + */ +function jetpack_subscriptions_load_more_link() { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' ); +add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' ); -// Subscriptions function jetpack_subscriptions_more_info() { ?>Widgets. Drag the widget labeled “Blog Subscriptions (Jetpack)” into one of your sidebars and configure away.', 'jetpack' ), + admin_url( 'widgets.php' ) + ); ?>
+Discussion Settings page.', 'jetpack' ), + admin_url( 'options-discussion.php#jetpack-subscriptions-settings' ) + ); ?>
+Reading Settings page.', 'jetpack' ), + admin_url( 'options-reading.php#follower-settings' ) + ); ?>
' . __( 'To use the Subscriptions widget, go to Appearance → Widgets. Drag the widget labeled “Blog Subscriptions (Jetpack)” into one of your sidebars and configure away.', 'jetpack' ) . '', admin_url( 'widgets.php' ) ); - printf( '' . __( 'You can also make changes to your Subscription settings at the bottom of the Discussion Settings page.', 'jetpack' ) . '
', admin_url( 'options-discussion.php#jetpack-subscriptions-settings' ) ); - printf( '' . __( 'To customize the emails sent from your blog to your followers, check the settings at the bottom of the Reading Settings page.', 'jetpack' ) . '
', admin_url( 'options-reading.php#follower-settings' ) ); } add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' ); -add_action( 'jetpack_module_more_info_connected_subscriptions', 'jetpack_subscriptions_more_info' ); -function jetpack_subscriptions_load_more_link() { - echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * Enhanced Distribution + */ +function jetpack_enhanced_distribution_more_link() { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' ); - -// Enhanced Distribution +add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); function jetpack_enhanced_distribution_more_info() { ?> - ' . esc_html__( 'Learn More', 'jetpack' ) . ''; + +/** + * Protect + */ +function jetpack_protect_more_link() { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); +add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' ); -// Protect function jetpack_protect_more_info() { ?>} add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' ); -add_action( 'jetpack_module_more_info_connected_protect', 'jetpack_protect_more_info' ); -function jetpack_protect_more_link() { - echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; +/** + * JSON API + */ +function jetpack_json_api_more_link() { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' ); - +add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' ); -// JSON API function jetpack_json_api_more_info() { ?>
@@ -479,19 +407,16 @@ function jetpack_json_api_more_info() { ?> ' . esc_html__( 'Learn More', 'jetpack' ) . ''; -} -add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' ); -// Contact Form: START +/** + * Contact Form + */ function jetpack_contact_form_learn_more_button() { - echo '' . __( 'Learn More', 'jetpack' ) . ''; + echo '' . __( 'Learn More', 'jetpack' ) . ''; } +add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' ); function jetpack_contact_form_more_info() { echo '
Discussion Settings page.", 'jetpack' ), admin_url( 'options-discussion.php#jetpack-comments-settings' ) ); ?>
- - ' . __( 'Learn More', 'jetpack' ) . ''; } +add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' ); function jetpack_carousel_more_info() { ?> @@ -557,36 +477,36 @@ function jetpack_carousel_more_info() { +/** + * Custom CSS + */ +function jetpack_custom_css_more_button() { + echo '' . __( 'Learn More', 'jetpack' ) . ''; +} +add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); + +function jetpack_custom_css_more_info() { ?>Edit CSS.', 'jetpack' ), admin_url( 'themes.php?page=editcss' ) ); ?>
- - ' . __( 'Learn More', 'jetpack' ) . ''; } +add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' ); -add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); -add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' ); -// Custom CSS: STOP - -// Minileven: START -function jetpack_minileven_more_info() { - ?> +function jetpack_minileven_more_info() { ?>profile settings.', 'jetpack' ), esc_url( get_edit_profile_url( get_current_user_id() ) . '#post-by-email' ) ); ?> - -
' . __( 'Learn More', 'jetpack' ) . ''; -} - add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' ); -add_action( 'jetpack_module_more_info_connected_post-by-email', 'jetpack_post_by_email_more_info' ); -add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' ); -// Post by Email: STOP - -// Photon: START /** - * + * Photon */ +function jetpack_photon_more_link() { + echo '' . __( 'Learn More', 'jetpack' ) . ''; +} +add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' ); + function jetpack_photon_more_info() { ?> add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' ); /** - * Display "Learn More" button for Photon module - * @uses __ - * @action jetpack_learn_more_button_photon - * @return string + * Tiled Galleries */ -function jetpack_photon_more_link() { +function jetpack_tiled_gallery_more_link() { echo '' . __( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' ); -// Photon: STOP +add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' ); -// Tiled Galleries: START function jetpack_tiled_gallery_more_info() { ?>VideoPress subscription. Once you have purchased a VideoPress subscription, click here to configure VideoPress.', 'jetpack' ), 'http://store.wordpress.com/premium-upgrades/videopress/', Jetpack::admin_url( 'page=jetpack&configure=videopress' ) ); ?>
- ' . __( 'Learn More', 'jetpack' ) . ''; +/** + * SSO + */ +function jetpack_sso_more_link() { + echo '' . __( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' ); -// VideoPress: STOP +add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' ); -// SSO: START function jetpack_sso_more_info() { ?> @@ -820,16 +721,16 @@ function jetpack_sso_more_info() { ?> ' . __( 'Learn More', 'jetpack' ) . ''; +/** + * Monitor + */ +function jetpack_monitor_more_link() { + echo '' . esc_html__( 'Learn More', 'jetpack' ) . ''; } +add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' ); -add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' ); -add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' ); -// SSO: STOP - -// Monitor: START function jetpack_monitor_more_info() { ?>
@@ -840,35 +741,15 @@ function jetpack_monitor_more_info() { ?>
}
add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' );
-function jetpack_monitor_more_link() {
- echo '' . esc_html__( 'Learn More', 'jetpack' ) . '';
+/**
+ * Related Posts
+ */
+function jetpack_related_posts_more_button() {
+ echo '' . __( 'Learn More', 'jetpack' ) . '';
}
-add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' );
-// Monitor: STOP
+add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' );
-// Related Posts: START
function jetpack_related_posts_more_info() {
- $template = <<
%s
-→ %s
-EOT; - printf( - $template, - plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/related-posts.jpg' ), - esc_attr__( 'Related Posts', 'jetpack' ), - 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' ), - esc_html__( 'More information on using Related Posts.', 'jetpack' ) - ); -} -add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' ); - -function jetpack_related_posts_more_info_connected() { $template = <<meta' ); ?>
@@ -921,13 +804,14 @@ function jetpack_verification_tools_more_info() { ?> } add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' ); -function jetpack_verification_tools_more_link() { - echo '' . __( 'Learn More', 'jetpack' ) . ''; +/** + * Custom Content Types + */ +function jetpack_custom_content_types_more_link() { + echo '' . __( 'Learn More', 'jetpack' ) . ''; } -add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' ); -// Site Verification Tools: STOP +add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' ); -// Custom Content Types: START function jetpack_custom_content_types_more_info() { ?>