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
quick-edit.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Quick 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 | use AdvancedAds\Options; |
| 13 | use AdvancedAds\Admin\Ads\Quick_Bulk_Edit; |
| 14 | |
| 15 | global $wp_locale; |
| 16 | |
| 17 | ?> |
| 18 | <fieldset class="inline-edit-col-right advads-quick-edit" disabled> |
| 19 | <div class="inline-edit-col"> |
| 20 | <div class="wp-clearfix"> |
| 21 | <label><input value="1" type="checkbox" name="debugmode"><?php esc_html_e( 'Debug mode', 'advanced-ads' ); ?></label> |
| 22 | </div> |
| 23 | |
| 24 | <div class="wp-clearfix"> |
| 25 | <label><input type="checkbox" name="enable_expiry" value="1"/><?php esc_html_e( 'Set expiry date', 'advanced-ads' ); ?></label> |
| 26 | <div class="expiry-inputs advads-datetime"> |
| 27 | <?php Quick_Bulk_Edit::print_date_time_inputs(); ?> |
| 28 | </div> |
| 29 | </div> |
| 30 | |
| 31 | <?php if ( isset( $privacy_options['enabled'] ) ) : ?> |
| 32 | <div class="wp-clearfix"> |
| 33 | <label><input type="checkbox" name="ignore_privacy" value="1"/><?php esc_html_e( 'Ignore privacy settings', 'advanced-ads' ); ?></label> |
| 34 | </div> |
| 35 | <?php endif; ?> |
| 36 | |
| 37 | <div class="wp-clearfix"> |
| 38 | <label> |
| 39 | <span class="title"><?php esc_html_e( 'Ad label', 'advanced-ads' ); ?></span> |
| 40 | <input type="text" name="ad_label" value="" <?php echo Options::instance()->get( 'advanced-ads.custom-label.enabled' ) ? '' : 'disabled'; ?>> |
| 41 | <?php if ( ! Options::instance()->get( 'advanced-ads.custom-label.enabled' ) ) : ?> |
| 42 | <span class="advads-help"> |
| 43 | <span class="advads-tooltip"> |
| 44 | <?php |
| 45 | printf( |
| 46 | /* Translators: %s is the URL to the settings page. */ |
| 47 | esc_html__( 'Enable the Ad Label %1$s in the settings%2$s.', 'advanced-ads' ), |
| 48 | '<a href="' . esc_url( admin_url( 'admin.php?page=advanced-ads-settings' ) ) . '" target="_blank">', |
| 49 | '</a>' |
| 50 | ); |
| 51 | ?> |
| 52 | </span> |
| 53 | </span> |
| 54 | <?php endif; ?> |
| 55 | </label> |
| 56 | </div> |
| 57 | </div> |
| 58 | </fieldset> |
| 59 |