filters.php
3 months ago
info-bottom.php
3 months ago
info-top.php
1 year ago
submitbox-meta.php
10 months ago
info-top.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display ad wizard controls. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.7.3 |
| 8 | */ |
| 9 | |
| 10 | use AdvancedAds\Utilities\WordPress; |
| 11 | |
| 12 | ?> |
| 13 | <button id="advads-start-wizard" type="button" class="header-action button advads-button-secondary"> |
| 14 | <span class="dashicons dashicons-controls-play"></span><?php esc_html_e( 'Start Wizard', 'advanced-ads' ); ?> |
| 15 | </button> |
| 16 | <button id="advads-stop-wizard" type="button" class="header-action button advads-button-secondary advads-stop-wizard hidden"> |
| 17 | <span class="dashicons dashicons-no"></span><?php esc_html_e( 'Stop Wizard', 'advanced-ads' ); ?> |
| 18 | </button> |
| 19 | <script> |
| 20 | // Move wizard button to head. |
| 21 | jQuery('#advads-start-wizard').appendTo('#advads-header-actions'); |
| 22 | jQuery('.advads-stop-wizard').appendTo('#advads-header-actions'); |
| 23 | </script> |
| 24 | <?php if ( $this->show_wizard_welcome() || ! WordPress::get_count_ads() ) : ?> |
| 25 | <div class="advads-ad-metabox postbox"> |
| 26 | <?php |
| 27 | if ( ! WordPress::get_count_ads() ) { |
| 28 | include ADVADS_ABSPATH . 'admin/views/ad-list-no-ads.php'; |
| 29 | } if ( $this->show_wizard_welcome() ) : |
| 30 | ?> |
| 31 | <div id="advads-wizard-welcome"> |
| 32 | <br/> |
| 33 | <a class="advads-stop-wizard dashicons-before dashicons-no" style="line-height: 1.6em; cursor: pointer;"><?php esc_html_e( 'Stop Wizard and show all options', 'advanced-ads' ); ?></a> |
| 34 | </div> |
| 35 | <script> |
| 36 | // Move wizard button to head |
| 37 | jQuery('#advads-hide-wizard-welcome').click( function(){ jQuery( '#advads-wizard-welcome' ).remove(); }); |
| 38 | jQuery('#advads-end-wizard').insertBefore('h1'); |
| 39 | </script> |
| 40 | <?php |
| 41 | endif; |
| 42 | ?> |
| 43 | </div> |
| 44 | <?php |
| 45 | endif; |
| 46 |