columns
3 months ago
create-modal
1 year ago
edit-modal
2 months ago
bulk-edit.php
1 year ago
filters.php
3 months ago
quick-edit.php
1 year ago
filters.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Filter placement types. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.50.0 |
| 8 | * |
| 9 | * @var string $current_type Currently filtered placement type. |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | <label class="screen-reader-text" for="advads_filter_placement_type"> |
| 14 | <?php esc_html_e( 'Placement Type', 'advanced-ads' ); ?> |
| 15 | </label> |
| 16 | <select class="advads_filter_placement_type" id="advads_filter_placement_type" name="placement-type"> |
| 17 | <option value=""><?php esc_html_e( '- show all types -', 'advanced-ads' ); ?></option> |
| 18 | <?php |
| 19 | $types = wp_advads_get_placement_type_manager()->get_dropdown_options(); |
| 20 | foreach ( $types as $id => $title ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited |
| 21 | ?> |
| 22 | <option value="<?php echo esc_attr( $id ); ?>"<?php selected( $id, $current_type ); ?>> |
| 23 | <?php echo esc_html( $title ); ?> |
| 24 | </option> |
| 25 | <?php endforeach; ?> |
| 26 | </select> |
| 27 |