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
content-injection-everywhere.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * View to show the content injection settings. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.2 |
| 8 | */ |
| 9 | |
| 10 | ?> |
| 11 | <fieldset> |
| 12 | <label> |
| 13 | <input type="radio" value="on" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[content-injection-enabled]" <?php echo ( 'on' === $enabled || ( '' === $enabled && ! empty( $everywhere ) ) ) ? 'checked' : ''; ?> onclick="toggle_visibility(this, '[name=\'<?php echo esc_attr( ADVADS_SLUG ); ?>[content-injection-everywhere]\']');" /> |
| 14 | on |
| 15 | </label> |
| 16 | <label> |
| 17 | <input type="radio" value="off" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[content-injection-enabled]" <?php echo ( 'off' === $enabled || 0 === $everywhere ) ? 'checked' : ''; ?> onclick="toggle_visibility(this, '[name=\'<?php echo esc_attr( ADVADS_SLUG ); ?>[content-injection-everywhere]\']');" /> |
| 18 | off |
| 19 | </label> |
| 20 | </fieldset> |
| 21 | <br/> |
| 22 | <select name="<?php echo esc_attr( ADVADS_SLUG ); ?>[content-injection-everywhere]" style="min-width: 85px; display:<?php echo ( 'off' === $enabled || 0 === $everywhere ) ? 'none' : 'block'; ?>" > |
| 23 | <option value="1" <?php selected( $everywhere, 1 ); ?>>1</option> |
| 24 | <option value="2" <?php selected( $everywhere, 2 ); ?>>2</option> |
| 25 | <option value="3" <?php selected( $everywhere, 3 ); ?>>3</option> |
| 26 | <option value="4" <?php selected( $everywhere, 4 ); ?>>4</option> |
| 27 | <option value="5" <?php selected( $everywhere, 5 ); ?>>5</option> |
| 28 | <option value="6" <?php selected( $everywhere, 6 ); ?>>6</option> |
| 29 | <option value="7" <?php selected( $everywhere, 7 ); ?>>7</option> |
| 30 | <option value="8" <?php selected( $everywhere, 8 ); ?>>8</option> |
| 31 | <option value="9" <?php selected( $everywhere, 9 ); ?>>9</option> |
| 32 | <option value="10" <?php selected( $everywhere, 10 ); ?>>10</option> |
| 33 | <option value="-1" <?php echo ( -1 === $everywhere || $everywhere > 10 ) ? 'selected' : ''; ?>>all</option> |
| 34 | </select> |
| 35 | <p class="description"> |
| 36 | <?php |
| 37 | printf( |
| 38 | wp_kses( |
| 39 | /* translators: %s is a URL. */ |
| 40 | __( 'To ensure compatibility, ads are not injected into excerpts or the full content of posts on archive pages. However, by enabling this option, you can override this restriction and set a limit on the number of posts where ads will be injected. Please note that if you want to insert ads between post listing items on archive pages, you can utilize the Post list placement (<a href="%s" target="_blank">manual</a>) feature.', 'advanced-ads' ), |
| 41 | [ |
| 42 | 'a' => [ |
| 43 | 'href' => [], |
| 44 | 'target' => [], |
| 45 | ], |
| 46 | ] |
| 47 | ), |
| 48 | esc_url( 'https://wpadvancedads.com/manual/placement-post-lists/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-content-injection' ) |
| 49 | ); |
| 50 | ?> |
| 51 | </p> |
| 52 |