|
@@ 394-398 (lines=5) @@
|
| 391 |
|
<label> |
| 392 |
|
<?php esc_html_e( 'Sort by', 'jetpack' ); ?> |
| 393 |
|
<select class="jetpack-search-sort"> |
| 394 |
|
<?php foreach ( $this->get_sort_types() as $sort => $label ) { ?> |
| 395 |
|
<option value="<?php echo esc_attr( $sort ); ?>" <?php selected( $current_sort, $sort ); ?>> |
| 396 |
|
<?php echo esc_html( $label ); ?> |
| 397 |
|
</option> |
| 398 |
|
<?php } ?> |
| 399 |
|
</select> |
| 400 |
|
</label> |
| 401 |
|
</div> |
|
@@ 783-787 (lines=5) @@
|
| 780 |
|
<select |
| 781 |
|
name="<?php echo esc_attr( $this->get_field_name( 'sort' ) ); ?>" |
| 782 |
|
class="widefat jetpack-search-filters-widget__sort-order"> |
| 783 |
|
<?php foreach ( $this->get_sort_types() as $sort_type => $label ) { ?> |
| 784 |
|
<option value="<?php echo esc_attr( $sort_type ); ?>" <?php selected( $instance['sort'], $sort_type ); ?>> |
| 785 |
|
<?php echo esc_html( $label ); ?> |
| 786 |
|
</option> |
| 787 |
|
<?php } ?> |
| 788 |
|
</select> |
| 789 |
|
</label> |
| 790 |
|
</p> |
|
@@ 873-877 (lines=5) @@
|
| 870 |
|
<select |
| 871 |
|
name="<?php echo esc_attr( $this->get_field_name( 'sort' ) ); ?>" |
| 872 |
|
class="widefat jetpack-search-filters-widget__sort-order"> |
| 873 |
|
<?php foreach ( $this->get_sort_types() as $sort_type => $label ) { ?> |
| 874 |
|
<option value="<?php echo esc_attr( $sort_type ); ?>" <?php selected( $instance['sort'], $sort_type ); ?>> |
| 875 |
|
<?php echo esc_html( $label ); ?> |
| 876 |
|
</option> |
| 877 |
|
<?php } ?> |
| 878 |
|
</select> |
| 879 |
|
</label> |
| 880 |
|
</p> |