Code Duplication    Length = 10-17 lines in 5 locations

modules/module-info.php 5 locations

@@ 144-155 (lines=12) @@
141
}
142
add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' );
143
144
function wpme_more_info() { ?>
145
	<div class="jp-info-img">
146
		<a href="http://wp.me/sf2B5-shorten" target="_blank">
147
			<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" />
148
		</a>
149
	</div>
150
151
	<p><?php esc_html_e( "Instead of typing or copy-pasting long URLs, you can now get a short and simple link to your posts and pages. This uses the super compact wp.me domain name, and gives you a unique URL you can use that will be safe and reliable.", 'jetpack' ) ?></p>
152
	<p><?php esc_html_e( "It&#8217;s perfect for use on Twitter, Facebook, and cell phone text messages where every character counts.", 'jetpack' ) ?></p>
153
	<p><?php esc_html_e( "To use shortlinks, go to any already published post (or publish something new!). A &#8220;Get Shortlink&#8221; button will be visible under the Post title. When you click it, a dialog box will appear with the shortlink and you can copy and paste to Twitter, Facebook or wherever your heart desires.", 'jetpack' ) ?></p>
154
<?php
155
}
156
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' );
157
158
/**
@@ 166-176 (lines=11) @@
163
}
164
add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' );
165
166
function stats_more_info() { ?>
167
	<div class="jp-info-img">
168
		<a href="http://en.support.wordpress.com/stats/" target="_blank">
169
			<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" />
170
		</a>
171
	</div>
172
173
	<p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. Site Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p>
174
	<p><?php printf( __( 'You can <a href="%s">view your stats dashboard here</a>.', 'jetpack' ), admin_url( 'admin.php?page=stats' ) ); ?></p>
175
<?php
176
}
177
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' );
178
179
/**
@@ 504-520 (lines=17) @@
501
}
502
add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' );
503
504
function jetpack_custom_css_more_info() { ?>
505
	<div class="jp-info-img">
506
		<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" />
507
	</div>
508
509
	<p><?php esc_html_e( "The Custom CSS editor gives you the ability to add to or replace your theme's CSS, all while supplying syntax coloring, auto-indentation, and immediate feedback on the validity of the CSS you're writing.", 'jetpack' ); ?></p>
510
511
	<?php if ( Jetpack::is_module_active( 'custom-css' ) ) : ?>
512
513
		<p><?php printf( __( 'To use the CSS editor, go to Appearance &#8594; <a href="%s">Edit CSS</a>.', 'jetpack' ), admin_url( 'themes.php?page=editcss' ) ); ?></p>
514
515
	<?php else : ?>
516
517
		<p><?php esc_html_e( 'After activating this module, find the editor in Appearance &#8594; Edit CSS.', 'jetpack' ); ?></p>
518
519
	<?php endif;
520
}
521
add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' );
522
523
/**
@@ 593-605 (lines=13) @@
590
}
591
add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' );
592
593
function jetpack_post_by_email_more_info() { ?>
594
	<div class="jp-info-img">
595
		<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" />
596
	</div>
597
598
	<p><?php esc_html_e( 'Post by Email is a way of publishing posts on your blog by email. Any email client can be used to send the email, allowing you to publish quickly and easily from devices such as cell phones.', 'jetpack' ); ?></p>
599
600
	<p><?php printf( __( 'Manage your Post By Email address from your <a href="%s">profile settings</a>.', 'jetpack' ), esc_url( get_edit_profile_url( get_current_user_id() ) . '#post-by-email' ) ); ?>
601
602
	<p>&rarr; <a href="http://jetpack.com/support/post-by-email/" target="_blank"><?php esc_html_e( 'More information on sending emails, attachments, and customizing your posts.', 'jetpack' ); ?></a></p>
603
604
<?php
605
}
606
add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' );
607
608
/**
@@ 630-639 (lines=10) @@
627
}
628
add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' );
629
630
function jetpack_tiled_gallery_more_info() { ?>
631
	<div class="jp-info-img">
632
		<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" />
633
	</div>
634
635
	<p><?php esc_html_e( 'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphic editor.', 'jetpack' ); ?></p>
636
	<p><?php printf( __( 'When adding a gallery to your post, you now have the option to select a layout style for your images. We\'ve added support for Rectangular, Square, and Circular galleries. By default, galleries will continue to display using the standard thumbnail grid layout. To make the rectangular layout the default for all of your site\'s galleries, head over to <a href="%s">Settings &rarr; Media</a> and check the box next to "Display all your gallery pictures in a cool mosaic."', 'jetpack' ), admin_url( 'options-media.php' ) ); ?></p>
637
	<p><em><?php esc_html_e( 'Note: Images in tiled galleries require extra-special processing, so they will be served from WordPress.com\'s CDN even if the Photon module is disabled.', 'jetpack' ); ?></em></p>
638
<?php
639
}
640
add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' );
641
642
/**