advanced-js.php
1 year ago
allow-unfiltered-html.php
1 month 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 month ago
link-target.php
1 year ago
uninstall-delete-data.php
1 year ago
hide-for-ip-address.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render IP Address settings |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.2 |
| 8 | */ |
| 9 | |
| 10 | ?> |
| 11 | |
| 12 | <input |
| 13 | id="<?php echo esc_attr( ADVADS_SLUG ); ?>-disable-ads-ip-address" |
| 14 | type="checkbox" |
| 15 | value="1" |
| 16 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[hide-for-ip-address][enabled]" |
| 17 | class="advads-has-sub-settings" |
| 18 | <?php checked( $disable_ip_addr, 1 ); ?> |
| 19 | > |
| 20 | <label for="<?php echo esc_attr( ADVADS_SLUG ); ?>-disable-ads-ip-address"> |
| 21 | <?php esc_html_e( 'Activate module', 'advanced-ads' ); ?> |
| 22 | </label> |
| 23 | <span class="advads-help"> |
| 24 | <span class="advads-tooltip"> |
| 25 | <?php esc_html_e( 'Enter one IP address per line for which no ads are displayed.', 'advanced-ads' ); ?> |
| 26 | </span> |
| 27 | </span> |
| 28 | |
| 29 | <div class="advads-sub-settings" style="margin-top: 1em;"> |
| 30 | <textarea |
| 31 | cols="50" |
| 32 | rows="5" |
| 33 | name="<?php echo esc_attr( ADVADS_SLUG ); ?>[hide-for-ip-address][ips]" |
| 34 | placeholder="<?php esc_html_e( 'Enter one IP address per line for which no ads are displayed.', 'advanced-ads' ); ?>" |
| 35 | ><?php echo esc_textarea( $ip_address ); ?></textarea> |
| 36 | </div> |
| 37 |