advanced-js.php
1 year ago
allow-unfiltered-html.php
1 year ago
block-bots.php
1 year ago
content-injection-everywhere.php
1 year ago
content-injection-level-limitation.php
1 year ago
content-injection-priority.php
1 year ago
custom-label.php
1 year ago
disable-ads.php
1 year ago
disable-notices.php
1 year ago
disable-post-types.php
1 year ago
editors-manage-ads.php
1 year ago
frontend-prefix.php
1 year ago
hide-for-ip-address.php
1 year ago
hide-for-user-role.php
1 year ago
link-target.php
1 year ago
uninstall-delete-data.php
1 year ago
disable-ads.php
101 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render disable ads settings |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.2 |
| 8 | */ |
| 9 | |
| 10 | ?> |
| 11 | <label> |
| 12 | <input |
| 13 | id="advanced-ads-disable-ads-all" |
| 14 | type="checkbox" |
| 15 | value="1" |
| 16 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][all]" |
| 17 | <?php checked( $disable_all, 1 ); ?> |
| 18 | > |
| 19 | <?php esc_html_e( 'Disable all ads in frontend', 'advanced-ads' ); ?> |
| 20 | </label> |
| 21 | <span class="advads-help"> |
| 22 | <span class="advads-tooltip"> |
| 23 | <?php esc_html_e( 'Use this option to disable all ads in the frontend, but still be able to use the plugin.', 'advanced-ads' ); ?> |
| 24 | </span> |
| 25 | </span> |
| 26 | |
| 27 | <br/> |
| 28 | |
| 29 | <label> |
| 30 | <input |
| 31 | id="advanced-ads-disable-ads-404" |
| 32 | type="checkbox" |
| 33 | value="1" |
| 34 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][404]" |
| 35 | <?php checked( $disable_404, 1 ); ?> |
| 36 | > |
| 37 | <?php esc_html_e( 'Disable ads on 404 error pages', 'advanced-ads' ); ?> |
| 38 | </label> |
| 39 | |
| 40 | <br/> |
| 41 | |
| 42 | <label> |
| 43 | <input |
| 44 | id="advanced-ads-disable-ads-archives" |
| 45 | type="checkbox" |
| 46 | value="1" |
| 47 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][archives]" |
| 48 | <?php checked( $disable_archives, 1 ); ?> |
| 49 | > |
| 50 | <?php esc_html_e( 'Disable ads on non-singular pages', 'advanced-ads' ); ?> |
| 51 | </label> |
| 52 | <span class="advads-help"> |
| 53 | <span class="advads-tooltip"> |
| 54 | <?php esc_html_e( 'e.g. archive pages like categories, tags, authors, front page (if a list)', 'advanced-ads' ); ?> |
| 55 | </span> |
| 56 | </span> |
| 57 | |
| 58 | <br/> |
| 59 | |
| 60 | <label> |
| 61 | <input |
| 62 | id="advanced-ads-disable-ads-secondary" |
| 63 | type="checkbox" |
| 64 | value="1" |
| 65 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][secondary]" |
| 66 | <?php checked( $disable_secondary, 1 ); ?> |
| 67 | > |
| 68 | <?php esc_html_e( 'Disable ads on secondary queries', 'advanced-ads' ); ?> |
| 69 | </label> |
| 70 | <span class="advads-help"> |
| 71 | <span class="advads-tooltip"> |
| 72 | <?php esc_html_e( 'Secondary queries are custom queries of posts outside the main query of a page. Try this option if you see ads injected on places where they shouldn’t appear.', 'advanced-ads' ); ?> |
| 73 | </span> |
| 74 | </span> |
| 75 | |
| 76 | <br/> |
| 77 | |
| 78 | <label> |
| 79 | <input |
| 80 | id="advanced-ads-disable-ads-feed" |
| 81 | type="checkbox" |
| 82 | value="1" |
| 83 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][feed]" |
| 84 | <?php checked( $disable_feed, 1 ); ?> |
| 85 | > |
| 86 | <?php esc_html_e( 'Disable ads in RSS Feed', 'advanced-ads' ); ?> |
| 87 | </label> |
| 88 | |
| 89 | <br/> |
| 90 | |
| 91 | <label> |
| 92 | <input |
| 93 | id="advanced-ads-disable-ads-rest-api" |
| 94 | type="checkbox" |
| 95 | value="1" |
| 96 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[disabled-ads][rest-api]" |
| 97 | <?php checked( $disable_rest_api, 1 ); ?> |
| 98 | > |
| 99 | <?php esc_html_e( 'Disable ads in REST API', 'advanced-ads' ); ?> |
| 100 | </label> |
| 101 |