|
@@ 760-770 (lines=11) @@
|
| 757 |
|
|
| 758 |
|
<p class="jetpack-search-filters-widget__post-types-select"> |
| 759 |
|
<label><?php esc_html_e( 'Post types to search (minimum of 1):', 'jetpack' ); ?></label> |
| 760 |
|
<?php foreach ( get_post_types( array( 'exclude_from_search' => false ), 'objects' ) as $post_type ) : ?> |
| 761 |
|
<label> |
| 762 |
|
<input |
| 763 |
|
type="checkbox" |
| 764 |
|
value="<?php echo esc_attr( $post_type->name ); ?>" |
| 765 |
|
name="<?php echo esc_attr( $this->get_field_name( 'post_types' ) ); ?>[]" |
| 766 |
|
<?php checked( empty( $instance['post_types'] ) || in_array( $post_type->name, $instance['post_types'] ) ); ?> |
| 767 |
|
/> |
| 768 |
|
<?php echo esc_html( $post_type->label ); ?> |
| 769 |
|
</label> |
| 770 |
|
<?php endforeach; ?> |
| 771 |
|
</p> |
| 772 |
|
|
| 773 |
|
<p> |
|
@@ 849-859 (lines=11) @@
|
| 846 |
|
<!-- Post types control --> |
| 847 |
|
<p class="jetpack-search-filters-widget__post-types-select"> |
| 848 |
|
<label><?php esc_html_e( 'Post types to search (minimum of 1):', 'jetpack' ); ?></label> |
| 849 |
|
<?php foreach ( get_post_types( array( 'exclude_from_search' => false ), 'objects' ) as $post_type ) : ?> |
| 850 |
|
<label> |
| 851 |
|
<input |
| 852 |
|
type="checkbox" |
| 853 |
|
value="<?php echo esc_attr( $post_type->name ); ?>" |
| 854 |
|
name="<?php echo esc_attr( $this->get_field_name( 'post_types' ) ); ?>[]" |
| 855 |
|
<?php checked( empty( $instance['post_types'] ) || in_array( $post_type->name, $instance['post_types'], true ) ); ?> |
| 856 |
|
/> |
| 857 |
|
<?php echo esc_html( $post_type->label ); ?> |
| 858 |
|
</label> |
| 859 |
|
<?php endforeach; ?> |
| 860 |
|
</p> |
| 861 |
|
|
| 862 |
|
<!-- Default sort order control --> |