| @@ 418-427 (lines=10) @@ | ||
| 415 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 416 | array_unshift( $shows, 'index' ); |
|
| 417 | $global = $this->get_options(); |
|
| 418 | foreach ( $shows as $show ) : |
|
| 419 | if ( 'index' == $show ) { |
|
| 420 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 421 | } else { |
|
| 422 | $post_type_object = get_post_type_object( $show ); |
|
| 423 | $label = $post_type_object->labels->name; |
|
| 424 | } |
|
| 425 | ?> |
|
| 426 | <?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> |
|
| 427 | <?php $br = true; endforeach; ?> |
|
| 428 | </td> |
|
| 429 | <?php |
|
| 430 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|
| @@ 371-380 (lines=10) @@ | ||
| 368 | <td> |
|
| 369 | <?php |
|
| 370 | $br = false; |
|
| 371 | foreach ( $shows as $show ) : |
|
| 372 | if ( 'index' == $show ) { |
|
| 373 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 374 | } else { |
|
| 375 | $post_type_object = get_post_type_object( $show ); |
|
| 376 | $label = $post_type_object->labels->name; |
|
| 377 | } |
|
| 378 | ?> |
|
| 379 | <?php |
|
| 380 | if ( $br ) { |
|
| 381 | echo '<br />'; |
|
| 382 | } |
|
| 383 | ?> |
|