| @@ 613-622 (lines=10) @@ | ||
| 610 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 611 | array_unshift( $shows, 'index' ); |
|
| 612 | $global = $this->get_options(); |
|
| 613 | foreach ( $shows as $show ) : |
|
| 614 | if ( 'index' == $show ) { |
|
| 615 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 616 | } else { |
|
| 617 | $post_type_object = get_post_type_object( $show ); |
|
| 618 | $label = $post_type_object->labels->name; |
|
| 619 | } |
|
| 620 | ?> |
|
| 621 | <?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> |
|
| 622 | <?php $br = true; endforeach; ?> |
|
| 623 | </td> |
|
| 624 | <?php |
|
| 625 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|
| @@ 398-407 (lines=10) @@ | ||
| 395 | <td> |
|
| 396 | <?php |
|
| 397 | $br = false; |
|
| 398 | foreach ( $shows as $show ) : |
|
| 399 | if ( 'index' == $show ) { |
|
| 400 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 401 | } else { |
|
| 402 | $post_type_object = get_post_type_object( $show ); |
|
| 403 | $label = $post_type_object->labels->name; |
|
| 404 | } |
|
| 405 | ?> |
|
| 406 | <?php |
|
| 407 | if ( $br ) { |
|
| 408 | echo '<br />'; |
|
| 409 | } |
|
| 410 | ?> |
|