setting-ad-ignore-consent.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Single ad section for overriding privacy settings. |
| 4 | * Not used if privacy not activated or method is 'iab_tcf_20' and ad type 'adsense'. |
| 5 | * |
| 6 | * @var bool $ignore_consent Whether to override privacy setting for this ad. |
| 7 | */ |
| 8 | ?> |
| 9 | <div class="advads-option-list"> |
| 10 | <span class="label"><?php esc_html_e( 'privacy', 'advanced-ads' ); ?></span> |
| 11 | <div id="advanced-ads-ad-parameters-privacy"> |
| 12 | <label> |
| 13 | <input name="advanced_ad[privacy][ignore-consent]" type="checkbox" <?php checked( $ignore_consent ); ?>/> |
| 14 | <?php |
| 15 | printf( |
| 16 | /* Translators: 1: a tag with link to general privacy settings, 2: closing a tag */ |
| 17 | esc_html__( 'Ignore %1$sgeneral Privacy settings%2$s and display the ad even without consent.', 'advanced-ads' ), |
| 18 | '<a onclick="event.stopPropagation();" href="' . esc_url( admin_url( 'admin.php?page=advanced-ads-settings#top#privacy' ) ) . '">', |
| 19 | '</a>' |
| 20 | ); |
| 21 | ?> |
| 22 | </label> |
| 23 | </div> |
| 24 | </div> |
| 25 | <hr/> |
| 26 |