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
advanced-js.php
34 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.48.2 |
| 8 | * |
| 9 | * @var int $checked Value of 1, when the option is checked. |
| 10 | */ |
| 11 | |
| 12 | // display notice if js file was overridden. |
| 13 | if ( ! $checked && apply_filters( 'advanced-ads-activate-advanced-js', $checked ) ) : ?> |
| 14 | <p><?php esc_html_e( 'The file is currently enabled by an add-on that needs it.', 'advanced-ads' ); ?></p> |
| 15 | <?php endif; ?> |
| 16 | <label> |
| 17 | <input id="advanced-ads-advanced-js" type="checkbox" value="1" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[advanced-js]" <?php checked( $checked, 1 ); ?>> |
| 18 | <?php |
| 19 | printf( |
| 20 | wp_kses( |
| 21 | /* translators: %s is a URL. */ |
| 22 | __( 'Enable advanced JavaScript functions (<a href="%s" target="_blank">here</a>). Some features and add-ons might override this setting if they need features from this file.', 'advanced-ads' ), |
| 23 | [ |
| 24 | 'a' => [ |
| 25 | 'href' => [], |
| 26 | 'target' => [], |
| 27 | ], |
| 28 | ] |
| 29 | ), |
| 30 | 'https://wpadvancedads.com/javascript-functions/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings' |
| 31 | ); |
| 32 | ?> |
| 33 | </label> |
| 34 |