summaryrefslogtreecommitdiff
blob: e80c237df355576445da7cb1128c8aff898d5a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
<?php
/**
 * "Learn More" information blocks for all modules live in this file.
 *
 * Each module must include 2 functions:
 * - The first one creates a button where users can find more information about the module.
 * It is hooked into `jetpack_learn_more_button_ . $module`
 * - The second creates a information block.
 * It is hooked into `jetpack_module_more_info_ . $module`
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\Redirect;

/**
 *  VaultPress (stub) support link.
 */
function vaultpress_jetpack_load_more_link() {
	echo 'https://help.vaultpress.com/get-to-know/';
}
add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' );

/**
 *  VaultPress (stub) description.
 */
function vaultpress_jetpack_more_info() {
	esc_html_e(
		'We keep a daily or real-time backup of your site so that when mistakes or accidents occur, restoring your
		site to any location takes a matter of minutes. Your site’s files are regularly scanned for unauthorized or
		suspicious modifications that could compromise your security and data. In many cases, we can fix them
		automatically (and will notify you). When we can’t, we provide you with expert support.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' );

/**
 * Gravatar Hovercards support link.
 */
function grofiles_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-gravatar-hovercards' ) );
}
add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' );

/**
 * Gravatar Hovercards description.
 */
function grofiles_more_info() {
	esc_html_e(
		'Enhance plain Gravatar images with information about a person (including a name,
		bio, pictures, and contact info) when they leave a comment on one of your posts.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' );

/**
 * Shortcodes support link.
 */
function jetpack_shortcodes_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-shortcode-embeds' ) );
}
add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' );

/**
 * Shortcodes description.
 */
function jetpack_shortcodes_more_info() {
	esc_html_e(
		'Easily and safely embed media from YouTube, Facebook, Flickr, Vimeo, Instagram,
		Google Maps, SlideShare, Vine, SoundCloud, and more. Just enter the appropriate shortcode directly into the
		editor and click “Publish.”',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' );

/**
 * Shortlinks support link.
 */
function wpme_load_more_link() {
	echo 'https://wp.me/p1moTy-DL';
}
add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );

/**
 * Shortlinks description
 */
function wpme_more_info() {
	esc_html_e(
		'Grab short and simple links to your posts and pages using the compact wp.me domain name. Perfect
		for use on Twitter, Facebook, and in text messages where every character counts.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );

/**
 * Site Stats support link.
 */
function stats_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-wordpress-com-stats' ) );
}
add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );

/**
 * Site Stats description.
 */
function stats_more_info() {
	esc_html_e(
		'Simple and concise statistics about your traffic. Jetpack collects data about pageviews, likes, comments,
		locations, and top posts. View them in your dashboard or on WordPress.com.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );

/**
 * Publicize support link.
 */
function publicize_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-publicize' ) );
}
add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' );

/**
 * Publicize description.
 */
function publicize_more_info() {
	esc_html_e(
		'Automatically share and promote newly published posts to Facebook, Twitter, Tumblr,
		and LinkedIn. You can add connections for yourself or for all users on your site.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' );

/**
 * Notifications
 */
function notes_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-notifications' ) );
}
add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' );

/**
 * Notifications description.
 */
function notes_more_info() {
	esc_html_e(
		'You will receive instant notifications in your dashboard or your mobile device when somebody comments
		on any of your sites. Reply directly wherever you are to keep the conversation going.',
		'jetpack'
	);
}
add_filter( 'jetpack_module_more_info_notes', 'notes_more_info' );

/**
 * LaTeX support link.
 */
function latex_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-beautiful-math-with-latex' ) );
}
add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' );

/**
 * LaTeX description.
 */
