Code Duplication    Length = 9-9 lines in 2 locations

modules/custom-post-types/testimonial.php 1 location

@@ 149-157 (lines=9) @@
146
	 * @return html
147
	 */
148
	function setting_html() {
149
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
150
			<p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p>
151
		<?php else : ?>
152
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
153
				<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
154
				<?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?>
155
				<a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
156
			</label>
157
		<?php endif;
158
159
		if ( $this->site_supports_custom_post_type() ) :
160
			printf( '<p><label for="%1$s">%2$s</label></p>',

modules/custom-post-types/portfolios.php 1 location

@@ 122-130 (lines=9) @@
119
	 * @return html
120
	 */
121
	function setting_html() {
122
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
123
			<p><?php printf( __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p>
124
		<?php else : ?>
125
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
126
				<input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" />
127
				<?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?>
128
				<a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
129
			</label>
130
		<?php endif;
131
		if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) :
132
			printf( '<p><label for="%1$s">%2$s</label></p>',
133
				esc_attr( self::OPTION_READING_SETTING ),