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
page-quick-edit.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Page/Post quick edit fields |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 2.0 |
| 8 | * |
| 9 | * @var string $post_type current post type. |
| 10 | */ |
| 11 | |
| 12 | use AdvancedAds\Admin\Upgrades; |
| 13 | |
| 14 | ?> |
| 15 | <fieldset class="inline-edit-col-right" disabled> |
| 16 | <div class="inline-edit-col"> |
| 17 | <div class="inline-edit-group wp-clearfix"> |
| 18 | <label class="alignleft"> |
| 19 | <input type="checkbox" name="advads-disable-ads" value="1"/> |
| 20 | <span class="checkbox-title"> |
| 21 | <?php echo 'page' === $post_type ? esc_html__( 'Disable ads on this page', 'advanced-ads' ) : esc_html__( 'Disable ads on this post', 'advanced-ads' ); ?> |
| 22 | </span> |
| 23 | </label> |
| 24 | </div> |
| 25 | <div class="inline-edit-group wp-clearfix"> |
| 26 | <?php $pro_installed = defined( 'AAP_VERSION' ); ?> |
| 27 | <label class="alignleft"> |
| 28 | <input type="checkbox" name="<?php echo esc_attr( $pro_installed ? 'advads-disable-the-content' : '' ); ?>" value="1" <?php echo $pro_installed ? '' : 'disabled'; ?>> |
| 29 | <span class="checkbox-title"><?php esc_html_e( 'Disable automatic ad injection into the content', 'advanced-ads' ); ?></span> |
| 30 | <?php if ( ! $pro_installed ) : ?> |
| 31 | ( <?php Upgrades::upgrade_link( '', 'https://wpadvancedads.com/advanced-ads-pro/', 'upgrade-pro-disable-post-quick-edit' ); ?>) |
| 32 | <?php endif; ?> |
| 33 | </label> |
| 34 | </div> |
| 35 | </div> |
| 36 | </fieldset> |
| 37 |