<?php
//about theme info
add_action( 'admin_menu', 'advance_fitness_gym_gettingstarted' );
function advance_fitness_gym_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'advance-fitness-gym'), esc_html__('Theme Demo Content', 'advance-fitness-gym'), 'edit_theme_options', 'advance_fitness_gym_guide', 'advance_fitness_gym_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function advance_fitness_gym_admin_theme_style() {
   wp_enqueue_style('advance-fitness-gym-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/admin/admin.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/admin/js/tab.js');

   // Admin notice code START
	wp_register_script('advance-fitness-gym-notice', esc_url(get_template_directory_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('advance-fitness-gym-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'advance_fitness_gym_admin_theme_style');

//guidline for about theme
function advance_fitness_gym_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'advance-fitness-gym' );
?>

<div class="wrapper-info">  
	<div id="tc-header">
		<div class="tc-container  main-header">
			<a class="tc-logo">
				<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/logo.png" alt="" />
			</a>
			<span class="tc-header-action">
			<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customize', 'advance-fitness-gym'); ?></a>
			<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-fitness-gym' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/wordpress-fitness-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'advance-fitness-gym' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/wordpress-theme-bundle' ); ?>" class="bundle_btn" target="_blank"> <?php esc_html_e( 'Bundle of 220+ Themes at $99', 'advance-fitness-gym' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="advance_fitness_gym_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'advance-fitness-gym' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_fitness_gym_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'advance-fitness-gym' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_fitness_gym_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'advance-fitness-gym' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_fitness_gym_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'advance-fitness-gym' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_fitness_gym_openCity(event, 'tc_crawlhunt')">
					<a href="#">
						<?php esc_html_e( 'CrawlHunt (Free SEO)', 'advance-fitness-gym' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_demo" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Advance Fitness Gym', 'advance-fitness-gym' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="demo">
					<h4><?php esc_html_e( 'Click the "Run Importer" button below to load demo content for Advance Fitness Gym', 'advance-fitness-gym' ); ?></h4>
					<?php /* Demo Import */ require get_parent_theme_file_path( '/inc/admin/demo-import.php' );?>
				</div>
			</div><!-- END .tc-section -->
		</div>
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Advance Fitness Gym Theme', 'advance-fitness-gym' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-fitness-gym' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'advance-fitness-gym'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ADVANCE_FITNESS_GYM_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'advance-fitness-gym'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.jpg" alt="" />
				</div>
				<div class="col-tc-6">
				<P><?php esc_html_e( 'Advance Fitness Gym is a bold, impactful, intuitive, and dynamic fitness theme for gyms, fitness clubs, yoga classes, weight loss centres, personal trainers, aerobics classes, yoga studios, karate, dancing, BMI calculators, workout appointments, crossfit programs, massage centers, cardio, class timetables, healthcare centres, spas, Ayurveda training, workout studios, supplements, fitness courses, personal training, health and wellness, nutrition, exercise, sports, strength training, boxing, meditation, gym equipment shops, zo-yoga classes, muscular development, diet planners, gymnasiums, bodybuilding, fitness coaching, fitness consulting, physiotherapy, indoor and outdoor exercise classes, health experts, boot camps, sports clubs, pilates, martial arts nutrition, wellness centers, psychologists, marathon events, dance schools, martial arts studios, zumba classes, health consultants, and all fitness enthusiasts aiming to promote health and wellness. This multipurpose theme features an inviting design to attract visitors, built on the Bootstrap framework with a fully responsive layout for mobiles, tablets, and desktops. Highly customizable through the theme customizer without coding, it is cross-browser compatible, translation-ready, SEO-optimized, and integrated with social media icons. Interactive features, animated transitions, multiple header layouts, advanced typography, wide blocks, footer, and sidebar options allow complete personalization to match your brand. Fully compatible with WooCommerce for fitness product or class sales, Contact Form 7 for appointment bookings and inquiries, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, Advance Fitness Gym provides a professional and versatile platform for any fitness-related website.', 'advance-fitness-gym' ); ?></P>
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_pro" class="tabcontent">
				<h3><?php esc_html_e( 'Advance Fitness Gym Theme Information', 'advance-fitness-gym' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'advance-fitness-gym' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'advance-fitness-gym' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'advance-fitness-gym' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/responsiveimg.jpg" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Advance Fitness Gym Pro Theme', 'advance-fitness-gym' ); ?></h4>
				<P><?php esc_html_e( 'Advance Fitness Gym is a bold, impactful, intuitive, and dynamic fitness theme for gyms, fitness clubs, yoga classes, weight loss centres, personal trainers, aerobics classes, yoga studios, karate, dancing, BMI calculators, workout appointments, crossfit programs, massage centers, cardio, class timetables, healthcare centres, spas, Ayurveda training, workout studios, supplements, fitness courses, personal training, health and wellness, nutrition, exercise, sports, strength training, boxing, meditation, gym equipment shops, zo-yoga classes, muscular development, diet planners, gymnasiums, bodybuilding, fitness coaching, fitness consulting, physiotherapy, indoor and outdoor exercise classes, health experts, boot camps, sports clubs, pilates, martial arts nutrition, wellness centers, psychologists, marathon events, dance schools, martial arts studios, zumba classes, health consultants, and all fitness enthusiasts aiming to promote health and wellness. This multipurpose theme features an inviting design to attract visitors, built on the Bootstrap framework with a fully responsive layout for mobiles, tablets, and desktops.', 'advance-fitness-gym' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'advance-fitness-gym' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'advance-fitness-gym' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'advance-fitness-gym' ); ?></li>
				</ul>				
			</div>	
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_create" class="tabcontent">
				<div class="tab-cont">
					<h4><?php esc_html_e( 'Need Support?', 'advance-fitness-gym' ); ?></h4>				
					<div class="info-link-support">
						<P><?php esc_html_e( 'Our team is obliged to help you in every way possible whenever you face any type of difficulties and doubts.', 'advance-fitness-gym' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'advance-fitness-gym' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'advance-fitness-gym'); ?></h4>				
					<div class="info-link-support">
						<P><?php esc_html_e( 'It is commendable to have such a theme inculcated with amazing features and robust functionalities. I feel grateful to recommend this theme to one and all.', 'advance-fitness-gym' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_FITNESS_GYM_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'advance-fitness-gym'); ?></a>
					</div>
				</div>

				<div class="tc-section large-section">
					<h2>Let‘s customize your website</h2>
					<p>There are many changes you can make to customize your website. Explore customization options and make it unique.</p>
					<div class="tc-buttons">
						<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>" class="tc-btn primary large-button"><?php esc_html_e('Start Customizing', 'advance-fitness-gym'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_crawlhunt" class="tabcontent">
				<div class="crawlhunt-wrap">
					<div class="crawlhunt-image">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/crawlhunt.png" alt="<?php esc_attr_e( 'Crawl Hunt - Advanced SEO Optimization Tool', 'advance-fitness-gym' ); ?>" />
					</div>
					<div class="crawlhunt-content">
						<h2><?php esc_html_e( 'Improve Your Website SEO with CrawlHunt 🚀', 'advance-fitness-gym' ); ?></h2>
						<p><?php esc_html_e( 'Already built your website? Make sure Google can find and understand it.CrawlHunt scans your website for SEO issues like missing meta tags, broken links, image ALT text, indexing problems, and more. Get actionable insights and AI-powered fixes from one dashboard.', 'advance-fitness-gym' ); ?></p>
						<div class="crawlhunt-buttons">
							<a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=crawl-hunt-seo-audit-tool&tab=search&type=term' ) ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Get Crawl Hunt Plugin For Free', 'advance-fitness-gym' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
						<div class="crawlhunt-buttons">
							<a target="_blank" href="<?php echo esc_url( 'https://www.crawlhunt.com/' ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Scan My Website for Free →', 'advance-fitness-gym' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
					</div>
				</div><!-- END .crawlhunt-wrap -->
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>