| @@ 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 | /** |
|
| @@ 420-429 (lines=10) @@ | ||
| 417 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
| 418 | array_unshift( $shows, 'index' ); |
|
| 419 | $global = $this->get_options(); |
|
| 420 | foreach ( $shows as $show ) : |
|
| 421 | if ( 'index' == $show ) { |
|
| 422 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
| 423 | } else { |
|
| 424 | $post_type_object = get_post_type_object( $show ); |
|
| 425 | $label = $post_type_object->labels->name; |
|
| 426 | } |
|
| 427 | ?> |
|
| 428 | <?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> |
|
| 429 | <?php $br = true; endforeach; ?> |
|
| 430 | </td> |
|
| 431 | <?php |
|
| 432 | /** This action is documented in modules/sharedaddy/sharing.php */ |
|