@@ 613-622 (lines=10) @@ | ||
610 | $shows = array_values( get_post_types( array( 'public' => true ) ) ); |
|
611 | array_unshift( $shows, 'index' ); |
|
612 | $global = $this->get_options(); |
|
613 | foreach ( $shows as $show ) : |
|
614 | if ( 'index' == $show ) { |
|
615 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
616 | } else { |
|
617 | $post_type_object = get_post_type_object( $show ); |
|
618 | $label = $post_type_object->labels->name; |
|
619 | } |
|
620 | ?> |
|
621 | <?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> |
|
622 | <?php $br = true; endforeach; ?> |
|
623 | </td> |
|
624 | <?php |
|
625 | /** This action is documented in modules/sharedaddy/sharing.php */ |
@@ 387-396 (lines=10) @@ | ||
384 | <td> |
|
385 | <?php |
|
386 | $br = false; |
|
387 | foreach ( $shows as $show ) : |
|
388 | if ( 'index' == $show ) { |
|
389 | $label = __( 'Front Page, Archive Pages, and Search Results', 'jetpack' ); |
|
390 | } else { |
|
391 | $post_type_object = get_post_type_object( $show ); |
|
392 | $label = $post_type_object->labels->name; |
|
393 | } |
|
394 | ?> |
|
395 | <?php |
|
396 | if ( $br ) { |
|
397 | echo '<br />'; |
|
398 | } |
|
399 | ?> |