Begin reformatting
This commit is contained in:
parent
df05493b43
commit
ef054b321c
27 changed files with 7408 additions and 7457 deletions
|
@ -1,308 +1,308 @@
|
|||
<?php
|
||||
// Do not edit this file. It's generated by jetpack/tools/build-module-headings-translations.php
|
||||
|
||||
/**
|
||||
* For a given module, return an array with translated name, description and recommended description.
|
||||
*
|
||||
* @param string $key Module file name without .php
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function jetpack_get_module_i18n( $key ) {
|
||||
static $modules;
|
||||
if ( ! isset( $modules ) ) {
|
||||
$modules = array(
|
||||
'after-the-deadline' => array(
|
||||
'name' => _x( 'Spelling and Grammar', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Check your spelling, style, and grammar with the After the Deadline proofreading service.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
<?php
|
||||
// Do not edit this file. It's generated by jetpack/tools/build-module-headings-translations.php
|
||||
|
||||
'carousel' => array(
|
||||
'name' => _x( 'Carousel', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Transform standard image galleries into full-screen slideshows.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Brings your photos and images to life as full-size, easily navigable galleries.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'comments' => array(
|
||||
'name' => _x( 'Comments', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Let readers comment with WordPress.com, Twitter, Facebook, or Google+ accounts.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'contact-form' => array(
|
||||
'name' => _x( 'Contact Form', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Insert a contact form anywhere on your site.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Adds a button to your post and page editors, allowing you to build simple forms to help visitors stay in touch.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'custom-content-types' => array(
|
||||
'name' => _x( 'Custom Content Types', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Organize and display different types of content on your site, separate from posts and pages.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'custom-css' => array(
|
||||
'name' => _x( 'Custom CSS', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Customize your site’s CSS without modifying your theme.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'enhanced-distribution' => array(
|
||||
'name' => _x( 'Enhanced Distribution', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Increase reach and traffic.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'gravatar-hovercards' => array(
|
||||
'name' => _x( 'Gravatar Hovercards', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Enable pop-up business cards over commenters’ Gravatars.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Let commenters link their profiles to their Gravatar accounts, making it easy for your visitors to learn more about your community.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'infinite-scroll' => array(
|
||||
'name' => _x( 'Infinite Scroll', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add support for infinite scroll to your theme.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'json-api' => array(
|
||||
'name' => _x( 'JSON API', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Allow applications to securely access your content through the cloud.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'latex' => array(
|
||||
'name' => _x( 'Beautiful Math', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Use LaTeX markup language in posts and pages for complex equations and other geekery.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'likes' => array(
|
||||
'name' => _x( 'Likes', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Give visitors an easy way to show their appreciation for your content.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'manage' => array(
|
||||
'name' => _x( 'Manage', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Manage all your sites from a centralized place, https://wordpress.com/sites.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Helps you remotely manage plugins, turn on automated updates, and more from <a href="https://wordpress.com/plugins/" target="_blank">wordpress.com</a>.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'markdown' => array(
|
||||
'name' => _x( 'Markdown', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Write posts or pages in plain-text Markdown syntax.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'minileven' => array(
|
||||
'name' => _x( 'Mobile Theme', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Optimize your site with a mobile-friendly theme for smartphones.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'monitor' => array(
|
||||
'name' => _x( 'Monitor', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Reports on site downtime.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'notes' => array(
|
||||
'name' => _x( 'Notifications', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Receive notification of site activity via the admin toolbar and your Mobile devices.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'omnisearch' => array(
|
||||
'name' => _x( 'Omnisearch', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Search your entire database from a single field in your Dashboard.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'photon' => array(
|
||||
'name' => _x( 'Photon', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Speed up images and photos.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Mirrors and serves your images from our free and fast image CDN, improving your site’s performance with no additional load on your servers.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'post-by-email' => array(
|
||||
'name' => _x( 'Post by Email', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Publish posts by email, using any device and email client.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'protect' => array(
|
||||
'name' => _x( 'Protect', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Prevent brute force attacks.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'publicize' => array(
|
||||
'name' => _x( 'Publicize', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Automatically promote content.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'related-posts' => array(
|
||||
'name' => _x( 'Related Posts', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Display similar content.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sharedaddy' => array(
|
||||
'name' => _x( 'Sharing', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Visitors can share your content.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'shortcodes' => array(
|
||||
'name' => _x( 'Shortcode Embeds', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Embed content from YouTube, Vimeo, SlideShare, and more, no coding necessary.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'shortlinks' => array(
|
||||
'name' => _x( 'WP.me Shortlinks', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Enable WP.me-powered shortlinks for all posts and pages.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'site-icon' => array(
|
||||
'name' => _x( 'Site Icon', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add a site icon to your site.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sitemaps' => array(
|
||||
'name' => _x( 'Sitemaps', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Creates sitemaps to allow your site to be easily indexed by search engines.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sso' => array(
|
||||
'name' => _x( 'Single Sign On', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Secure user authentication.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Lets you log in to all your Jetpack-enabled sites with one click using your WordPress.com account.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'stats' => array(
|
||||
'name' => _x( 'Site Stats', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Collect traffic stats and insights.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'subscriptions' => array(
|
||||
'name' => _x( 'Subscriptions', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Allow users to subscribe to your posts and comments and receive notifications via email.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Give visitors two easy subscription options — while commenting, or via a separate email subscription widget you can display.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'tiled-gallery' => array(
|
||||
'name' => _x( 'Tiled Galleries', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Display your image galleries in a variety of sleek, graphic arrangements.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'vaultpress' => array(
|
||||
'name' => _x( 'Data Backups', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Daily or real-time backups.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'verification-tools' => array(
|
||||
'name' => _x( 'Site Verification', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Verify your site or domain with Google Search Console, Pinterest, and others.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'videopress' => array(
|
||||
'name' => _x( 'VideoPress', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Upload and embed videos right on your site. (Subscription required.)', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'widget-visibility' => array(
|
||||
'name' => _x( 'Widget Visibility', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Specify which widgets appear on which pages of your site.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'widgets' => array(
|
||||
'name' => _x( 'Extra Sidebar Widgets', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add images, Twitter streams, your site’s RSS links, and more to your sidebar.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
);
|
||||
}
|
||||
return $modules[ $key ];
|
||||
}
|
||||
/**
|
||||
* For a given module tag, return its translated version.
|
||||
*
|
||||
* @param string $key Module tag as is in each module heading.
|
||||
*
|
||||
* @return string
|
||||
/**
|
||||
* For a given module, return an array with translated name, description and recommended description.
|
||||
*
|
||||
* @param string $key Module file name without .php
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function jetpack_get_module_i18n_tag( $key ) {
|
||||
static $module_tags;
|
||||
if ( ! isset( $module_tags ) ) {
|
||||
$module_tags = array(
|
||||
// Modules with `Other` tag:
|
||||
// - modules/contact-form.php
|
||||
// - modules/notes.php
|
||||
// - modules/site-icon.php
|
||||
'Other' =>_x( 'Other', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Writing` tag:
|
||||
// - modules/after-the-deadline.php
|
||||
// - modules/custom-content-types.php
|
||||
// - modules/enhanced-distribution.php
|
||||
// - modules/json-api.php
|
||||
// - modules/latex.php
|
||||
// - modules/markdown.php
|
||||
// - modules/post-by-email.php
|
||||
// - modules/shortcodes.php
|
||||
'Writing' =>_x( 'Writing', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Photos and Videos` tag:
|
||||
// - modules/carousel.php
|
||||
// - modules/photon.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/tiled-gallery.php
|
||||
// - modules/videopress.php
|
||||
'Photos and Videos' =>_x( 'Photos and Videos', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Social` tag:
|
||||
// - modules/comments.php
|
||||
// - modules/gravatar-hovercards.php
|
||||
// - modules/likes.php
|
||||
// - modules/publicize.php
|
||||
// - modules/sharedaddy.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/shortlinks.php
|
||||
// - modules/subscriptions.php
|
||||
// - modules/widgets.php
|
||||
'Social' =>_x( 'Social', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Appearance` tag:
|
||||
// - modules/custom-css.php
|
||||
// - modules/gravatar-hovercards.php
|
||||
// - modules/infinite-scroll.php
|
||||
// - modules/minileven.php
|
||||
// - modules/photon.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/widget-visibility.php
|
||||
// - modules/widgets.php
|
||||
'Appearance' =>_x( 'Appearance', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Developers` tag:
|
||||
// - modules/json-api.php
|
||||
// - modules/omnisearch.php
|
||||
// - modules/sso.php
|
||||
'Developers' =>_x( 'Developers', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Centralized Management` tag:
|
||||
// - modules/manage.php
|
||||
'Centralized Management' =>_x( 'Centralized Management', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Recommended` tag:
|
||||
// - modules/manage.php
|
||||
// - modules/minileven.php
|
||||
// - modules/monitor.php
|
||||
// - modules/photon.php
|
||||
// - modules/protect.php
|
||||
// - modules/publicize.php
|
||||
// - modules/related-posts.php
|
||||
// - modules/sharedaddy.php
|
||||
// - modules/sitemaps.php
|
||||
// - modules/stats.php
|
||||
'Recommended' =>_x( 'Recommended', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Mobile` tag:
|
||||
// - modules/minileven.php
|
||||
'Mobile' =>_x( 'Mobile', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Traffic` tag:
|
||||
// - modules/sitemaps.php
|
||||
'Traffic' =>_x( 'Traffic', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Site Stats` tag:
|
||||
// - modules/stats.php
|
||||
'Site Stats' =>_x( 'Site Stats', 'Module Tag', 'jetpack' ),
|
||||
);
|
||||
}
|
||||
return $module_tags[ $key ];
|
||||
function jetpack_get_module_i18n( $key ) {
|
||||
static $modules;
|
||||
if ( ! isset( $modules ) ) {
|
||||
$modules = array(
|
||||
'after-the-deadline' => array(
|
||||
'name' => _x( 'Spelling and Grammar', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Check your spelling, style, and grammar with the After the Deadline proofreading service.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'carousel' => array(
|
||||
'name' => _x( 'Carousel', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Transform standard image galleries into full-screen slideshows.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Brings your photos and images to life as full-size, easily navigable galleries.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'comments' => array(
|
||||
'name' => _x( 'Comments', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Let readers comment with WordPress.com, Twitter, Facebook, or Google+ accounts.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'contact-form' => array(
|
||||
'name' => _x( 'Contact Form', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Insert a contact form anywhere on your site.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Adds a button to your post and page editors, allowing you to build simple forms to help visitors stay in touch.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'custom-content-types' => array(
|
||||
'name' => _x( 'Custom Content Types', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Organize and display different types of content on your site, separate from posts and pages.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'custom-css' => array(
|
||||
'name' => _x( 'Custom CSS', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Customize your site’s CSS without modifying your theme.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'enhanced-distribution' => array(
|
||||
'name' => _x( 'Enhanced Distribution', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Increase reach and traffic.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'gravatar-hovercards' => array(
|
||||
'name' => _x( 'Gravatar Hovercards', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Enable pop-up business cards over commenters’ Gravatars.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Let commenters link their profiles to their Gravatar accounts, making it easy for your visitors to learn more about your community.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'infinite-scroll' => array(
|
||||
'name' => _x( 'Infinite Scroll', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add support for infinite scroll to your theme.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'json-api' => array(
|
||||
'name' => _x( 'JSON API', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Allow applications to securely access your content through the cloud.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'latex' => array(
|
||||
'name' => _x( 'Beautiful Math', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Use LaTeX markup language in posts and pages for complex equations and other geekery.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'likes' => array(
|
||||
'name' => _x( 'Likes', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Give visitors an easy way to show their appreciation for your content.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'manage' => array(
|
||||
'name' => _x( 'Manage', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Manage all your sites from a centralized place, https://wordpress.com/sites.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Helps you remotely manage plugins, turn on automated updates, and more from <a href="https://wordpress.com/plugins/" target="_blank">wordpress.com</a>.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'markdown' => array(
|
||||
'name' => _x( 'Markdown', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Write posts or pages in plain-text Markdown syntax.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'minileven' => array(
|
||||
'name' => _x( 'Mobile Theme', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Optimize your site with a mobile-friendly theme for smartphones.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'monitor' => array(
|
||||
'name' => _x( 'Monitor', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Reports on site downtime.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'notes' => array(
|
||||
'name' => _x( 'Notifications', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Receive notification of site activity via the admin toolbar and your Mobile devices.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'omnisearch' => array(
|
||||
'name' => _x( 'Omnisearch', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Search your entire database from a single field in your Dashboard.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'photon' => array(
|
||||
'name' => _x( 'Photon', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Speed up images and photos.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Mirrors and serves your images from our free and fast image CDN, improving your site’s performance with no additional load on your servers.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'post-by-email' => array(
|
||||
'name' => _x( 'Post by Email', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Publish posts by email, using any device and email client.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'protect' => array(
|
||||
'name' => _x( 'Protect', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Prevent brute force attacks.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'publicize' => array(
|
||||
'name' => _x( 'Publicize', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Automatically promote content.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'related-posts' => array(
|
||||
'name' => _x( 'Related Posts', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Display similar content.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sharedaddy' => array(
|
||||
'name' => _x( 'Sharing', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Visitors can share your content.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'shortcodes' => array(
|
||||
'name' => _x( 'Shortcode Embeds', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Embed content from YouTube, Vimeo, SlideShare, and more, no coding necessary.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'shortlinks' => array(
|
||||
'name' => _x( 'WP.me Shortlinks', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Enable WP.me-powered shortlinks for all posts and pages.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'site-icon' => array(
|
||||
'name' => _x( 'Site Icon', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add a site icon to your site.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sitemaps' => array(
|
||||
'name' => _x( 'Sitemaps', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Creates sitemaps to allow your site to be easily indexed by search engines.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'sso' => array(
|
||||
'name' => _x( 'Single Sign On', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Secure user authentication.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Lets you log in to all your Jetpack-enabled sites with one click using your WordPress.com account.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'stats' => array(
|
||||
'name' => _x( 'Site Stats', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Collect traffic stats and insights.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'subscriptions' => array(
|
||||
'name' => _x( 'Subscriptions', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Allow users to subscribe to your posts and comments and receive notifications via email.', 'Module Description', 'jetpack' ),
|
||||
'recommended description' => _x( 'Give visitors two easy subscription options — while commenting, or via a separate email subscription widget you can display.', 'Jumpstart Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'tiled-gallery' => array(
|
||||
'name' => _x( 'Tiled Galleries', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Display your image galleries in a variety of sleek, graphic arrangements.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'vaultpress' => array(
|
||||
'name' => _x( 'Data Backups', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Daily or real-time backups.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'verification-tools' => array(
|
||||
'name' => _x( 'Site Verification', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Verify your site or domain with Google Search Console, Pinterest, and others.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'videopress' => array(
|
||||
'name' => _x( 'VideoPress', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Upload and embed videos right on your site. (Subscription required.)', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'widget-visibility' => array(
|
||||
'name' => _x( 'Widget Visibility', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Specify which widgets appear on which pages of your site.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
|
||||
'widgets' => array(
|
||||
'name' => _x( 'Extra Sidebar Widgets', 'Module Name', 'jetpack' ),
|
||||
'description' => _x( 'Add images, Twitter streams, your site’s RSS links, and more to your sidebar.', 'Module Description', 'jetpack' ),
|
||||
),
|
||||
);
|
||||
}
|
||||
return $modules[ $key ];
|
||||
}
|
||||
/**
|
||||
* For a given module tag, return its translated version.
|
||||
*
|
||||
* @param string $key Module tag as is in each module heading.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function jetpack_get_module_i18n_tag( $key ) {
|
||||
static $module_tags;
|
||||
if ( ! isset( $module_tags ) ) {
|
||||
$module_tags = array(
|
||||
// Modules with `Other` tag:
|
||||
// - modules/contact-form.php
|
||||
// - modules/notes.php
|
||||
// - modules/site-icon.php
|
||||
'Other' =>_x( 'Other', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Writing` tag:
|
||||
// - modules/after-the-deadline.php
|
||||
// - modules/custom-content-types.php
|
||||
// - modules/enhanced-distribution.php
|
||||
// - modules/json-api.php
|
||||
// - modules/latex.php
|
||||
// - modules/markdown.php
|
||||
// - modules/post-by-email.php
|
||||
// - modules/shortcodes.php
|
||||
'Writing' =>_x( 'Writing', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Photos and Videos` tag:
|
||||
// - modules/carousel.php
|
||||
// - modules/photon.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/tiled-gallery.php
|
||||
// - modules/videopress.php
|
||||
'Photos and Videos' =>_x( 'Photos and Videos', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Social` tag:
|
||||
// - modules/comments.php
|
||||
// - modules/gravatar-hovercards.php
|
||||
// - modules/likes.php
|
||||
// - modules/publicize.php
|
||||
// - modules/sharedaddy.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/shortlinks.php
|
||||
// - modules/subscriptions.php
|
||||
// - modules/widgets.php
|
||||
'Social' =>_x( 'Social', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Appearance` tag:
|
||||
// - modules/custom-css.php
|
||||
// - modules/gravatar-hovercards.php
|
||||
// - modules/infinite-scroll.php
|
||||
// - modules/minileven.php
|
||||
// - modules/photon.php
|
||||
// - modules/shortcodes.php
|
||||
// - modules/widget-visibility.php
|
||||
// - modules/widgets.php
|
||||
'Appearance' =>_x( 'Appearance', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Developers` tag:
|
||||
// - modules/json-api.php
|
||||
// - modules/omnisearch.php
|
||||
// - modules/sso.php
|
||||
'Developers' =>_x( 'Developers', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Centralized Management` tag:
|
||||
// - modules/manage.php
|
||||
'Centralized Management' =>_x( 'Centralized Management', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Recommended` tag:
|
||||
// - modules/manage.php
|
||||
// - modules/minileven.php
|
||||
// - modules/monitor.php
|
||||
// - modules/photon.php
|
||||
// - modules/protect.php
|
||||
// - modules/publicize.php
|
||||
// - modules/related-posts.php
|
||||
// - modules/sharedaddy.php
|
||||
// - modules/sitemaps.php
|
||||
// - modules/stats.php
|
||||
'Recommended' =>_x( 'Recommended', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Mobile` tag:
|
||||
// - modules/minileven.php
|
||||
'Mobile' =>_x( 'Mobile', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Traffic` tag:
|
||||
// - modules/sitemaps.php
|
||||
'Traffic' =>_x( 'Traffic', 'Module Tag', 'jetpack' ),
|
||||
|
||||
// Modules with `Site Stats` tag:
|
||||
// - modules/stats.php
|
||||
'Site Stats' =>_x( 'Site Stats', 'Module Tag', 'jetpack' ),
|
||||
);
|
||||
}
|
||||
return $module_tags[ $key ];
|
||||
}
|
|
@ -1,144 +1,144 @@
|
|||
<?php
|
||||
/**
|
||||
* XSLT for XML sitemap
|
||||
*
|
||||
* @module sitemaps
|
||||
*/
|
||||
|
||||
$xsl = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
|
||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>' . esc_html( ent2ncr( __( 'XML Sitemap', 'jetpack' ) ) ) . '</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font: 14px "Open Sans", Helvetica, Arial, sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#description {
|
||||
background-color: #81a844;
|
||||
color: #FFF;
|
||||
padding: 30px 30px 20px;
|
||||
}
|
||||
|
||||
#description a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 10px 30px 30px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
|
||||
th, td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: #E7F1D4;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin: 20px 30px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#description a, #footer a {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
#description a:hover, #footer a:hover {
|
||||
border-bottom: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="description">
|
||||
<h1>' . esc_html( ent2ncr( __( 'XML Sitemap', 'jetpack' ) ) ) . '</h1>
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( 'This is an XML Sitemap generated by <a href="%s" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%s" target="_blank">Google</a> or <a href="%s" target="_blank">Bing</a>.', 'jetpack' ), 'http://jetpack.com/', 'https://www.google.com', 'https://www.bing.com/' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) ) . '</p>
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( 'You can find more information on XML sitemaps at <a href="%s" target="_blank">sitemaps.org</a>', 'jetpack' ), 'http://sitemaps.org' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) ) . '</p>
|
||||
</div>
|
||||
<div id="content">
|
||||
<table>
|
||||
<tr>
|
||||
<th>' . esc_html( ent2ncr( __( 'URL', 'jetpack' ) ) ) . '</th>
|
||||
<th>' . esc_html( ent2ncr( __( 'Images', 'jetpack' ) ) ) . '</th>';
|
||||
if ( empty( $type ) ) :
|
||||
$xsl .= ' <th>' . esc_html( ent2ncr( __( 'Change Frequency', 'jetpack' ) ) ) . '</th>
|
||||
<th>' . esc_html( ent2ncr( __( 'Last Updated', 'jetpack' ) ) ) . '</th>';
|
||||
endif;
|
||||
$xsl .= ' </tr>
|
||||
<xsl:variable name="lower" select="\'abcdefghijklmnopqrstuvwxyz\'"/>
|
||||
<xsl:variable name="upper" select="\'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'"/>
|
||||
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">odd</xsl:attribute>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<td>
|
||||
<xsl:variable name="itemURL">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$itemURL}">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="count(image:image)"/>
|
||||
</td>';
|
||||
if ( empty( $type ) ) :
|
||||
$xsl .= ' <td>
|
||||
<xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(\' \', substring(sitemap:lastmod,12,5)))"/>
|
||||
</td>';
|
||||
endif;
|
||||
$xsl .= ' </tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( '<em>Generated</em> by <a href="%s" target="_blank">Jetpack for WordPress</a>', 'jetpack' ) ), 'https://jetpack.com' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) . '</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>';
|
||||
<?php
|
||||
/**
|
||||
* XSLT for XML sitemap
|
||||
*
|
||||
* @module sitemaps
|
||||
*/
|
||||
|
||||
$xsl = '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
|
||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>' . esc_html( ent2ncr( __( 'XML Sitemap', 'jetpack' ) ) ) . '</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font: 14px "Open Sans", Helvetica, Arial, sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #3498db;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#description {
|
||||
background-color: #81a844;
|
||||
color: #FFF;
|
||||
padding: 30px 30px 20px;
|
||||
}
|
||||
|
||||
#description a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 10px 30px 30px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
|
||||
th, td {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: #E7F1D4;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin: 20px 30px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#description a, #footer a {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
#description a:hover, #footer a:hover {
|
||||
border-bottom: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="description">
|
||||
<h1>' . esc_html( ent2ncr( __( 'XML Sitemap', 'jetpack' ) ) ) . '</h1>
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( 'This is an XML Sitemap generated by <a href="%s" target="_blank">Jetpack</a>, meant to be consumed by search engines like <a href="%s" target="_blank">Google</a> or <a href="%s" target="_blank">Bing</a>.', 'jetpack' ), 'http://jetpack.com/', 'https://www.google.com', 'https://www.bing.com/' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) ) . '</p>
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( 'You can find more information on XML sitemaps at <a href="%s" target="_blank">sitemaps.org</a>', 'jetpack' ), 'http://sitemaps.org' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) ) . '</p>
|
||||
</div>
|
||||
<div id="content">
|
||||
<table>
|
||||
<tr>
|
||||
<th>' . esc_html( ent2ncr( __( 'URL', 'jetpack' ) ) ) . '</th>
|
||||
<th>' . esc_html( ent2ncr( __( 'Images', 'jetpack' ) ) ) . '</th>';
|
||||
if ( empty( $type ) ) :
|
||||
$xsl .= ' <th>' . esc_html( ent2ncr( __( 'Change Frequency', 'jetpack' ) ) ) . '</th>
|
||||
<th>' . esc_html( ent2ncr( __( 'Last Updated', 'jetpack' ) ) ) . '</th>';
|
||||
endif;
|
||||
$xsl .= ' </tr>
|
||||
<xsl:variable name="lower" select="\'abcdefghijklmnopqrstuvwxyz\'"/>
|
||||
<xsl:variable name="upper" select="\'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'"/>
|
||||
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">odd</xsl:attribute>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<td>
|
||||
<xsl:variable name="itemURL">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$itemURL}">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="count(image:image)"/>
|
||||
</td>';
|
||||
if ( empty( $type ) ) :
|
||||
$xsl .= ' <td>
|
||||
<xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(\' \', substring(sitemap:lastmod,12,5)))"/>
|
||||
</td>';
|
||||
endif;
|
||||
$xsl .= ' </tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<p>' . wp_kses( sprintf( ent2ncr( __( '<em>Generated</em> by <a href="%s" target="_blank">Jetpack for WordPress</a>', 'jetpack' ) ), 'https://jetpack.com' ), array( 'a' => array( 'href' => true, 'title' => true ) ) ) . '</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>';
|
||||
|
|
Reference in a new issue