<?php

add_action( 'admin_menu', 'gym_workout_getting_started' );
function gym_workout_getting_started() {
	add_theme_page( esc_html__('Theme Info', 'gym-workout'), esc_html__('Theme Info', 'gym-workout'), 'edit_theme_options', 'gym-workout-guide-page', 'gym_workout_test_guide', 1);
}

if ( ! defined( 'GYM_WORKOUT_DOCS_FREE' ) ) {
define('GYM_WORKOUT_DOCS_FREE',__('https://mishkatwp.com/instruction/gym-workout-free-docs/','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_DOCS_PRO' ) ) {
define('GYM_WORKOUT_DOCS_PRO',__('https://mishkatwp.com/instruction/gym-workout-pro-docs/','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_BUY_NOW' ) ) {
define('GYM_WORKOUT_BUY_NOW',__('https://www.mishkatwp.com/themes/workout-wordpress-theme/','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_SUPPORT_FREE' ) ) {
define('GYM_WORKOUT_SUPPORT_FREE',__('https://wordpress.org/support/theme/gym-workout','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_REVIEW_FREE' ) ) {
define('GYM_WORKOUT_REVIEW_FREE',__('https://wordpress.org/support/theme/gym-workout/reviews/#new-post','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_DEMO_PRO' ) ) {
define('GYM_WORKOUT_DEMO_PRO',__('https://mishkatwp.com/pro/gym-workout/','gym-workout'));
}
if ( ! defined( 'GYM_WORKOUT_BUNDLE' ) ) {
define('GYM_WORKOUT_BUNDLE',__('https://www.mishkatwp.com/themes/WordPress-theme-bundle/','gym-workout'));
}

function gym_workout_test_guide() { ?>
	<?php $gym_workout_theme = wp_get_theme(); 
	require_once get_template_directory() .'/inc/started/demo-import.php'; ?>
	<div class="wrap" id="main-page">
		<div id="righty">
			<div class="getstart-postbox donate">
				<h4><?php esc_html_e( 'Discount Upto 25%', 'gym-workout' ); ?> <span><?php esc_html_e( '"Special25"', 'gym-workout' ); ?></span></h4>
				<h3 class="hndle"><?php esc_html_e( 'Upgrade to Premium', 'gym-workout' ); ?></h3>
				<div class="inside">
					<p><?php esc_html_e('Click to upgrade to see the enhanced pro features available in the premium version.','gym-workout'); ?></p>
					<div id="admin_pro_links">
						<a class="blue-button-2" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" target="_blank"><?php esc_html_e( 'Go Pro', 'gym-workout' ); ?></a>
						<a class="blue-button-1" href="<?php echo esc_url( GYM_WORKOUT_DEMO_PRO ); ?>" target="_blank"><?php esc_html_e( 'Live Demo', 'gym-workout' ) ?></a>
						<a class="blue-button-2" href="<?php echo esc_url( GYM_WORKOUT_DOCS_PRO ); ?>" target="_blank"><?php esc_html_e( 'Pro Docs', 'gym-workout' ) ?></a>
					</div>
				</div>
				<div class="d-table">
				    <ul class="d-column">
				      <li class="feature"><?php esc_html_e('Features','gym-workout'); ?></li>
				      <li class="free"><?php esc_html_e('Pro','gym-workout'); ?></li>
				      <li class="plus"><?php esc_html_e('Free','gym-workout'); ?></li>
				    </ul>
				    <ul class="d-row">
				      <li class="points"><?php esc_html_e('24hrs Priority Support','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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','gym-workout'); ?></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 ','gym-workout'); ?><?php echo esc_html( $gym_workout_theme ); ?>  <span><?php esc_html_e('Version: ', 'gym-workout'); ?><?php echo esc_html($gym_workout_theme['Version']);?></span></h3>
				<div class="demo-import-box">
					<h4><?php echo esc_html('Import homepage demo in just one click.','gym-workout'); ?></h4>
					<p><?php echo esc_html('If the Kirki Customizer plugin is not installed or activated, please install or activate it first. Then proceed with the demo content import.','gym-workout'); ?></p>
					<p><?php echo esc_html('Get started with the WordPress theme installation','gym-workout'); ?></p>
					<?php if(isset($_GET['import-demo']) && $_GET['import-demo'] == true){ ?>
			    		<p class="imp-success"><?php echo esc_html('Imported Successfully','gym-workout'); ?></p>
			    		<a class="blue-button-1" href="<?php echo esc_url(home_url()); ?>" target="_blank"><?php echo esc_html('Go to Homepage','gym-workout'); ?></a>
			    	<?php } else { ?>
					<form id="demo-importer-form" action="<?php echo esc_url(home_url()); ?>/wp-admin/themes.php" method="POST">
			        	<input type="submit" name="submit" value="<?php esc_attr_e('Get Start With Gym Workout','gym-workout'); ?>" class="blue-button-2">
			    	</form>
			    	<?php } ?>
				</div>
				<h4><?php esc_html_e('Begin with our theme features','gym-workout'); ?></span></h4>
				<div class="customizer-inside">
										<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'Add Menus', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-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', 'gym-workout'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to menu >> Select menu which you had created >> Then Publish ', 'gym-workout' ); ?></p>
                	</div>
                	<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'Add Logo', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-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', 'gym-workout'); ?></a>
                     	</div>
                     	<p><?php esc_html_e( 'After Clicking go to customizer >> Go to Site Identity >> Select Logo Add Title or Tagline >> Then Publish ', 'gym-workout' ); ?></p>
                	</div>
                	<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'Home Page Section', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[panel]=gym_workout_home_page_section') ); ?>"><?php esc_html_e('Go to Home Page Section', 'gym-workout'); ?></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 ', 'gym-workout' ); ?></p>
                	</div>
                	<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'Post Options', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=gym_workout_post_image_on_off') ); ?>"><?php esc_html_e('Go to Post Options', 'gym-workout'); ?></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 ', 'gym-workout' ); ?></p>
                	</div>
                	<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'Post Layout Options', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=gym_workout_post_layout') ); ?>"><?php esc_html_e('Go to Post Layout Options', 'gym-workout'); ?></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 ', 'gym-workout' ); ?></p>
                	</div>
                	<div class="gym-workout-theme-setting-item">
                        <div class="gym-workout-theme-setting-item-header">
                            <?php esc_html_e( 'General Options Options', 'gym-workout' ); ?>                            
                       	</div>
                        <div class="gym-workout-theme-setting-item-content">
                        	<a target="_blank" href="<?php echo esc_url( admin_url('customize.php?autofocus[control]=gym_workout_preloader_setting') ); ?>"><?php esc_html_e('Go to General Options', 'gym-workout'); ?></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 ', 'gym-workout' ); ?></p>
                	</div>
                	
                	<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("Customize All Fonts", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("Customize All Color", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("Section Reorder", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("Typography Options", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>

					<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("One Click Demo Import", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>
					<a target="_blank" href="<?php echo esc_url( GYM_WORKOUT_BUY_NOW ); ?>" class="gym-workout-theme-setting-item gym-workout-theme-setting-item-unavailable">
					    <div class="gym-workout-theme-setting-item-header pro-option">
					        <span><?php esc_html_e("Background  Settings", "gym-workout"); ?></span> <span><?php esc_html_e("Premium", "gym-workout"); ?></span>
					    </div>
					</a>
					
				</div>
			</div>
		</div>
		<div id="righty">
			<div class="gym-workout-theme-setting-sidebar-item">
		        <div class="gym-workout-theme-setting-sidebar-header"><?php esc_html_e( 'Theme Bundle', 'gym-workout' ) ?></div>
		        <div class="gym-workout-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Get our all themes in single pack.', 'gym-workout' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( GYM_WORKOUT_BUNDLE ); ?>" target="_blank" class="blue-button-2"><?php esc_html_e( 'Theme Bundle', 'gym-workout' ) ?></a>
		            </div>
		        </div>
		    </div>
			<div class="gym-workout-theme-setting-sidebar-item">
		        <div class="gym-workout-theme-setting-sidebar-header"><?php esc_html_e( 'Free Documentation', 'gym-workout' ) ?></div>
		        <div class="gym-workout-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.', 'gym-workout' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( GYM_WORKOUT_DOCS_FREE ); ?>" target="_blank" class="blue-button-1"><?php esc_html_e( 'Free Documentation', 'gym-workout' ) ?></a>
		            </div>
		        </div>
		    </div>
		    <div class="gym-workout-theme-setting-sidebar-item">
		        <div class="gym-workout-theme-setting-sidebar-header"><?php esc_html_e( 'Support', 'gym-workout' ) ?></div>
		        <div class="gym-workout-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!', 'gym-workout' ) ?></p>
		            <div id="admin_links">
		            	<a class="blue-button-2" href="<?php echo esc_url( GYM_WORKOUT_SUPPORT_FREE ); ?>" target="_blank" class="btn3"><?php esc_html_e( 'Support', 'gym-workout' ) ?></a>
		            </div>
		        </div>
		    </div>
		    <div class="gym-workout-theme-setting-sidebar-item">
		        <div class="gym-workout-theme-setting-sidebar-header"><?php esc_html_e( 'Review', 'gym-workout' ) ?></div>
		        <div class="gym-workout-theme-setting-sidebar-content">
		            <p class="m-0"><?php esc_html_e( 'Are you having fun with Gym Workout? Review us on WordPress.org to show your support!', 'gym-workout' ) ?></p>
		            <div id="admin_links">
		            	<a href="<?php echo esc_url( GYM_WORKOUT_REVIEW_FREE ); ?>" target="_blank" class="blue-button-1"><?php esc_html_e( 'Review', 'gym-workout' ) ?></a>
		            </div>
		        </div>
		    </div>
		</div>
	</div>

<?php } ?>
