<?php
/**
 * Render additional content below the ad edit page.
 *
 * @package AdvancedAds
 * @author  Advanced Ads <info@wpadvancedads.com>
 * @since   1.7.3
 *
 * @var WP_Post $post The ad WP post object.
 */

use AdvancedAds\Utilities\Conditional;

?>
<div id="advads-wizard-controls" class="hidden">
	<button type="button" id="advads-wizard-controls-prev" class="button button-secondary button-large"><span class="dashicons dashicons-controls-back"></span>&nbsp;<?php echo esc_attr_x( 'previous', 'wizard navigation', 'advanced-ads' ); ?></button>
	<button id="advads-wizard-controls-save" class="button button-primary button-large">
		<?php echo esc_attr_x( 'save', 'wizard navigation', 'advanced-ads' ); ?>
		<span class="dashicons dashicons-controls-forward"></span>
	</button>
	<button type="button" id="advads-wizard-controls-next" class="button button-primary button-large"><?php echo esc_attr_x( 'next', 'wizard navigation', 'advanced-ads' ); ?>&nbsp;<span class="dashicons dashicons-controls-forward"></span></button>
	<p><a href="javascript:void(0)" class="advads-stop-wizard"><?php esc_attr_e( 'Stop Wizard and show all options', 'advanced-ads' ); ?></a></p>
</div>
<?php

/**
 * Support and review box
 */
if ( ! Conditional::is_any_addon_activated() ) :
	include ADVADS_ABSPATH . 'admin/views/support-callout.php';
	?>
	<script>jQuery( document ).ready(function () { jQuery( '#advads-support-callout').insertAfter( '#ad-types-box' ); });</script>
	<?php
endif;