function latex_more_info() {
	esc_html_e(
		'LaTeX is a powerful markup language for writing complex mathematical equations and formulas.
		Jetpack combines the power of LaTeX and the simplicity of WordPress to give you the ultimate
		in math blogging platforms. Use $latex your latex code here$ or [latex]your latex code here[/latex]
		to include in your posts and comments. Enjoy all sorts of options and embrace your inner nerd.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_latex', 'latex_more_info' );

/**
 * Sharing support link.
 */
function sharedaddy_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-sharing' ) );
}
add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' );

/**
 * Sharing description.
 */
function sharedaddy_more_info() {
	esc_html_e(
		'Visitors can share your posts with Twitter, Facebook, Reddit, Digg, LinkedIn, Google+, print,
		and email. You can configure services to appear as icons, text, or both and some services like Twitter
		have additional options.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' );

/**
 * Extra Sidebar Widgets support link.
 */
function jetpack_widgets_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-extra-sidebar-widgets' ) );
}
add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' );

/**
 * Extra Sidebar Widgets description.
 */
function jetpack_widgets_more_info() {
	esc_html_e(
		'Add as many custom widgets as you like by dragging and dropping and customize each to fit your needs,
		including, Twitter streams, Facebook like boxes, custom images, Gravatars, tiled galleries, recent posts,
		or social icons.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' );

/**
 * Subscriptions support link.
 */
function jetpack_subscriptions_load_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-subscriptions' ) );
}
add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' );

/**
 * Subscriptions description.
 */
function jetpack_subscriptions_more_info() {
	esc_html_e(
		'A widget in your sidebar allows visitors to subscribe to your site so that they receive an email
		each time you publish new content. Your visitors can also subscribe to a post\'s comments to keep up with the conversation.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' );

/**
 * Enhanced Distribution support link.
 */
function jetpack_enhanced_distribution_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-enhanced-distribution' ) );
}
add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' );

/**
 * Enhanced Distribution description.
 */
function jetpack_enhanced_distribution_more_info() {
	esc_html_e(
		'Jetpack will automatically take your great published content and share it instantly with third-party services
		like search engines, increasing your reach and traffic.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' );

/**
 * Protect support link.
 */
function jetpack_protect_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-protect' ) );
}
add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' );

/**
 * Protect description.
 */
function jetpack_protect_more_info() {
	esc_html_e(
		'Most sites will come under attack from automated bots that attempt to log in for malicious purposes.
		We protect you automatically from unauthorized access by using data from millions of sites.',
		'jetpack'
	);
}

add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' );

/**
 * JSON API support link.
 */
function jetpack_json_api_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-json-api' ) );
}
add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' );

/**
 * JSON API description.
 */
function jetpack_json_api_more_info() {
	esc_html_e(
		'Authorize applications and services to securely connect to your site. Developers can use WordPress.com\'s OAuth2
		authentication system and WordPress.com REST API to manage and access your site\'s content.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' );

/**
 * Contact Form support link.
 */
function jetpack_contact_form_learn_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-contact-form' ) );
}
add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' );

/**
 * Contact Form description.
 */
function jetpack_contact_form_more_info() {
	esc_html_e(
		'Create simple contact forms without any coding. You can have multiple forms and when
		a user submits it, their feedback will be emailed directly to you. If Akismet is active, submissions will be
		automatically filtered for spam.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' );

/**
 * Comments support link.
 */
function jetpack_comments_learn_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-comments' ) );
}
add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' );

/**
 * Comments description.
 */
function jetpack_comments_more_info() {
	esc_html_e(
		'Allow visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on
		your site. Jetpack will match your site\'s color scheme automatically (but you can adjust that).',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' );

/**
 * Carousel support link.
 */
function jetpack_carousel_learn_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-carousel' ) );
}
add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' );

/**
 * Carousel description.
 */
function jetpack_carousel_more_info() {
	esc_html_e(
		'With Carousel active, any standard WordPress galleries or single images you have embedded in posts or pages will
		launch a full-screen photo browsing experience with comments and EXIF metadata.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' );

/**
 * Custom CSS support link.
 */
function jetpack_custom_css_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-custom-css' ) );
}
add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );

/**
 * Custom CSS description.
 */
function jetpack_custom_css_more_info() {
	esc_html_e(
		"Add to or replace your theme's CSS including mobile styles, LESS, and SaSS.
		Includes syntax coloring, auto-indentation, and immediate CSS validation.",
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );

/**
 * Masterbar support link.
 */
function jetpack_masterbar_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-masterbar' ) );
}
add_action( 'jetpack_learn_more_button_masterbar', 'jetpack_masterbar_more_link' );

/**
 * Masterbar description.
 */
function jetpack_masterbar_more_info() {
	esc_html_e(
		'Quickly access your Stats, Notifications, Posts and more on WordPress.com.
		The Toolbar is displayed for any user on the site that is connected to WordPress.com.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_masterbar', 'jetpack_masterbar_more_info' );

/**
 * Infinite Scroll support link.
 */
function jetpack_infinite_scroll_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-infinite-scroll' ) );
}
add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' );

/**
 * Infinite Scroll description.
 */
function jetpack_infinite_scroll_more_info() {
	esc_html_e(
		'Infinite scrolling pulls the next set of posts automatically into view when the reader approaches
		the bottom of the page. This helps you reader see more of your content.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' );

/**
 * Post by Email support link.
 */
function jetpack_post_by_email_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-post-by-email' ) );
}
add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );

/**
 * Post by Email description.
 */
function jetpack_post_by_email_more_info() {
	esc_html_e(
		'Publish posts on your site by writing and sending an email from any email client instead of using the post editor.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );

/**
 * Photon support link.
 */
function jetpack_photon_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-photon' ) );
}
add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' );

/**
 * Photon description.
 */
function jetpack_photon_more_info() {
	esc_html_e(
		'Jetpack will optimize your images and serve them from the server location nearest
		to your visitors. Using our global content delivery network will boost the loading speed of your site.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' );

/**
 * Lazy Images support link.
 */
function jetpack_lazy_images_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-lazy-images' ) );
}
add_action( 'jetpack_learn_more_button_lazy-images', 'jetpack_lazy_images_more_link' );

/**
 * Lazy Images description.
 */
function jetpack_lazy_images_more_info() {
	esc_html_e(
		'Improve your site\'s speed by only loading images visible on the screen.
		New images will load just before they scroll into view. This prevents viewers
		from having to download all the images on a page all at once, even ones they can\'t see.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_lazy-images', 'jetpack_lazy_images_more_info' );

/**
 * Tiled Galleries support link.
 */
function jetpack_tiled_gallery_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-tiled-galleries' ) );
}
add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' );

/**
 * Tiled Galleries description.
 */
function jetpack_tiled_gallery_more_info() {
	esc_html_e(
		'When adding an image gallery, you will have the option to create elegant magazine-style mosaic layouts for your photos,
		including mosaic (default), square, and circular layouts.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' );

/**
 * Likes support link.
 */
function jetpack_likes_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-likes' ) );
}
add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' );

/**
 * Likes description.
 */
function jetpack_likes_more_info() {
	esc_html_e(
		'Allow your readers to show their appreciation for your posts and other content. Likes show up
		below each post and your readers will also be able to review their liked posts from WordPress.com.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' );

/**
 * Widget Visibility support link.
 */
function jetpack_widget_visibility_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-widget-visibility' ) );
}
add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' );

/**
 * Widget Visibility description.
 */
function jetpack_widget_visibility_more_info() {
	esc_html_e(
		'Choose from a set of visibility options for sidebar widgets such as showing them only certain categories,
		only on error pages, or only search results pages. You can also do the reverse and choose to hide them on certain pages.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' );

/**
 * VideoPress support link.
 */
function jetpack_videopress_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-videopress' ) );
}
add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' );

/**
 * VideoPress description.
 */
function jetpack_videopress_more_info() {
	esc_html_e(
		'The easiest way to upload ad-free and unbranded videos to your site. You get stats on video
		playback and shares and the player is lightweight and responsive.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' );

/**
 * SSO support link.
 */
function jetpack_sso_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-sso' ) );
}
add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' );

/**
 * SSO description.
 */
function jetpack_sso_more_info() {
	esc_html_e(
		'Your users will be able to log in to your site with their WordPress.com account.
		This includes two-factor authentication making it the safest login mechanism for your site.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' );

/**
 * Monitor support link.
 */
function jetpack_monitor_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-monitor' ) );
}
add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' );

/**
 * Monitor description.
 */
function jetpack_monitor_more_info() {
	esc_html_e(
		'Jetpack checks your site every five minutes and if any downtime is detected you will receive an email
		notification alerting you to the issue, so you can act quickly and get your site back online.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' );

/**
 * Related Posts support link.
 */
function jetpack_related_posts_more_button() {
	echo esc_url( Redirect::get_url( 'jetpack-support-related-posts' ) );
}
add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' );

/**
 * Related Posts description.
 */
function jetpack_related_posts_more_info() {
	esc_html_e(
		'Show visitors related content from your site at the bottom of your posts. This encourages them
		to browse more content, explore your site, and transform them into regular readers.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' );

/**
 * Markdown support link.
 */
function jetpack_markdown_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-markdown' ) );
}
add_action( 'jetpack_learn_more_button_markdown', 'jetpack_markdown_more_link' );

/**
 * Markdown description.
 */
function jetpack_markdown_more_info() {
	esc_html_e(
		'Compose posts and comments with links, lists, and other styles using regular characters and
		punctuation marks. A quick and easy way to format text without needing any HTML or coding.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_markdown', 'jetpack_markdown_more_info' );

/**
 * Site Verification Tools support link.
 */
function jetpack_verification_tools_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-site-verification-tools' ) );
}
add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' );

/**
 * Site Verification Tools description.
 */
function jetpack_verification_tools_more_info() {
	esc_html_e(
		'Verify your site ownership with services like Google, Bing, Pinterest, Yandex, and Facebook. This gives you access to
		advanced features on these services and get verification badges.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' );

/**
 * SEO Tools support link.
 */
function jetpack_seo_tools_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-seo-tools' ) );
}
add_action( 'jetpack_learn_more_button_seo-tools', 'jetpack_seo_tools_more_link' );

/**
 * SEO Tools description.
 */
function jetpack_seo_tools_more_info() {
	esc_html_e(
		'Better results on search engines and social media.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_seo-tools', 'jetpack_seo_tools_more_info' );

/**
 * Custom Content Types support link.
 */
function jetpack_custom_content_types_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-custom-content-types' ) );
}
add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' );

/**
 * Custom Content Types description.
 */
function jetpack_custom_content_types_more_info() {
	esc_html_e(
		'Add and organize content that doesn’t necessarily fit into a post or static page such as portfolios
		or testimonials. Custom	content can be visible at specific URLs, or you may add them with shortcodes.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' );

/**
 * Manage support link.
 */
function jetpack_manage_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-site-management' ) );
}
add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' );

/**
 * Manage description.
 */
function jetpack_custom_jetpack_manage() {
	esc_html_e(
		'Manage and update this and other WordPress sites from one simple dashboard on WordPress.com. You can update
		plugins, set them to automatically update, and (de)activate them on a per-site basis or in bulk from
		wordpress.com/plugins. You can also use the brand new and mobile-friendly post editor on WordPress.com as well
		as view and activate installed themes and create or edit site menus.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' );

/**
 * Sitemaps support link.
 */
function jetpack_sitemaps_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-sitemaps' ) );
}
add_action( 'jetpack_learn_more_button_sitemaps', 'jetpack_sitemaps_more_link' );

/**
 * Sitemaps description.
 */
function jetpack_xml_sitemap_more_info() {
	esc_html_e(
		'Automatically create two sitemap files that list the URLs of posts and pages in your site.
		This makes it easier for search engines (like Google) to include your site in relevant search results.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_sitemaps', 'jetpack_xml_sitemap_more_info' );

/**
 * WordAds support link.
 */
function jetpack_wordads_more_link() {
	echo 'https://wordads.co/';
}
add_action( 'jetpack_learn_more_button_wordads', 'jetpack_wordads_more_link' );

/**
 * WordAds description.
 */
function jetpack_wordads_more_info() {
	esc_html_e(
		'By default ads are shown at the end of every page, post, or the first article on your front page. You can also add them to the top of your site and to any widget area to increase your earnings!',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_wordads', 'jetpack_wordads_more_info' );

/**
 * Google Analytics support link.
 */
function jetpack_google_analytics_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-google-analytics' ) );
}
add_action( 'jetpack_learn_more_button_google-analytics', 'jetpack_google_analytics_more_link' );

/**
 * Google Analytics description.
 */
function jetpack_google_analytics_more_info() {
	esc_html_e(
		'Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_google-analytics', 'jetpack_google_analytics_more_info' );

/**
 * WooCommerce Analytics support link.
 */
function jetpack_woocommerce_analytics_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-woocommerce-analytics' ) );
}
add_action( 'jetpack_learn_more_button_woocommerce-analytics', 'jetpack_woocommerce_analytics_more_link' );

/**
 * WooCommerce Analytics description.
 */
function jetpack_woocommerce_analytics_more_info() {
	esc_html_e(
		'Enhanced analytics for WooCommerce and Jetpack users.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_woocommerce-analytics', 'jetpack_woocommerce_analytics_more_info' );

/**
 * Search support link.
 */
function jetpack_search_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-search' ) );
}
add_action( 'jetpack_learn_more_button_search', 'jetpack_search_more_link' );

/**
 * Search description.
 */
function jetpack_search_more_info() {
	esc_html_e(
		'Help visitors quickly find answers with highly relevant instant search results and powerful filtering.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_search', 'jetpack_search_more_info' );

/**
 * Comment Likes support link.
 */
function jetpack_comment_likes_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-comment-likes' ) );
}
add_action( 'jetpack_learn_more_button_comment-likes', 'jetpack_comment_likes_more_link' );

/**
 * Comment Likes description.
 */
function jetpack_comment_likes_more_info() {
	esc_html_e(
		'Increase visitor engagement by adding a Like button to comments.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_comment-likes', 'jetpack_comment_likes_more_info' );

/**
 * Asset CDN support link.
 */
function jetpack_assetcdn_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-asset-cdn' ) );
}
add_action( 'jetpack_learn_more_button_photon-cdn', 'jetpack_assetcdn_more_link' );

/**
 * Asset CDN description.
 */
function jetpack_assetcdn_more_info() {
	esc_html_e(
		'Our asset CDN is a site acceleration service.
		That means that we host static assets like JavaScript and CSS shipped with WordPress Core and Jetpack from our servers, alleviating the load on your server.',
		'jetpack'
	);
}
add_action( 'jetpack_module_more_info_photon-cdn', 'jetpack_assetcdn_more_info' );

/**
 * Copy Post support link.
 */
function jetpack_copy_post_more_link() {
	echo esc_url( Redirect::get_url( 'jetpack-support-copy-post' ) );
}
add_action( 'jetpack_learn_more_button_copy-post', 'jetpack_copy_post_more_link' );

/**
 * Copy Post description.
 */
function jetpack_more_info_copy_post() {
	esc_html_e( 'Create a new post based on an existing post.', 'jetpack' );
}
add_action( 'jetpack_module_more_info_copy-post', 'jetpack_more_info_copy_post' );