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