@@ 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 */ |
@@ 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 |