Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 126-134 (lines=9) @@
123
	 * @return html
124
	 */
125
	function setting_html() {
126
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
127
			<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>
128
		<?php else : ?>
129
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
130
				<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" />
131
				<?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?>
132
				<a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
133
			</label>
134
		<?php endif;
135
		if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) :
136
			printf( '<p><label for="%1$s">%2$s</label></p>',
137
				esc_attr( self::OPTION_READING_SETTING ),

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

@@ 154-162 (lines=9) @@
151
	 * @return html
152
	 */
153
	function setting_html() {
154
		if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?>
155
			<p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p>
156
		<?php else : ?>
157
			<label for="<?php echo esc_attr( self::OPTION_NAME ); ?>">
158
				<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" />
159
				<?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?>
160
				<a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
161
			</label>
162
		<?php endif;
163
164
		if ( $this->site_supports_custom_post_type() ) :
165
			printf( '<p><label for="%1$s">%2$s</label></p>',