Code Duplication    Length = 10-17 lines in 20 locations

modules/module-info.php 20 locations

@@ 44-56 (lines=13) @@
41
}
42
add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' );
43
44
function grofiles_more_info() { ?>
45
	<div class="jp-info-img">
46
		<a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/" target="_blank">
47
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/hovercards.jpg' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" />
48
		</a>
49
	</div>
50
51
	<?php esc_html_e(
52
		'Hovercards enhance plain Gravatar images with information about a person, including a name,
53
		bio, pictures, and contact info. Hovercards will appear when you hover over the user image
54
		associated with a comment on any of your blog posts.'
55
		, 'jetpack' );
56
}
57
add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' );
58
59
/**
@@ 67-80 (lines=14) @@
64
}
65
add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' );
66
67
function jetpack_shortcodes_more_info() { ?>
68
	<div class="jp-info-img">
69
		<a href="http://en.support.wordpress.com/shortcodes/" target="_blank">
70
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortcodes.jpg' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" />
71
		</a>
72
	</div>
73
74
	<?php esc_html_e(
75
		'Shortcodes allow you to easily and safely embed media from other places in your site.
76
		With one simple code, you can tell your site to embed media from YouTube, Facebook, Flickr, Vimeo, Instagram,
77
		Google Maps, SlideShare, Vine, SoundCloud, and more. Just enter the appropriate shortcode directly into the
78
		Post/Page editor and click “Publish.”'
79
		, 'jetpack' );
80
}
81
add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' );
82
83
/**
@@ 91-103 (lines=13) @@
88
}
89
add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );
90
91
function wpme_more_info() { ?>
92
	<div class="jp-info-img">
93
		<a href="http://wp.me/sf2B5-shorten" target="_blank">
94
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortlinks.jpg' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" />
95
		</a>
96
	</div>
97
98
	<?php esc_html_e(
99
		'Instead of typing or copy-pasting long URLs, you can grab short and simple links to your posts and pages.
100
		This uses the compact wp.me domain name, and gives you a unique URL that is safe and reliable. It’s perfect
101
		for use on Twitter, Facebook, and in text messages where every character counts.'
102
		, 'jetpack' );
103
}
104
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );
105
106
/**
@@ 114-126 (lines=13) @@
111
}
112
add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );
113
114
function stats_more_info() { ?>
115
	<div class="jp-info-img">
116
		<a href="http://en.support.wordpress.com/stats/" target="_blank">
117
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/stats.jpg' ) ?>" alt="<?php esc_attr_e( 'Site Stats', 'jetpack' ) ?>" width="300" height="150" />
118
		</a>
119
	</div>
120
121
	<?php esc_html_e(
122
		'There are many plugins and services that provide statistics, but data can be overwhelming! Site Stats makes
123
		the most popular metrics easy to understand through a clear and attractive interface. You can see what visitors
124
		are reading, where they’re coming from, and what will bring them back -- all in one place.'
125
		, 'jetpack' );
126
}
127
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );
128
129
/**
@@ 137-149 (lines=13) @@
134
}
135
add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' );
136
137
function publicize_more_info() { ?>
138
	<div class="jp-info-img">
139
		<a href="http://en.support.wordpress.com/publicize/" target="_blank">
140
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/publicize.jpg' ) ?>" alt="<?php esc_attr_e( 'Publicize', 'jetpack' ) ?>" width="328" height="123" />
141
		</a>
142
	</div>
143
144
	<?php esc_html_e(
145
		'Publicize allows you to connect your site to social networks like Facebook, Twitter, Tumblr, Google+, Path,
146
		and LinkedIn and automatically share new posts with your friends and followers. You can add connections for
147
		yourself or for all users on your site.'
148
		, 'jetpack' );
149
}
150
add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' );
151
152
/**
@@ 160-172 (lines=13) @@
157
}
158
add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' );
159
160
function notes_more_info() { ?>
161
	<div class="jp-info-img">
162
		<a href="http://support.wordpress.com/notifications/" target="_blank">
163
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/notes.jpg' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" />
164
		</a>
165
	</div>
166
167
	<?php esc_html_e(
168
		'Keep up with the latest interactions on all of your WordPress sites and view and reply to comments as soon as
169
		possible. You can keep the conversation going from the admin bar in your dashboard or right from your mobile
170
		device so you don’t miss a thing.'
171
		, 'jetpack' );
172
}
173
add_filter( 'jetpack_module_more_info_notes', 'notes_more_info' );
174
175
/**
@@ 183-199 (lines=17) @@
180
}
181
add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' );
182
183
function latex_more_info() { ?>
184
	<div class="jp-info-img">
185
		<a href="http://support.wordpress.com/latex/" target="_blank">
186
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/beautifulmath.jpg' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" />
187
		</a>
188
	</div>
189
190
	<?php printf( esc_html__(
191
		'%1$s is a powerful markup language for writing complex mathematical equations and formulas.
192
		Jetpack combines the power of %1$s and the simplicity of WordPress to give you the ultimate
193
		in math blogging platforms. Use $latex your latex code here$ or [latex]your latex code here[/latex]
194
		to include  in your posts and comments. Enjoy all sorts of options and embrace your inner nerd.'
195
		, 'jetpack' )
196
		, '<a href="http://www.latex-project.org/" target="_blank"><img src="//s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=transparent&amp;fg=000&amp;s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>'
197
	); ?>
198
<?php
199
}
200
add_action( 'jetpack_module_more_info_latex', 'latex_more_info' );
201
202
/**
@@ 231-242 (lines=12) @@
228
}
229
add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' );
230
231
function jpatd_more_info() { ?>
232
	<div class="jp-info-img">
233
		<a href="http://en.support.wordpress.com/proofreading/" target="_blank">
234
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/spelling.jpg' ) ?>" alt="<?php esc_attr_e( 'Spelling and Grammar', 'jetpack' ) ?>" width="300" height="150" />
235
		</a>
236
	</div>
237
238
	<?php esc_html_e(
239
		'The After the Deadline proofreading service improves your writing by using artificial intelligence to
240
		find spelling and grammatical errors and offers smart suggestions.'
241
		, 'jetpack' );
242
}
243
add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' );
244
245
/**
@@ 253-263 (lines=11) @@
250
}
251
add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' );
252
253
function jetpack_widgets_more_info() { ?>
254
	<div class="jp-info-img">
255
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/widgets.jpg' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" />
256
	</div>
257
	<?php esc_html_e(
258
		'Show your visitors a variety of useful content within your sidebar, including your latest tweets,
259
		a Facebook like box, custom images, your Gravatar image and profile data, a tiled gallery,
260
		recent posts from another WordPress site, or popular social icons.
261
		You can add as many as you like by dragging and dropping and customize each to fit your needs.'
262
		, 'jetpack' );
263
}
264
add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' );
265
266
/**
@@ 274-284 (lines=11) @@
271
}
272
add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' );
273
274
function jetpack_subscriptions_more_info() { ?>
275
	<div class="jp-info-img">
276
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/subscriptions.jpg' ) ?>" alt="<?php esc_attr_e( 'Subsriptions Screenshot', 'jetpack' ) ?>" width="300" height="150" />
277
	</div>
278
279
	<?php esc_html_e(
280
		'Allow any visitor to subscribe to your site through a widget in your sidebar. Each time you publish new content,
281
		Jetpack will email a notification to all of your subscribers. When leaving comments, your visitors can also
282
		subscribe to a post’s comments to keep up with the conversation.'
283
		, 'jetpack' );
284
}
285
add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' );
286
287
/**
@@ 350-362 (lines=13) @@
347
}
348
add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' );
349
350
function jetpack_contact_form_more_info() { ?>
351
	<div class="jp-info-img">
352
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/contactform.jpg' ) ?>" alt="<?php esc_attr_e( 'Contact Form', 'jetpack' ) ?>" width="300" height="150" />
353
	</div>
354
355
	<?php esc_html_e(
356
		'Offer your readers the ability to get in touch without publishing your personal email address.
357
		You can have multiple forms on your site and customize each one to fit specific needs.
358
		When a user submits your contact form, their feedback will be emailed to you and added to
359
		your feedback management area. If you have Akismet active on your site, submissions will be
360
		automatically filtered for spam. '
361
		, 'jetpack' );
362
}
363
add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' );
364
365
@@ 374-384 (lines=11) @@
371
}
372
add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' );
373
374
function jetpack_comments_more_info() { ?>
375
	<div class="jp-info-img">
376
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/comments.jpg' ) ?>" alt="<?php esc_attr_e( 'Comments Screenshot', 'jetpack' ) ?>" width="300" height="150" />
377
	</div>
378
379
	<?php esc_html_e(
380
		'Comments enables your visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on
381
		your site. Jetpack tries to match your site\'s color scheme automatically, but you can make manual adjustments
382
		at the bottom of the Discussion Settings page.'
383
		, 'jetpack' );
384
}
385
add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' );
386
387
/**
@@ 395-405 (lines=11) @@
392
}
393
add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' );
394
395
function jetpack_carousel_more_info() { ?>
396
	<div class="jp-info-img">
397
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/carousel.jpg' ) ?>" alt="<?php esc_attr_e( 'Gallery Carousel Screenshot', 'jetpack' ) ?>" width="300" height="188" />
398
	</div>
399
400
	<?php esc_html_e(
401
		'With Carousel active, any standard WordPress galleries you have embedded in posts or pages will
402
		launch a full-screen photo browsing experience with comments and EXIF metadata.'
403
		, 'jetpack' ); ?>
404
<?php
405
}
406
add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' );
407
408
/**
@@ 416-425 (lines=10) @@
413
}
414
add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );
415
416
function jetpack_custom_css_more_info() { ?>
417
	<div class="jp-info-img">
418
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-css.jpg' ) ?>" alt="<?php esc_attr_e( 'Custom CSS', 'jetpack' ) ?>" width="300" height="150" />
419
	</div>
420
	<?php esc_html_e(
421
		"The Custom CSS editor lets you add to or replace your theme's CSS, while supplying syntax coloring,
422
		auto-indentation, and immediate feedback on the validity of the CSS you're writing.
423
		You can also add mobile styles, and we support the CSS preprocessors LESS and Sass."
424
		, 'jetpack' );
425
}
426
add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );
427
428
/**
@@ 436-449 (lines=14) @@
433
}
434
add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' );
435
436
function jetpack_minileven_more_info() { ?>
437
	<div class="jp-info-img">
438
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/mobile-theme.jpg' ) ?>" alt="<?php esc_attr_e( 'Mobile Theme', 'jetpack' ) ?>" width="300" height="150" />
439
	</div>
440
441
	<?php esc_html_e(
442
		"There's a good chance that visitors to your site will be using a smartphone,
443
		and it's important to provide them with a great reading experience while on the small screen.
444
		Visitors on iPhone, Android, Windows Phone, and other mobile devices will automatically see your site
445
		optimized for mobile with an option to view the full site. Jetpack's mobile theme uses the header image,
446
		background, and widgets from your current theme for a beautiful mobile look. Post format support is included,
447
		so your photos and galleries will also look fantastic."
448
		, 'jetpack' );
449
}
450
add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' );
451
452
/**
@@ 478-488 (lines=11) @@
475
}
476
add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );
477
478
function jetpack_post_by_email_more_info() { ?>
479
	<div class="jp-info-img">
480
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/post-by-email.jpg' ) ?>" alt="<?php esc_attr_e( 'Post by Email', 'jetpack' ) ?>" width="300" height="115" />
481
	</div>
482
483
	<?php esc_html_e(
484
		'With Post by Email, you can publish posts on your site by sending an email instead of using the post editor.
485
		Any email client can be used to send the email (such as GMail, Outlook, and Apple Mail), which allows you to
486
		publish on the go right from your smartphone or tablet.'
487
		, 'jetpack' );
488
}
489
add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );
490
491
/**
@@ 518-528 (lines=11) @@
515
}
516
add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' );
517
518
function jetpack_tiled_gallery_more_info() { ?>
519
	<div class="jp-info-img">
520
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/tiled-gallery.jpg' ) ?>" alt="<?php esc_attr_e( 'Tiled Galleries', 'jetpack' ) ?>" width="300" height="150" />
521
	</div>
522
523
	<?php esc_html_e(
524
		'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphics editor.
525
		When adding a gallery to your post, you will have the option to select a layout style for your images
526
		including mosaic, square, and circular layouts. You can also choose to make all galleries display as mosaic by default.'
527
		, 'jetpack' );
528
}
529
add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' );
530
531
/**
@@ 539-551 (lines=13) @@
536
}
537
add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' );
538
539
function jetpack_likes_more_info() { ?>
540
	<div class="jp-info-img">
541
		<a href="http://jetpack.com/support/likes/" target="_blank">
542
			<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/likes.jpg' ) ?>" alt="<?php esc_attr_e( 'Likes', 'jetpack' ) ?>" width="323" height="69" />
543
		</a>
544
	</div>
545
546
	<?php esc_html_e(
547
		'Likes allow your readers to show their appreciation for your posts and other published content using their
548
		WordPress.com accounts. You will see your likes below each post, as well as the Gravatars of the people who
549
		have liked them. Your readers will also be able to review their liked posts from WordPress.com.'
550
		, 'jetpack' );
551
}
552
add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' );
553
554
/**
@@ 701-712 (lines=12) @@
698
}
699
add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' );
700
701
function jetpack_custom_content_types_more_info() { ?>
702
	<div class="jp-info-img">
703
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-content-types.jpg' ) ?>" alt="<?php esc_attr_e( 'Custom Content Type', 'jetpack' ) ?>" width="300" height="150" />
704
	</div>
705
706
	<?php esc_html_e(
707
		'This feature allows you to add and organize content that doesn’t necessarily fit into a post or static page.
708
		For example, the Portfolio type gives you an easy way to manage and showcase projects on your site, while the
709
		Testimonial type allows you to add, organize, and display customer testimonials. Once created, your custom
710
		content can be visible at specific URLs, or you may add them with shortcodes.'
711
		, 'jetpack' );
712
}
713
add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' );
714
715
/**
@@ 736-747 (lines=12) @@
733
}
734
add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' );
735
736
function jetpack_custom_jetpack_manage() { ?>
737
	<div class="jp-info-img">
738
		<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/manage.jpg' ) ?>" alt="<?php esc_attr_e( 'Manage all of your WordPress sites, self-hosted or not, from WordPress.com', 'jetpack' ) ?>" width="300" height="150" />
739
	</div>
740
741
	<?php esc_html_e(
742
		'Manage and update this and other WordPress sites from one simple dashboard on WordPress.com. You can update
743
		plugins, set them to automatically update, and (de)activate them on a per-site basis or in bulk from
744
		wordpress.com/plugins. You can also use the brand new and mobile-friendly post editor on WordPress.com as well
745
		as view and activate installed themes and create or edit site menus.'
746
		, 'jetpack' );
747
}
748
add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' );
749
750
// XML Sitemap: START