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
custom-label.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Ad label settings |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.2 |
| 8 | * |
| 9 | * @var bool $enabled If label setting is enabled. |
| 10 | * @var string $label Label input text. |
| 11 | * @var bool $html_enabled HTML allowed or not. |
| 12 | */ |
| 13 | |
| 14 | ?> |
| 15 | <fieldset> |
| 16 | <input type="checkbox" <?php checked( $enabled, true ); ?> value="1" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[custom-label][enabled]"/> |
| 17 | <input id="advads-custom-label" type="text" value="<?php echo esc_html( $label ); ?>" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[custom-label][text]"/> |
| 18 | </fieldset> |
| 19 | <p class="description"> |
| 20 | <?php esc_html_e( 'Displayed above ads.', 'advanced-ads' ); ?> |
| 21 | <a class="advads-manual-link" href="https://wpadvancedads.com/manual/advertisement-label/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-advertisement-label" target="_blank"> |
| 22 | <?php esc_html_e( 'Manual', 'advanced-ads' ); ?> |
| 23 | </a> |
| 24 | </p> |
| 25 | |
| 26 | <label> |
| 27 | <input type="checkbox" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[custom-label][html_enabled]" value="1" <?php checked( $html_enabled, true ); ?> /> |
| 28 | <?php esc_html_e( 'Enable HTML for the field', 'advanced-ads' ); ?> |
| 29 | </label> |
| 30 |