| @@ 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 |
|
| @@ 675-684 (lines=10) @@ | ||
| 672 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 673 | array_unshift( $shows, 'index' ); |
|
| 674 | $global = $this->get_options(); |
|
| 675 | foreach ( $shows as $show ) : |
|
| 676 | if ( 'index' == $show ) { |
|
| 677 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 678 | } else { |
|
| 679 | $post_type_object = get_post_type_object( $show ); |
|
| 680 | $label = $post_type_object->labels->name; |
|
| 681 | } |
|
| 682 | ?> |
|
| 683 | <?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> |
|
| 684 | <?php $br = true; endforeach; ?> |
|
| 685 | </td> |
|
| 686 | <?php |
|
| 687 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|