| 1 |
<?php |
| 2 |
/** |
| 3 |
* "Learn More" information blocks for all modules live in this file. |
| 4 |
* |
| 5 |
* Each module must include 2 functions: |
| 6 |
* - The first one creates a button where users can find more information about the module. |
| 7 |
* It is hooked into `jetpack_learn_more_button_ . $module` |
| 8 |
* - The second creates a information block. |
| 9 |
* It is hooked into `jetpack_module_more_info_ . $module` |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* VaultPress (stub) |
| 14 |
*/ |
| 15 |
function vaultpress_jetpack_load_more_link() { |
| 16 |
if ( function_exists( 'is_multisite' ) && is_multisite() ) { |
| 17 |
$vaultpress_url = 'http://vaultpress.com/jetpack-ms/'; |
| 18 |
} else { |
| 19 |
$vaultpress_url = 'http://vaultpress.com/jetpack/'; |
| 20 |
} |
| 21 |
|
| 22 |
echo $vaultpress_url; |
| 23 |
} |
| 24 |
add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' ); |
| 25 |
|
| 26 |
function vaultpress_jetpack_more_info() { |
| 27 |
esc_html_e( |
| 28 |
'We keep a daily or real-time backup of your site so that when mistakes or accidents occur, restoring your |
| 29 |
site to any location takes a matter of minutes. Your site’s files are regularly scanned for unauthorized or |
| 30 |
suspicious modifications that could compromise your security and data. In many cases, we can fix them |
| 31 |
automatically (and will notify you). When we can’t, we provide you with expert support.' |
| 32 |
, 'jetpack' ); |
| 33 |
} |
| 34 |
add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' ); |
| 35 |
|
| 36 |
/** |
| 37 |
* Gravatar Hovercards |
| 38 |
*/ |
| 39 |
function grofiles_load_more_link() { |
| 40 |
echo 'https://jetpack.com/support/gravatar-hovercards/'; |
| 41 |
} |
| 42 |
add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' ); |
| 43 |
|
| 44 |
function grofiles_more_info() { ?> |
| 45 |
<?php esc_html_e( |
| 46 |
'Enhance plain Gravatar images with information about a person (including a name, |
| 47 |
bio, pictures, and contact info) when they leave a comment on one of your posts.' |
| 48 |
, 'jetpack' ); |
| 49 |
} |
| 50 |
add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' ); |
| 51 |
|
| 52 |
/** |
| 53 |
* Shortcodes |
| 54 |
*/ |
| 55 |
function jetpack_shortcodes_load_more_link() { |
| 56 |
echo 'https://jetpack.com/support/shortcode-embeds/'; |
| 57 |
} |
| 58 |
add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' ); |
| 59 |
|
| 60 |
function jetpack_shortcodes_more_info() { ?> |
| 61 |
<?php esc_html_e( |
| 62 |
'Easily and safely embed media from YouTube, Facebook, Flickr, Vimeo, Instagram, |
| 63 |
Google Maps, SlideShare, Vine, SoundCloud, and more. Just enter the appropriate shortcode directly into the |
| 64 |
editor and click “Publish.”' |
| 65 |
, 'jetpack' ); |
| 66 |
} |
| 67 |
add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' ); |
| 68 |
|
| 69 |
/** |
| 70 |
* Shortlinks |
| 71 |
*/ |
| 72 |
function wpme_load_more_link() { |
| 73 |
echo 'http://wp.me/p1moTy-DL'; |
| 74 |
} |
| 75 |
add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' ); |
| 76 |
|
| 77 |
function wpme_more_info() { ?> |
| 78 |
<?php esc_html_e( |
| 79 |
'Grab short and simple links to your posts and pages using the compact wp.me domain name. Perfect |
| 80 |
for use on Twitter, Facebook, and in text messages where every character counts.' |
| 81 |
, 'jetpack' ); |
| 82 |
} |
| 83 |
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' ); |
| 84 |
|
| 85 |
/** |
| 86 |
* Site Stats |
| 87 |
*/ |
| 88 |
function stats_load_more_link() { |
| 89 |
echo 'https://jetpack.com/support/wordpress-com-stats/'; |
| 90 |
} |
| 91 |
add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' ); |
| 92 |
|
| 93 |
function stats_more_info() { ?> |
| 94 |
<?php esc_html_e( |
| 95 |
'Simple and concise statistics about your traffic. Jetpack collects data about pageviews, likes, comments, |
| 96 |
locations, and top posts. View them in your dashboard or on WordPress.com.' |
| 97 |
, 'jetpack' ); |
| 98 |
} |
| 99 |
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' ); |
| 100 |
|
| 101 |
/** |
| 102 |
* Publicize |
| 103 |
*/ |
| 104 |
function publicize_load_more_link() { |
| 105 |
echo 'https://jetpack.com/support/publicize/'; |
| 106 |
} |
| 107 |
add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' ); |
| 108 |
|
| 109 |
function publicize_more_info() { ?> |
| 110 |
<?php esc_html_e( |
| 111 |
'Automatically share and promote newly published posts to Facebook, Twitter, Tumblr, Google+, Path, |
| 112 |
and LinkedIn. You can add connections for yourself or for all users on your site.' |
| 113 |
, 'jetpack' ); |
| 114 |
} |
| 115 |
add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' ); |
| 116 |
|
| 117 |
/** |
| 118 |
* Notifications |
| 119 |
*/ |
| 120 |
function notes_load_more_link() { |
| 121 |
echo 'https://jetpack.com/support/notifications/'; |
| 122 |
} |
| 123 |
add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' ); |
| 124 |
|
| 125 |
function notes_more_info() { ?> |
| 126 |
<?php esc_html_e( |
| 127 |
'You will receive instant notifications in your dashboard or your mobile device when somebody comments |
| 128 |
on any of your sites. Reply directly wherever you are to keep the conversation going.' |
| 129 |
, 'jetpack' ); |
| 130 |
} |
| 131 |
add_filter( 'jetpack_module_more_info_notes', 'notes_more_info' ); |
| 132 |
|
| 133 |
/** |
| 134 |
* LaTeX |
| 135 |
*/ |
| 136 |
function latex_load_more_link() { |
| 137 |
echo 'https://jetpack.com/support/beautiful-math-with-latex/'; |
| 138 |
} |
| 139 |
add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' ); |
| 140 |
|
| 141 |
function latex_more_info() { ?> |
| 142 |
<?php printf( esc_html__( |
| 143 |
'%1$s is a powerful markup language for writing complex mathematical equations and formulas. |
| 144 |
Jetpack combines the power of %1$s and the simplicity of WordPress to give you the ultimate |
| 145 |
in math blogging platforms. Use $latex your latex code here$ or [latex]your latex code here[/latex] |
| 146 |
to include in your posts and comments. Enjoy all sorts of options and embrace your inner nerd.' |
| 147 |
, 'jetpack' ) |
| 148 |
, '<a href="http://www.latex-project.org/" target="_blank"><img src="//s0.wp.com/latex.php?latex=%5CLaTeX&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' |
| 149 |
); ?> |
| 150 |
<?php |
| 151 |
} |
| 152 |
add_action( 'jetpack_module_more_info_latex', 'latex_more_info' ); |
| 153 |
|
| 154 |
/** |
| 155 |
* Sharing |
| 156 |
*/ |
| 157 |
function sharedaddy_load_more_link() { |
| 158 |
echo 'https://jetpack.com/support/sharing/'; |
| 159 |
} |
| 160 |
add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' ); |
| 161 |
|
| 162 |
function sharedaddy_more_info() { ?> |
| 163 |
<?php esc_html_e( |
| 164 |
'Visitors can share your posts with Twitter, Facebook, Reddit, Digg, LinkedIn, Google+, print, |
| 165 |
and email. You can configure services to appear as icons, text, or both and some services like Twitter |
| 166 |
have additional options.' |
| 167 |
, 'jetpack' ); |
| 168 |
} |
| 169 |
add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' ); |
| 170 |
|
| 171 |
/** |
| 172 |
* After The Deadline |
| 173 |
*/ |
| 174 |
function jpatd_load_more_link() { |
| 175 |
echo 'https://jetpack.com/support/spelling-and-grammar/'; |
| 176 |
} |
| 177 |
add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' ); |
| 178 |
|
| 179 |
function jpatd_more_info() { ?> |
| 180 |
<?php esc_html_e( |
| 181 |
'The After the Deadline proofreading service improves your writing by using artificial intelligence to |
| 182 |
find spelling and grammatical errors and offers smart suggestions.' |
| 183 |
, 'jetpack' ); |
| 184 |
} |
| 185 |
add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' ); |
| 186 |
|
| 187 |
/** |
| 188 |
* Extra Sidebar Widgets |
| 189 |
*/ |
| 190 |
function jetpack_widgets_load_more_link() { |
| 191 |
echo 'https://jetpack.com/support/extra-sidebar-widgets/'; |
| 192 |
} |
| 193 |
add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' ); |
| 194 |
|
| 195 |
function jetpack_widgets_more_info() { ?> |
| 196 |
<?php esc_html_e( |
| 197 |
'Add as many custom widgets as you like by dragging and dropping and customize each to fit your needs, |
| 198 |
including, Twitter streams, Facebook like boxes, custom images, Gravatars, tiled galleries, recent posts, |
| 199 |
or social icons.' |
| 200 |
, 'jetpack' ); |
| 201 |
} |
| 202 |
add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' ); |
| 203 |
|
| 204 |
/** |
| 205 |
* Subscriptions |
| 206 |
*/ |
| 207 |
function jetpack_subscriptions_load_more_link() { |
| 208 |
echo 'https://jetpack.com/support/subscriptions/'; |
| 209 |
} |
| 210 |
add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' ); |
| 211 |
|
| 212 |
function jetpack_subscriptions_more_info() { ?> |
| 213 |
<?php esc_html_e( |
| 214 |
'A widget in your sidebar allows visitors to subscribe to your site so that they receive an email |
| 215 |
each time you publish new content. Your visitors can also subscribe to a post\'s comments to keep up with the conversation.' |
| 216 |
, 'jetpack' ); |
| 217 |
} |
| 218 |
add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' ); |
| 219 |
|
| 220 |
/** |
| 221 |
* Enhanced Distribution |
| 222 |
*/ |
| 223 |
function jetpack_enhanced_distribution_more_link() { |
| 224 |
echo 'https://jetpack.com/support/enhanced-distribution/'; |
| 225 |
} |
| 226 |
add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); |
| 227 |
|
| 228 |
function jetpack_enhanced_distribution_more_info() { |
| 229 |
esc_html_e( |
| 230 |
'Jetpack will automatically take your great published content and share it instantly with third-party services |
| 231 |
like search engines, increasing your reach and traffic.' |
| 232 |
, 'jetpack' ); |
| 233 |
} |
| 234 |
add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' ); |
| 235 |
|
| 236 |
|
| 237 |
/** |
| 238 |
* Protect |
| 239 |
*/ |
| 240 |
function jetpack_protect_more_link() { |
| 241 |
echo 'https://jetpack.com/support/protect/'; |
| 242 |
} |
| 243 |
add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' ); |
| 244 |
|
| 245 |
function jetpack_protect_more_info() { |
| 246 |
esc_html_e( |
| 247 |
'Most sites will come under attack from automated bots that attempt to log in for malicious purposes. |
| 248 |
We protect you automatically from unauthorized access by using data from millions of sites.' |
| 249 |
, 'jetpack' ); |
| 250 |
} |
| 251 |
|
| 252 |
add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' ); |
| 253 |
|
| 254 |
/** |
| 255 |
* JSON API |
| 256 |
*/ |
| 257 |
function jetpack_json_api_more_link() { |
| 258 |
echo 'https://jetpack.com/support/json-api/'; |
| 259 |
} |
| 260 |
add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' ); |
| 261 |
|
| 262 |
function jetpack_json_api_more_info() { |
| 263 |
esc_html_e( |
| 264 |
'Authorize applications and services to securely connect to your site. Developers can use WordPress.com\'s OAuth2 |
| 265 |
authentication system and WordPress.com REST API to manage and access your site\'s content.' |
| 266 |
, 'jetpack' ); |
| 267 |
} |
| 268 |
add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' ); |
| 269 |
|
| 270 |
|
| 271 |
/** |
| 272 |
* Contact Form |
| 273 |
*/ |
| 274 |
function jetpack_contact_form_learn_more_button() { |
| 275 |
echo 'https://jetpack.com/support/contact-form/'; |
| 276 |
} |
| 277 |
add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' ); |
| 278 |
|
| 279 |
function jetpack_contact_form_more_info() { ?> |
| 280 |
<?php esc_html_e( |
| 281 |
'Create simple contact forms without any coding. You can have multiple forms and when |
| 282 |
a user submits it, their feedback will be emailed directly to you. If Akismet is active, submissions will be |
| 283 |
automatically filtered for spam.' |
| 284 |
, 'jetpack' ); |
| 285 |
} |
| 286 |
add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' ); |
| 287 |
|
| 288 |
|
| 289 |
/** |
| 290 |
* Comments |
| 291 |
*/ |
| 292 |
function jetpack_comments_learn_more_button() { |
| 293 |
echo 'https://jetpack.com/support/comments'; |
| 294 |
} |
| 295 |
add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' ); |
| 296 |
|
| 297 |
function jetpack_comments_more_info() { ?> |
| 298 |
<?php esc_html_e( |
| 299 |
'Allow visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on |
| 300 |
your site. Jetpack will match your site\'s color scheme automatically (but you can adjust that).' |
| 301 |
, 'jetpack' ); |
| 302 |
} |
| 303 |
add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' ); |
| 304 |
|
| 305 |
/** |
| 306 |
* Carousel |
| 307 |
*/ |
| 308 |
function jetpack_carousel_learn_more_button() { |
| 309 |
echo 'https://jetpack.com/support/carousel'; |
| 310 |
} |
| 311 |
add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' ); |
| 312 |
|
| 313 |
function jetpack_carousel_more_info() { ?> |
| 314 |
<?php esc_html_e( |
| 315 |
'With Carousel active, any standard WordPress galleries you have embedded in posts or pages will |
| 316 |
launch a full-screen photo browsing experience with comments and EXIF metadata.' |
| 317 |
, 'jetpack' ); ?> |
| 318 |
<?php |
| 319 |
} |
| 320 |
add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' ); |
| 321 |
|
| 322 |
/** |
| 323 |
* Custom CSS |
| 324 |
*/ |
| 325 |
function jetpack_custom_css_more_button() { |
| 326 |
echo 'https://jetpack.com/support/custom-css'; |
| 327 |
} |
| 328 |
add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); |
| 329 |
|
| 330 |
function jetpack_custom_css_more_info() { ?> |
| 331 |
<?php esc_html_e( |
| 332 |
"Add to or replace your theme's CSS including mobile styles, LESS, and SaSS. |
| 333 |
Includes syntax coloring, auto-indentation, and immediate CSS validation." |
| 334 |
, 'jetpack' ); |
| 335 |
} |
| 336 |
add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' ); |
| 337 |
|
| 338 |
/** |
| 339 |
* Mobile Theme |
| 340 |
*/ |
| 341 |
function jetpack_minileven_more_button() { |
| 342 |
echo 'https://jetpack.com/support/mobile-theme'; |
| 343 |
} |
| 344 |
add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' ); |
| 345 |
|
| 346 |
function jetpack_minileven_more_info() { ?> |
| 347 |
<?php esc_html_e( |
| 348 |
"Automatically optimize your site for mobile. Jetpack's mobile theme uses the header image, |
| 349 |
background, and widgets from your current theme. Post format support means your photos and galleries |
| 350 |
will also look fantastic." |
| 351 |
, 'jetpack' ); |
| 352 |
} |
| 353 |
add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' ); |
| 354 |
|
| 355 |
/** |
| 356 |
* Infinite Scroll |
| 357 |
*/ |
| 358 |
function jetpack_infinite_scroll_more_button() { |
| 359 |
echo 'https://jetpack.com/support/infinite-scroll'; |
| 360 |
} |
| 361 |
add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' ); |
| 362 |
|
| 363 |
function jetpack_infinite_scroll_more_info() { |
| 364 |
esc_html_e( |
| 365 |
'Infinite scrolling pulls the next set of posts automatically into view when the reader approaches |
| 366 |
the bottom of the page. This helps you reader see more of your content.' |
| 367 |
, 'jetpack' ); |
| 368 |
} |
| 369 |
add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' ); |
| 370 |
|
| 371 |
/** |
| 372 |
* Post by Email |
| 373 |
*/ |
| 374 |
function jetpack_post_by_email_more_link() { |
| 375 |
echo 'https://jetpack.com/support/post-by-email/'; |
| 376 |
} |
| 377 |
add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' ); |
| 378 |
|
| 379 |
function jetpack_post_by_email_more_info() { ?> |
| 380 |
<?php esc_html_e( |
| 381 |
'Publish posts on your site by writing and sending an email from any email client instead of using the post editor.' |
| 382 |
, 'jetpack' ); |
| 383 |
} |
| 384 |
add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' ); |
| 385 |
|
| 386 |
/** |
| 387 |
* Photon |
| 388 |
*/ |
| 389 |
function jetpack_photon_more_link() { |
| 390 |
echo 'https://jetpack.com/support/photon'; |
| 391 |
} |
| 392 |
add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' ); |
| 393 |
|
| 394 |
function jetpack_photon_more_info() { |
| 395 |
esc_html_e( |
| 396 |
"Your images are automatically optimized for different display resolutions to serve the best |
| 397 |
possible image quality. We also cache and serve them from our fast, global network (CDN)." |
| 398 |
, 'jetpack' ); |
| 399 |
} |
| 400 |
add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' ); |
| 401 |
|
| 402 |
/** |
| 403 |
* Tiled Galleries |
| 404 |
*/ |
| 405 |
function jetpack_tiled_gallery_more_link() { |
| 406 |
echo 'https://jetpack.com/support/tiled-galleries/'; |
| 407 |
} |
| 408 |
add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' ); |
| 409 |
|
| 410 |
function jetpack_tiled_gallery_more_info() { ?> |
| 411 |
<?php esc_html_e( |
| 412 |
'When adding an image gallery, you will have the option to create elegant magazine-style mosaic layouts for your photos, |
| 413 |
including mosaic (default), square, and circular layouts.' |
| 414 |
, 'jetpack' ); |
| 415 |
} |
| 416 |
add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' ); |
| 417 |
|
| 418 |
/** |
| 419 |
* Likes |
| 420 |
*/ |
| 421 |
function jetpack_likes_more_link() { |
| 422 |
echo 'https://jetpack.com/support/likes/'; |
| 423 |
} |
| 424 |
add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' ); |
| 425 |
|
| 426 |
function jetpack_likes_more_info() { ?> |
| 427 |
<?php esc_html_e( |
| 428 |
'Allow your readers to show their appreciation for your posts and other content. Likes show up |
| 429 |
below each post and your readers will also be able to review their liked posts from WordPress.com.' |
| 430 |
, 'jetpack' ); |
| 431 |
} |
| 432 |
add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' ); |
| 433 |
|
| 434 |
/** |
| 435 |
* Omnisearch |
| 436 |
*/ |
| 437 |
function jetpack_omnisearch_more_link() { |
| 438 |
echo 'https://jetpack.com/support/omnisearch/'; |
| 439 |
} |
| 440 |
add_action( 'jetpack_learn_more_button_omnisearch', 'jetpack_omnisearch_more_link' ); |
| 441 |
|
| 442 |
function jetpack_omnisearch_more_info() { |
| 443 |
esc_html_e( |
| 444 |
'A search to rule them all: search once, get results from everything! Omnisearch supports searching posts, |
| 445 |
pages, comments, media, and plugins and plays nice with other plugins by letting other providers offer |
| 446 |
results as well.' |
| 447 |
, 'jetpack' ); |
| 448 |
} |
| 449 |
add_action( 'jetpack_module_more_info_omnisearch', 'jetpack_omnisearch_more_info' ); |
| 450 |
|
| 451 |
/** |
| 452 |
* Widget Visibility |
| 453 |
*/ |
| 454 |
function jetpack_widget_visibility_more_link() { |
| 455 |
echo 'https://jetpack.com/support/widget-visibility/'; |
| 456 |
} |
| 457 |
add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' ); |
| 458 |
|
| 459 |
function jetpack_widget_visibility_more_info() { |
| 460 |
esc_html_e( |
| 461 |
'Choose from a set of visibility options for sidebar widgets such as showing them only certain categories, |
| 462 |
only on error pages, or only search results pages. You can also do the reverse and choose to hide them on certain pages.' |
| 463 |
, 'jetpack' ); ?> |
| 464 |
<?php |
| 465 |
} |
| 466 |
add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' ); |
| 467 |
|
| 468 |
/** |
| 469 |
* VideoPress |
| 470 |
*/ |
| 471 |
function jetpack_videopress_more_link() { |
| 472 |
echo 'https://jetpack.com/support/videopress/'; |
| 473 |
} |
| 474 |
add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' ); |
| 475 |
|
| 476 |
function jetpack_videopress_more_info() { |
| 477 |
esc_html_e( |
| 478 |
'The easiest way to upload ad-free and unbranded videos to your site. You get stats on video |
| 479 |
playback and shares and the player is lightweight and responsive.' |
| 480 |
, 'jetpack' ); |
| 481 |
} |
| 482 |
add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' ); |
| 483 |
|
| 484 |
/** |
| 485 |
* SSO |
| 486 |
*/ |
| 487 |
function jetpack_sso_more_link() { |
| 488 |
echo 'https://jetpack.com/support/sso/'; |
| 489 |
} |
| 490 |
add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' ); |
| 491 |
|
| 492 |
function jetpack_sso_more_info() { |
| 493 |
esc_html_e( |
| 494 |
'Your users will be able to log in to your site with their WordPress.com account. |
| 495 |
This includes two-factor authentication making it the safest login mechanism for your site.' |
| 496 |
, 'jetpack' ); |
| 497 |
} |
| 498 |
add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' ); |
| 499 |
|
| 500 |
/** |
| 501 |
* Monitor |
| 502 |
*/ |
| 503 |
function jetpack_monitor_more_link() { |
| 504 |
echo 'https://jetpack.com/support/monitor/'; |
| 505 |
} |
| 506 |
add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' ); |
| 507 |
|
| 508 |
function jetpack_monitor_more_info() { |
| 509 |
esc_html_e( |
| 510 |
'Jetpack checks your site every five minutes and if any downtime is detected you will receive an email |
| 511 |
notification alerting you to the issue, so you can act quickly and get your site back online.' |
| 512 |
, 'jetpack' ); |
| 513 |
} |
| 514 |
add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' ); |
| 515 |
|
| 516 |
/** |
| 517 |
* Related Posts |
| 518 |
*/ |
| 519 |
function jetpack_related_posts_more_button() { |
| 520 |
echo 'https://jetpack.com/support/related-posts/'; |
| 521 |
} |
| 522 |
add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' ); |
| 523 |
|
| 524 |
function jetpack_related_posts_more_info() { |
| 525 |
esc_html_e( |
| 526 |
'Show visitors related content from your site at the bottom of your posts. This encourages them |
| 527 |
to browse more content, explore your site, and transform them into regular readers.' |
| 528 |
, 'jetpack' ); |
| 529 |
} |
| 530 |
add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' ); |
| 531 |
|
| 532 |
/** |
| 533 |
* Markdown |
| 534 |
*/ |
| 535 |
function jetpack_markdown_more_link() { |
| 536 |
echo 'https://jetpack.com/support/markdown/'; |
| 537 |
} |
| 538 |
add_action( 'jetpack_learn_more_button_markdown', 'jetpack_markdown_more_link' ); |
| 539 |
|
| 540 |
function jetpack_markdown_more_info() { |
| 541 |
esc_html_e( |
| 542 |
'Compose posts and comments with links, lists, and other styles using regular characters and |
| 543 |
punctuation marks. A quick and easy way to format text without needing any HTML or coding.' |
| 544 |
, 'jetpack' ); |
| 545 |
} |
| 546 |
add_action( 'jetpack_module_more_info_markdown', 'jetpack_markdown_more_info' ); |
| 547 |
|
| 548 |
/** |
| 549 |
* Site Verification Tools |
| 550 |
*/ |
| 551 |
function jetpack_verification_tools_more_link() { |
| 552 |
echo 'https://support.wordpress.com/webmaster-tools/'; |
| 553 |
} |
| 554 |
add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' ); |
| 555 |
|
| 556 |
function jetpack_verification_tools_more_info() { |
| 557 |
esc_html_e( |
| 558 |
'Verify your site ownership with services like Google, Bing, Pinterest, and Yandex. This gives you access to |
| 559 |
advanced features on these services and get verification badges.' |
| 560 |
, 'jetpack' ); |
| 561 |
} |
| 562 |
add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' ); |
| 563 |
|
| 564 |
/** |
| 565 |
* SEO Tools |
| 566 |
*/ |
| 567 |
function jetpack_seo_tools_more_link() { |
| 568 |
echo 'https://jetpack.com/support/seo-tools/'; |
| 569 |
} |
| 570 |
add_action( 'jetpack_learn_more_button_seo-tools', 'jetpack_seo_tools_more_link' ); |
| 571 |
|
| 572 |
function jetpack_seo_tools_more_info() { |
| 573 |
esc_html_e( |
| 574 |
'Better results on search engines and social media.' |
| 575 |
, 'jetpack' ); |
| 576 |
} |
| 577 |
add_action( 'jetpack_module_more_info_seo-tools', 'jetpack_seo_tools_more_info' ); |
| 578 |
|
| 579 |
/** |
| 580 |
* Custom Content Types |
| 581 |
*/ |
| 582 |
function jetpack_custom_content_types_more_link() { |
| 583 |
echo 'https://jetpack.com/support/custom-content-types/'; |
| 584 |
} |
| 585 |
add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' ); |
| 586 |
|
| 587 |
function jetpack_custom_content_types_more_info() { ?> |
| 588 |
<?php esc_html_e( |
| 589 |
'Add and organize content that doesn’t necessarily fit into a post or static page such as portfolios |
| 590 |
or testimonials. Custom content can be visible at specific URLs, or you may add them with shortcodes.' |
| 591 |
, 'jetpack' ); |
| 592 |
} |
| 593 |
add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' ); |
| 594 |
// Custom Content Types: STOP |
| 595 |
|
| 596 |
/** |
| 597 |
* Manage |
| 598 |
*/ |
| 599 |
function jetpack_manage_more_link() { |
| 600 |
echo 'https://jetpack.com/support/site-management/'; |
| 601 |
} |
| 602 |
add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' ); |
| 603 |
|
| 604 |
function jetpack_custom_jetpack_manage() { ?> |
| 605 |
<?php esc_html_e( |
| 606 |
'Manage and update this and other WordPress sites from one simple dashboard on WordPress.com. You can update |
| 607 |
plugins, set them to automatically update, and (de)activate them on a per-site basis or in bulk from |
| 608 |
wordpress.com/plugins. You can also use the brand new and mobile-friendly post editor on WordPress.com as well |
| 609 |
as view and activate installed themes and create or edit site menus.' |
| 610 |
, 'jetpack' ); |
| 611 |
} |
| 612 |
add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' ); |
| 613 |
|
| 614 |
// XML Sitemap: START |
| 615 |
function jetpack_sitemaps_more_link() { |
| 616 |
echo 'https://jetpack.com/support/sitemaps/'; |
| 617 |
} |
| 618 |
add_action( 'jetpack_learn_more_button_sitemaps', 'jetpack_sitemaps_more_link' ); |
| 619 |
|
| 620 |
function jetpack_xml_sitemap_more_info() { |
| 621 |
esc_html_e( |
| 622 |
'Automatically create two sitemap files that list the URLs of posts and pages in your site. |
| 623 |
This makes it easier for search engines (like Google) to include your site in relevant search results.' |
| 624 |
, 'jetpack' ); |
| 625 |
} |
| 626 |
add_action( 'jetpack_module_more_info_sitemaps', 'jetpack_xml_sitemap_more_info' ); |
| 627 |
// XML Sitemap: STOP |
| 628 |
|