| @@ 357-366 (lines=10) @@ | ||
| 354 | <td> |
|
| 355 | <?php |
|
| 356 | $br = false; |
|
| 357 | foreach ( $shows as $show ) : |
|
| 358 | if ( 'index' == $show ) { |
|
| 359 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 360 | } else { |
|
| 361 | $post_type_object = get_post_type_object( $show ); |
|
| 362 | $label = $post_type_object->labels->name; |
|
| 363 | } |
|
| 364 | ?> |
|
| 365 | <?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> |
|
| 366 | <?php $br = true; endforeach; ?> |
|
| 367 | </td> |
|
| 368 | <?php |
|
| 369 | /** |
|
| @@ 437-446 (lines=10) @@ | ||
| 434 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 435 | array_unshift( $shows, 'index' ); |
|
| 436 | $global = $this->get_options(); |
|
| 437 | foreach ( $shows as $show ) : |
|
| 438 | if ( 'index' == $show ) { |
|
| 439 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 440 | } else { |
|
| 441 | $post_type_object = get_post_type_object( $show ); |
|
| 442 | $label = $post_type_object->labels->name; |
|
| 443 | } |
|
| 444 | ?> |
|
| 445 | <?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> |
|
| 446 | <?php $br = true; endforeach; ?> |
|
| 447 | </td> |
|
| 448 | <?php |
|
| 449 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|