| @@ 587-596 (lines=10) @@ | ||
| 584 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 585 | array_unshift( $shows, 'index' ); |
|
| 586 | $global = $this->get_options(); |
|
| 587 | foreach ( $shows as $show ) : |
|
| 588 | if ( 'index' == $show ) { |
|
| 589 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 590 | } else { |
|
| 591 | $post_type_object = get_post_type_object( $show ); |
|
| 592 | $label = $post_type_object->labels->name; |
|
| 593 | } |
|
| 594 | ?> |
|
| 595 | <?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> |
|
| 596 | <?php $br = true; endforeach; ?> |
|
| 597 | </td> |
|
| 598 | <?php |
|
| 599 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|
| @@ 379-388 (lines=10) @@ | ||
| 376 | <td> |
|
| 377 | <?php |
|
| 378 | $br = false; |
|
| 379 | foreach ( $shows as $show ) : |
|
| 380 | if ( 'index' == $show ) { |
|
| 381 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 382 | } else { |
|
| 383 | $post_type_object = get_post_type_object( $show ); |
|
| 384 | $label = $post_type_object->labels->name; |
|
| 385 | } |
|
| 386 | ?> |
|
| 387 | <?php |
|
| 388 | if ( $br ) { |
|
| 389 | echo '<br />'; |
|
| 390 | } |
|
| 391 | ?> |
|