ads
3 months ago
groups
1 week ago
metaboxes
1 year ago
placements
2 months ago
screens
3 months ago
settings
1 year ago
support
2 months ago
tables
1 week ago
tools
1 week ago
upgrades
1 year ago
widgets
1 week ago
bulk-edit.php
3 months ago
feedback-disable.php
1 year ago
header-tabs.php
3 months ago
header.php
3 months 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
2 months ago
screen-options.php
3 months ago
table-views-list.php
3 months ago
welcome-box.php
1 year ago
bulk-edit.php
75 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Bulk edit fields |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 2.0 |
| 8 | * |
| 9 | * @var array $privacy_options privacy module options. |
| 10 | */ |
| 11 | |
| 12 | global $wp_locale; |
| 13 | |
| 14 | use AdvancedAds\Options; |
| 15 | use AdvancedAds\Admin\Ads\Quick_Bulk_Edit; |
| 16 | |
| 17 | ?> |
| 18 | <fieldset class="inline-edit-col-right advads-bulk-edit"> |
| 19 | <div class="advads-bulk-edit-grid"> |
| 20 | <label> |
| 21 | <span class="title"><?php esc_html_e( 'Debug mode', 'advanced-ads' ); ?></span> |
| 22 | <select name="debug_mode"> |
| 23 | <option value="">— <?php esc_html_e( 'No Change', 'advanced-ads' ); ?> —</option> |
| 24 | <option value="on"><?php esc_html_e( 'Enabled', 'advanced-ads' ); ?></option> |
| 25 | <option value="off"><?php esc_html_e( 'Disabled', 'advanced-ads' ); ?></option> |
| 26 | </select> |
| 27 | </label> |
| 28 | |
| 29 | <label> |
| 30 | <span class="title"><?php esc_html_e( 'Expiry date', 'advanced-ads' ); ?></span> |
| 31 | <select name="expiry_date"> |
| 32 | <option value="">— <?php esc_html_e( 'No Change', 'advanced-ads' ); ?> —</option> |
| 33 | <option value="on"><?php esc_html_e( 'Set', 'advanced-ads' ); ?></option> |
| 34 | <option value="off"><?php esc_html_e( 'Unset', 'advanced-ads' ); ?></option> |
| 35 | </select> |
| 36 | </label> |
| 37 | <div class="expiry-inputs advads-datetime"> |
| 38 | <?php Quick_Bulk_Edit::print_date_time_inputs(); ?> |
| 39 | </div> |
| 40 | |
| 41 | <label> |
| 42 | <span class="title"><?php esc_html_e( 'Ad label', 'advanced-ads' ); ?></span> |
| 43 | <span> |
| 44 | <input type="text" name="ad_label" value="" placeholder="— <?php esc_html_e( 'No Change', 'advanced-ads' ); ?> —" <?php echo Options::instance()->get( 'advanced-ads.custom-label.enabled' ) ? '' : 'disabled'; ?>> |
| 45 | <?php if ( ! Options::instance()->get( 'advanced-ads.custom-label.enabled' ) ) : ?> |
| 46 | <span class="advads-help"> |
| 47 | <span class="advads-tooltip"> |
| 48 | <?php |
| 49 | printf( |
| 50 | /* Translators: %s is the URL to the settings page. */ |
| 51 | esc_html__( 'Enable the Ad Label %1$s in the settings%2$s.', 'advanced-ads' ), |
| 52 | '<a href="' . esc_url( admin_url( 'admin.php?page=advanced-ads-settings' ) ) . '" target="_blank">', |
| 53 | '</a>' |
| 54 | ); |
| 55 | ?> |
| 56 | </span> |
| 57 | </span> |
| 58 | <?php endif; ?> |
| 59 | </span> |
| 60 | |
| 61 | </label> |
| 62 | |
| 63 | <?php if ( isset( $privacy_options['enabled'] ) ) : ?> |
| 64 | <label> |
| 65 | <span><?php esc_html_e( 'Ignore privacy settings', 'advanced-ads' ); ?></span> |
| 66 | <select name="ignore_privacy"> |
| 67 | <option value="">— <?php esc_html_e( 'No Change', 'advanced-ads' ); ?> —</option> |
| 68 | <option value="on"><?php esc_html_e( 'Enabled', 'advanced-ads' ); ?></option> |
| 69 | <option value="off"><?php esc_html_e( 'Disabled', 'advanced-ads' ); ?></option> |
| 70 | </select> |
| 71 | </label> |
| 72 | <?php endif; ?> |
| 73 | </div> |
| 74 | </fieldset> |
| 75 |