Code Duplication    Length = 10-17 lines in 2 locations

modules/sharedaddy/sharing.php 1 location

@@ 409-425 (lines=17) @@
406
							<td>
407
								<?php
408
								$br = false;
409
								foreach ( $shows as $show ) :
410
									if ( 'index' == $show ) {
411
										$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
412
									} else {
413
										$post_type_object = get_post_type_object( $show );
414
										$label = $post_type_object->labels->name;
415
									}
416
								?>
417
								<?php
418
								if ( $br ) {
419
									echo '<br />';
420
								}
421
								?>
422
								<label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
423
								<?php
424
								$br = true;
425
								endforeach;
426
								?>
427
							</td>
428
					<?php

modules/likes/jetpack-likes-settings.php 1 location

@@ 660-669 (lines=10) @@
657
			$shows = array_values( get_post_types( array( 'public' => true ) ) );
658
			array_unshift( $shows, 'index' );
659
			$global = $this->get_options();
660
			foreach ( $shows as $show ) :
661
				if ( 'index' == $show ) {
662
					$label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' );
663
				} else {
664
					$post_type_object = get_post_type_object( $show );
665
					$label = $post_type_object->labels->name;
666
				}
667
				?>
668
				<?php if ( $br ) echo '<br />'; ?><label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
669
				<?php	$br = true; endforeach; ?>
670
		</td>
671
		<?php
672
		/** This action is documented in modules/sharedaddy/sharing.php */