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
block-bots.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The view to render the option. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.2.0 |
| 8 | * |
| 9 | * @var int $checked Value of 1, when the option is checked. |
| 10 | */ |
| 11 | |
| 12 | use AdvancedAds\Utilities\Conditional; |
| 13 | |
| 14 | ?> |
| 15 | <label> |
| 16 | <input id="advanced-ads-block-bots" type="checkbox" value="1" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[block-bots]" <?php checked( $checked, 1 ); ?>> |
| 17 | <?php if ( Conditional::is_ua_bot() ) : ?> |
| 18 | <span class="advads-notice-inline advads-error"><?php esc_html_e( 'You look like a bot', 'advanced-ads' ); ?></span> |
| 19 | <?php endif; ?> |
| 20 | <?php esc_html_e( 'Hide ads from crawlers, bots and empty user agents.', 'advanced-ads' ); ?> |
| 21 | <span class="description"> |
| 22 | <a href="https://wpadvancedads.com/hide-ads-from-bots/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings" target="blank" class="advads-external-link"> |
| 23 | <?php esc_html_e( 'Read this first', 'advanced-ads' ); ?> |
| 24 | </a> |
| 25 | </span> |
| 26 | </label> |
| 27 |