<?php

add_action( 'admin_menu', 'coupon_flash_deals_getting_started' );
function coupon_flash_deals_getting_started() {
    add_theme_page( 
		esc_html__('Getting Started', 'coupon-flash-deals'), 
		esc_html__('Getting Started', 'coupon-flash-deals'), 
		'manage_options', 
		'coupon-flash-deals-guide-page', 
		'coupon_flash_deals_test_guide'
	);
}

if ( ! defined( 'COUPON_FLASH_DEALS_DOCS_FREE' ) ) {
define('COUPON_FLASH_DEALS_DOCS_FREE',__('https://www.mishkatwp.com/instruction/coupon-flash-deals-free-docs/','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_DOCS_PRO' ) ) {
define('COUPON_FLASH_DEALS_DOCS_PRO',__('https://www.mishkatwp.com/instruction/coupon-flash-deals-pro-docs/','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_BUY_NOW' ) ) {
define('COUPON_FLASH_DEALS_BUY_NOW',__('https://www.mishkatwp.com/themes/coupon-wordpress-theme/','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_SUPPORT_FREE' ) ) {
define('COUPON_FLASH_DEALS_SUPPORT_FREE',__('https://wordpress.org/support/theme/coupon-flash-deals','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_REVIEW_FREE' ) ) {
define('COUPON_FLASH_DEALS_REVIEW_FREE',__('https://wordpress.org/support/theme/coupon-flash-deals/reviews/#new-post','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_DEMO_PRO' ) ) {
define('COUPON_FLASH_DEALS_DEMO_PRO',__('https://mishkatwp.com/pro/coupon-flash-deals/','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_BUNDLE' ) ) {
define('COUPON_FLASH_DEALS_BUNDLE',__('https://www.mishkatwp.com/themes/wordpress-theme-bundle/','coupon-flash-deals'));
}
if ( ! defined( 'COUPON_FLASH_DEALS_FREE_LINK' ) ) {
define('COUPON_FLASH_DEALS_FREE_LINK',__('https://www.mishkatwp.com/themes/coupon-flash-deals/','coupon-flash-deals'));
}

function coupon_flash_deals_test_guide() { ?>
	<?php $coupon_flash_deals_theme = wp_get_theme();?>
	<div class="wrap" id="main-page">
		<div id="righty">
			<div class="getstart-postbox donate">
				<h4><?php esc_html_e( 'Discount Upto 25%', 'coupon-flash-deals' ); ?> <span><?php esc_html_e( '"Special25"', 'coupon-flash-deals' ); ?></span></h4>
				<h3 class="hndle"><?php esc_html_e( 'Upgrade to Premium', 'coupon-flash-deals' ); ?></h3>
				<div class="inside">
					<p><?php esc_html_e('Click to upgrade to see the enhanced pro features available in the premium version.','coupon-flash-deals'); ?></p>
					<div id="admin_pro_links">
						<a class="blue-button-2" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" target="_blank"><?php esc_html_e( 'Go Pro', 'coupon-flash-deals' ); ?></a>
						<a class="blue-button-1" href="<?php echo esc_url( COUPON_FLASH_DEALS_DEMO_PRO ); ?>" target="_blank"><?php esc_html_e( 'Live Demo', 'coupon-flash-deals' ) ?></a>
						<a class="blue-button-2" href="<?php echo esc_url( COUPON_FLASH_DEALS_DOCS_PRO ); ?>" target="_blank"><?php esc_html_e( 'Pro Docs', 'coupon-flash-deals' ) ?></a>
					</div>
				</div>
				<div class="d-table">
				    <ul class="d-column">
				      <li class="feature"><?php esc_html_e('Features','coupon-flash-deals'); ?></li>
				      <li class="free"><?php esc_html_e('Pro','coupon-flash-deals'); ?></li>
				      <li class="plus"><?php esc_html_e('Free','coupon-flash-deals'); ?></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('24hrs Priority Support','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('LearnPress Campatiblity','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Kirki Framework','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Advance Posttype','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-no"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('One Click Demo Import','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Section Reordering','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-no"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Enable / Disable Option','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Multiple Sections','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-no"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Advance Color Pallete','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-no"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Advance Widgets','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-yes"></span></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('Page Templates','coupon-flash-deals'); ?></li>
				      <li class="right"><span class="dashicons dashicons-yes"></span></li>
				      <li class="wrong"><span class="dashicons dashicons-no"></span></li>
				    </ul>
	  			</div>
			</div>
		</div>
		<div id="lefty">
			<div id="description">
				<h3><?php esc_html_e('Welcome! Thank you for choosing ','coupon-flash-deals'); ?><?php echo esc_html( $coupon_flash_deals_theme ); ?>  <span><?php esc_html_e('Version: ', 'coupon-flash-deals'); ?><?php echo esc_html($coupon_flash_deals_theme['Version']);?></span></h3>
				<div class="demo-import-box">
					<h4><?php echo esc_html('IMPORT HOMEPAGE','coupon-flash-deals'); ?></h4>
					<p><?php echo esc_html('Get started with the wordpress theme installation','coupon-flash-deals'); ?></p>
					<a href="<?php echo esc_url( admin_url( 'themes.php?page=couponflashdeals-wizard' ) ); ?>" class="blue-button-1">
					    <?php echo esc_html__( 'Demo Importer', 'coupon-flash-deals' ); ?>
					</a>
				</div>
				<h4 class="feature-head"><?php esc_html_e('Begin with our theme features:-','coupon-flash-deals'); ?></h4>
				<div class="customizer-inside">
					<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'Add Menus', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[panel]=nav_menus') ); ?>"><?php esc_html_e('Go to Menu', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to menu >> Select menu which you had created >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'Add Logo', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=custom_logo') ); ?>"><?php esc_html_e('Go to Site Identity', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Site Identity >> Select Logo Add Title or Tagline >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'Home Page Section', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[panel]=coupon_flash_deals_home_page_section') ); ?>"><?php esc_html_e('Go to Home Page Section', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Home Page Sections >> Then go to different section which ever you want >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'Post Options', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=coupon_flash_deals_post_image_on_off') ); ?>"><?php esc_html_e('Go to Post Options', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Post Options >> Then go to different settings which ever you want >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'Post Layout Options', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=coupon_flash_deals_post_layout') ); ?>"><?php esc_html_e('Go to Post Layout Options', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Post Layout Options >> Then go to different settings which ever you want >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	<div class="coupon-flash-deals-theme-setting-item">
                        <div class="coupon-flash-deals-theme-setting-item-header">
                            <?php esc_html_e( 'General Options Options', 'coupon-flash-deals' ); ?>                            
                       	</div>
                        <div class="coupon-flash-deals-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=coupon_flash_deals_preloader_setting') ); ?>"><?php esc_html_e('Go to General Options', 'coupon-flash-deals'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Post General Options >> Then go to different settings which ever you want >> Then Publish ', 'coupon-flash-deals' ); ?></p>
                	</div>
                	
                	<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("Customize All Fonts", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("Customize All Color", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("Section Reorder", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("Typography Options", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("One Click Demo Import", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>
					<a target="_blank" href="<?php echo esc_url( COUPON_FLASH_DEALS_BUY_NOW ); ?>" class="coupon-flash-deals-theme-setting-item coupon-flash-deals-theme-setting-item-unavailable">
					    <div class="coupon-flash-deals-theme-setting-item-header">
					        <span><?php esc_html_e("Background  Settings", "coupon-flash-deals"); ?></span> <span><?php esc_html_e("Premium", "coupon-flash-deals"); ?></span>
					    </div>
					    <div class="coupon-flash-deals-theme-setting-item-content">
					        <span><?php esc_html_e("Go to Customizer", "coupon-flash-deals"); ?></span>
					    </div>
					</a>
					
				</div>
			</div>
		</div>
		<div id="righty">
			<div class="coupon-flash-deals-theme-setting-sidebar-item">
		        <div class="coupon-flash-deals-theme-setting-sidebar-header"><?php esc_html_e( 'Theme Bundle', 'coupon-flash-deals' ) ?></div>
		        <div class="coupon-flash-deals-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Get our all themes in single pack.', 'coupon-flash-deals' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( COUPON_FLASH_DEALS_BUNDLE ); ?>" target="_blank" class="blue-button-2"><?php esc_html_e( 'Theme Bundle', 'coupon-flash-deals' ) ?></a>
		            </div>
		        </div>
		    </div>
			<div class="coupon-flash-deals-theme-setting-sidebar-item">
		        <div class="coupon-flash-deals-theme-setting-sidebar-header"><?php esc_html_e( 'Free Documentation', 'coupon-flash-deals' ) ?></div>
		        <div class="coupon-flash-deals-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Our guide is available if you require any help configuring and setting up the theme.', 'coupon-flash-deals' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( COUPON_FLASH_DEALS_DOCS_FREE ); ?>" target="_blank" class="blue-button-1"><?php esc_html_e( 'Free Documentation', 'coupon-flash-deals' ) ?></a>
		            </div>
		        </div>
		    </div>
		    <div class="coupon-flash-deals-theme-setting-sidebar-item">
		        <div class="coupon-flash-deals-theme-setting-sidebar-header"><?php esc_html_e( 'Support', 'coupon-flash-deals' ) ?></div>
		        <div class="coupon-flash-deals-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Visit our website to contact us if you face any issues with our lite theme!', 'coupon-flash-deals' ) ?></p>
		            <div id="admin_links">
		            	<a class="blue-button-2" href="<?php echo esc_url( COUPON_FLASH_DEALS_SUPPORT_FREE ); ?>" target="_blank" class="btn3"><?php esc_html_e( 'Support', 'coupon-flash-deals' ) ?></a>
		            </div>
		        </div>
		    </div>
		    <div class="coupon-flash-deals-theme-setting-sidebar-item">
		        <div class="coupon-flash-deals-theme-setting-sidebar-header"><?php esc_html_e( 'Review', 'coupon-flash-deals' ) ?></div>
		        <div class="coupon-flash-deals-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Are you having fun with Coupon Flash Deals? Review us on WordPress.org to show your support!', 'coupon-flash-deals' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( COUPON_FLASH_DEALS_REVIEW_FREE ); ?>" target="_blank" class="blue-button-1"><?php esc_html_e( 'Review', 'coupon-flash-deals' ) ?></a>
		            </div>
		        </div>
		    </div>
		</div>
	</div>

<?php } ?>