<?php
//about theme info
add_action( 'admin_menu', 'sauna_lite_gettingstarted' );
function sauna_lite_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'sauna-lite'), esc_html__('Theme Demo Content', 'sauna-lite'), 'edit_theme_options', 'sauna_lite_guide', 'sauna_lite_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function sauna_lite_admin_theme_style() {
   wp_enqueue_style('sauna-lite-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/getstart.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/tab.js');

    // Admin notice code START
	wp_register_script('sauna-lite-notice', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('sauna-lite-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'sauna_lite_admin_theme_style');

//guidline for about theme
function sauna_lite_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'sauna-lite' );
?>

<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/dashboard/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', 'sauna-lite'); ?></a>
				<a href="<?php echo esc_url( SAUNA_LITE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'sauna-lite' ); ?></a>
				<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/sauna-spa-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'sauna-lite' ); ?></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', 'sauna-lite' ); ?></a>
				</span>
			</div>
		</div>
		<div class="tc-container tab-sec">
			<div class="tc-tabs">
				<ul>
					<li class="tablinks home active" onclick="sauna_lite_openCity(event, 'tc_demo')">
						<a href="#">
							<?php esc_html_e( 'Theme Demo Import', 'sauna-lite' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="sauna_lite_openCity(event, 'tc_index')">
						<a href="#">
							<?php esc_html_e( 'Free Theme Information', 'sauna-lite' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="sauna_lite_openCity(event, 'tc_pro')">
						<a href="#">
							<?php esc_html_e( 'Premium Theme Information', 'sauna-lite' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="sauna_lite_openCity(event, 'tc_create')">
						<a href="#">
							<?php esc_html_e( 'Theme Support', 'sauna-lite' ); ?>
						</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 Sauna Theme', 'sauna-lite' ); ?> <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 Sauna Lite', 'sauna-lite' ); ?></h4>
						<?php /* Demo Import */ require get_parent_theme_file_path( '/inc/dashboard/demo-importer.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 Sauna Theme', 'sauna-lite' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
					<hr>
					<div class="info-link">
						<a href="<?php echo esc_url( SAUNA_LITE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'sauna-lite' ); ?></a>
						<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'sauna-lite'); ?></a>
						<a class="get-pro" href="<?php echo esc_url( SAUNA_LITE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'sauna-lite'); ?></a>
					</div>
					<div class="col-tc-6">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/images/screen.png" alt="" />
					</div>
					<div class="col-tc-6">
						<P><?php esc_html_e( 'Sauna Lite is a free, responsive, and elegant theme designed for wellness, beauty, and health-focused businesses, ideal for spas, salons, physiotherapy centers, yoga studios, massage parlors, makeup artists, hairstylists, wellness clinics, beauty parlours, steam bath centers, acupuncture therapy, manicure and pedicure services, diet planners, cosmetic stores, fitness accessory shops, holistic healing centers, meditation studios, herbal therapy clinics, aromatherapy services, skincare treatment centers, and relaxation retreats, offering a calming and professional layout tailored for relaxation-focused websites. Built with secure, clean code and optimized for speed, it ensures fast performance across all devices, with sections for services, testimonials, about us, social media links, and header contact details to boost engagement. Sauna Lite integrates seamlessly with Contact Form 7, WooCommerce, Yoast SEO, Jetpack, and Smush for inquiry handling, online bookings or sales, performance optimization, image compression, and improved search visibility. Fully translation-ready and highly customizable via the theme customizer, it allows effortless personalization of layouts, colors, and typography. Relevant keywords include spa and salon theme, wellness center template, physiotherapy clinic design, yoga studio theme, massage therapy website design, beauty care website template, skincare clinic design, meditation center layout, and holistic wellness theme, making Sauna Lite an ideal choice for creating a professional, soothing, and health-focused online presence.', 'sauna-lite' ); ?></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( 'Sauna Lite Theme Information', 'sauna-lite' ); ?></h3>
					<hr>
					<div class="info-link-pro">
						<a href="<?php echo esc_url( SAUNA_LITE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'sauna-lite' ); ?></a>
						<a href="<?php echo esc_url( SAUNA_LITE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'sauna-lite' ); ?></a>
						<a href="<?php echo esc_url( SAUNA_LITE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'sauna-lite' ); ?></a>
					</div>
					<div class="pro-image">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/images/resize.png" alt="" />
					</div>
				<div class="col-pro-5">
					<h4><?php esc_html_e( 'TC Sauna Pro Theme', 'sauna-lite' ); ?></h4>
					<P><?php esc_html_e( 'The Sauna Spa WordPress theme is a newly launched, absolutely free theme developed precisely for spa, salon, parlor, wellness, beauty, physiotherapy, massage, health, and other types of hospitality businesses. This Premium Sauna WordPress Theme is entirely mobile responsive and doesnt offer compatibility issues with the latest WordPress versions. Its a cross-browser compatible Premium Spa WordPress Theme which performs excellently on different browsers. It features a variety of sections such as about us section, testimonial and service section. This Beauty WordPress theme has Header Phone number display, breadcrumbs, and social media integration. Also, being WooCommerce compatible, this Premium Spa WP Theme allows you to implement e-commerce functionality to your spa website with a very little effort. It offers faster page load time as it is built using secure and clean code. It allows you to manage the settings very easily using customizer. Grab this Best Sauna Spa WordPress theme now!', 'sauna-lite' ); ?></P>	
				</div>
				<div class="col-pro-6">				
					<h4><?php esc_html_e( 'Product Description', 'sauna-lite' ); ?></h4>
					<ul>
						<li><?php esc_html_e( 'Theme Options using Customizer API', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Responsive design', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Advanced Color options', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( '100+ Font Family Options', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Background Image Option', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Simple and Mega Menu Option', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Enable-Disable options on All sections', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Home Page setting for different sections', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Advance Slider with multiple effects and control options', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Pagination option', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Custom CSS option', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Translations Ready', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Parallax Image-Background Section', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Customizable Home Page', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Full-Width Template', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Gallery, Banner & Post Type Plugin Functionality', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Woo Commerce Compatible', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Multiple Inner Page Templates', 'sauna-lite' ); ?></li>
						<li><?php esc_html_e( 'Advance Social Media Feature', 'sauna-lite' ); ?></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?', 'sauna-lite' ); ?></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.', 'sauna-lite' ); ?></P>
							<a href="<?php echo esc_url( SAUNA_LITE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'sauna-lite' ); ?></a>
						</div>
					</div>
					<div class="tab-cont">	
						<h4><?php esc_html_e('Reviews', 'sauna-lite'); ?></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.', 'sauna-lite' ); ?></P>
							<a href="<?php echo esc_url( SAUNA_LITE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'sauna-lite'); ?></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', 'sauna-lite'); ?></a>
						</div><!-- END .tc-buttons -->
				    </div>
				</div>
			</div><!-- END .tc-section -->
    	</div>
    </div>
</div>
<?php } ?>