ads
1 year ago
metaboxes
1 year ago
placements
1 year ago
screens
1 year ago
settings
1 year ago
tables
1 year ago
tools
1 year ago
ui
1 year ago
upgrades
1 year ago
widgets
1 year ago
bulk-edit.php
1 year ago
feedback-disable.php
1 year ago
header.php
1 year ago
index.php
2 years ago
manual-link.php
1 year ago
page-bulk-edit.php
1 year ago
page-quick-edit.php
1 year ago
quick-edit.php
1 year ago
screen-options.php
1 year ago
welcome-box.php
1 year ago
screen-options.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Screen Options for ads & placements list |
| 4 | * #list-view-mode needs to be here to fix an issue were the list view mode cannot be reset automatically. Saving the form again does that. |
| 5 | * |
| 6 | * @package AdvancedAds |
| 7 | * @author Advanced Ads <info@wpadvancedads.com> |
| 8 | * @since 1.47.0 |
| 9 | * |
| 10 | * @var array $optional_filters All available filters. |
| 11 | * @var bool $is_filter_permanent Show filters permanently. |
| 12 | */ |
| 13 | |
| 14 | ?> |
| 15 | <input id="list-view-mode" type="hidden" name="mode" value="list"> |
| 16 | <input type="hidden" name="advanced-ads-screen-options[screen-id]" value="<?php echo esc_attr( get_current_screen()->id ); ?>"> |
| 17 | |
| 18 | <fieldset class="metabox-prefs advads-show-filter"> |
| 19 | <legend><?php esc_html_e( 'Filters', 'advanced-ads' ); ?></legend> |
| 20 | <?php if ( ! empty( $optional_filters ) ) : ?> |
| 21 | <?php foreach ( $optional_filters as $filter_key => $filter ) : ?> |
| 22 | <input id="advads-so-filters-<?php echo esc_attr( $filter_key ); ?>" type="checkbox" name="advanced-ads-screen-options[filters_to_show][]" value="<?php echo esc_attr( $filter_key ); ?>" <?php checked( in_array( $filter_key, $selected_filters, true ) ); ?> /> |
| 23 | <label for="advads-so-filters-<?php echo esc_attr( $filter_key ); ?>"><?php echo esc_html( $filter ); ?></label> |
| 24 | <?php endforeach; ?> |
| 25 | <br><br> |
| 26 | <?php endif; ?> |
| 27 | <input id="advads-so-show-filters" type="checkbox" name="advanced-ads-screen-options[show-filters]" value="true" <?php checked( $is_filter_permanent ); ?> /> |
| 28 | <label for="advads-so-show-filters"><?php esc_html_e( 'Show filters permanently', 'advanced-ads' ); ?></label> |
| 29 | </fieldset> |
| 30 |