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

@@ 138-146 (lines=9) @@
135
	 * @return html
136
	 */
137
	function setting_html() {
138
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
139
			<p><?php printf( /* translators: %s is the name of a custom post type such as "jetpack-portfolio" */ __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p>
140
		<?php else : ?>
141
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
142
				<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" />
143
				<?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?>
144
				<a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
145
			</label>
146
		<?php endif;
147
		if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) :
148
			printf( '<p><label for="%1$s">%2$s</label></p>',
149
				esc_attr( self::OPTION_READING_SETTING ),