| @@ 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 | ?> |
|
| @@ 598-607 (lines=10) @@ | ||
| 595 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 596 | array_unshift( $shows, 'index' ); |
|
| 597 | $global = $this->get_options(); |
|
| 598 | foreach ( $shows as $show ) : |
|
| 599 | if ( 'index' == $show ) { |
|
| 600 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 601 | } else { |
|
| 602 | $post_type_object = get_post_type_object( $show ); |
|
| 603 | $label = $post_type_object->labels->name; |
|
| 604 | } |
|
| 605 | ?> |
|
| 606 | <?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> |
|
| 607 | <?php $br = true; endforeach; ?> |
|
| 608 | </td> |
|
| 609 | <?php |
|
| 610 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|