ad-gadsense-dashboard.php
1 year ago
ad-info-after-textarea.php
1 year ago
ad-layout.php
1 year ago
ad-parameters-size.php
1 year ago
ad-parameters.php
1 year ago
ad-targeting.php
1 year ago
ad-types.php
1 year ago
ad-usage-notes.php
1 year ago
ad-usage-shortcodes.php
1 year ago
ad-usage.php
1 year ago
post-ad-settings.php
1 year ago
ad-usage-notes.php
29 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Option to enter notes for a given ad |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.2 |
| 8 | * |
| 9 | * @var Ad $ad Ad instance. |
| 10 | */ |
| 11 | |
| 12 | $description = $ad->get_description(); |
| 13 | ?> |
| 14 | <label class="label" for="advads-usage-notes" onclick="advads_toggle('#advads-ad-notes textarea'); advads_toggle('#advads-ad-notes p')"><?php esc_html_e( 'notes', 'advanced-ads' ); ?></label> |
| 15 | <div id="advads-ad-notes"> |
| 16 | <p title="<?php esc_html_e( 'click to change', 'advanced-ads' ); ?>" onclick="advads_toggle('#advads-ad-notes textarea'); advads_toggle('#advads-ad-notes p')"> |
| 17 | <?php |
| 18 | if ( ! empty( $description ) ) { |
| 19 | echo nl2br( esc_html( $description ) ); |
| 20 | } else { |
| 21 | esc_html_e( 'Click to add notes', 'advanced-ads' ); |
| 22 | } |
| 23 | ?> |
| 24 | <span class="dashicons dashicons-edit"></span> |
| 25 | </p> |
| 26 | <textarea name="advanced_ad[description]" id="advads-usage-notes"><?php echo esc_html( $description ); ?></textarea> |
| 27 | </div> |
| 28 | <hr/> |
| 29 |