@@ 414-430 (lines=17) @@ | ||
411 | <td> |
|
412 | <?php |
|
413 | $br = false; |
|
414 | foreach ( $shows as $show ) : |
|
415 | if ( 'index' == $show ) { |
|
416 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
417 | } else { |
|
418 | $post_type_object = get_post_type_object( $show ); |
|
419 | $label = $post_type_object->labels->name; |
|
420 | } |
|
421 | ?> |
|
422 | <?php |
|
423 | if ( $br ) { |
|
424 | echo '<br />'; |
|
425 | } |
|
426 | ?> |
|
427 | <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> |
|
428 | <?php |
|
429 | $br = true; |
|
430 | endforeach; |
|
431 | ?> |
|
432 | </td> |
|
433 | <?php |
@@ 676-685 (lines=10) @@ | ||
673 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
674 | array_unshift( $shows, 'index' ); |
|
675 | $global = $this->get_options(); |
|
676 | foreach ( $shows as $show ) : |
|
677 | if ( 'index' == $show ) { |
|
678 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
679 | } else { |
|
680 | $post_type_object = get_post_type_object( $show ); |
|
681 | $label = $post_type_object->labels->name; |
|
682 | } |
|
683 | ?> |
|
684 | <?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> |
|
685 | <?php $br = true; endforeach; ?> |
|
686 | </td> |
|
687 | <?php |
|
688 | /** This action is documented in modules/sharedaddy/sharing.php */ |