setting-create.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * View for the ads.txt creation setting. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * |
| 7 | * @var bool $is_enabled |
| 8 | * @var bool $is_all_network |
| 9 | * @var bool $can_process_all_network |
| 10 | * @var string $domain |
| 11 | */ |
| 12 | |
| 13 | ?> |
| 14 | |
| 15 | <div id="advads-ads-txt"> |
| 16 | <label title="<?php esc_html_e( 'enabled', 'advanced-ads' ); ?>"> |
| 17 | <input type="radio" name="advads-ads-txt-create" value="1" <?php checked( $is_enabled, true ); ?> /> |
| 18 | <?php esc_html_e( 'enabled', 'advanced-ads' ); ?> |
| 19 | </label> |
| 20 | <label title="<?php esc_html_e( 'disabled', 'advanced-ads' ); ?>"> |
| 21 | <input type="radio" name="advads-ads-txt-create" value="0" <?php checked( $is_enabled, false ); ?> /> |
| 22 | <?php esc_html_e( 'disabled', 'advanced-ads' ); ?> |
| 23 | </label> |
| 24 | <span class="description"> |
| 25 | <a target="_blank" href="https://wpadvancedads.com/manual/ads-txt/?utm_source=advanced-ads&utm_medium=link&utm_campaign=settings-ads-txt" class="advads-manual-link"> |
| 26 | <?php esc_html_e( 'Manual', 'advanced-ads' ); ?> |
| 27 | </a> |
| 28 | </span> |
| 29 | |
| 30 | <?php if ( $can_process_all_network ) : ?> |
| 31 | <p> |
| 32 | <label> |
| 33 | <input name="advads-ads-txt-all-network" type="checkbox"<?php checked( $is_all_network, true ); ?> /> |
| 34 | <?php esc_html_e( 'Generate a single ads.txt file for all sites in the multisite network.', 'advanced-ads' ); ?> |
| 35 | </label> |
| 36 | </p> |
| 37 | <p class="description"> |
| 38 | <?php esc_html_e( 'Usually, this should be enabled on the main site of the network - often the one without a subdomain or subdirectory.', 'advanced-ads' ); ?> |
| 39 | </p> |
| 40 | <?php endif; ?> |
| 41 | </div> |
| 42 |