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