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-parameters.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render the ad type parameters meta box on the ad edit screen |
| 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 | $ad_type = $ad->get_type_object(); |
| 13 | |
| 14 | do_action( "advanced-ads-ad-params-before-{$ad->get_type()}", $ad ); |
| 15 | do_action( 'advanced-ads-ad-params-before', $ad ); |
| 16 | ?> |
| 17 | <div id="advanced-ads-tinymce-wrapper" style="display:none;"> |
| 18 | <?php |
| 19 | $args = [ |
| 20 | // used here instead of textarea_rows, because of display:none. |
| 21 | 'editor_height' => 300, |
| 22 | 'drag_drop_upload' => true, |
| 23 | ]; |
| 24 | wp_editor( '', 'advanced-ads-tinymce', $args ); |
| 25 | ?> |
| 26 | </div> |
| 27 | <div id="advanced-ads-ad-parameters" class="advads-option-list"> |
| 28 | <?php |
| 29 | if ( $ad_type->has_size() ) { |
| 30 | include ADVADS_ABSPATH . 'views/admin/metaboxes/ads/ad-parameters-size.php'; |
| 31 | } |
| 32 | ?> |
| 33 | </div> |
| 34 | <?php |
| 35 | |
| 36 | do_action( "advanced-ads-ad-params-after-{$ad->get_type()}", $ad ); |
| 37 | do_action( 'advanced-ads-ad-params-after', $ad ); |
| 38 |