<?php
//about theme info
add_action( 'admin_menu', 'preschool_nursery_gettingstarted' );
function preschool_nursery_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'preschool-nursery'), esc_html__('About Theme', 'preschool-nursery'), 'edit_theme_options', 'preschool-nursery-guide-page', 'preschool_nursery_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function preschool_nursery_admin_theme_style() {
   wp_enqueue_style('preschool-nursery-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/get_started_info.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/tab.js');
}
add_action('admin_enqueue_scripts', 'preschool_nursery_admin_theme_style');

//guidline for about theme
function preschool_nursery_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'preschool-nursery' );
?>

<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/media/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', 'preschool-nursery'); ?></a>
			<a href="<?php echo esc_url( PRESCHOOL_NURSERY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'preschool-nursery' ); ?></a>
			<a href="<?php echo esc_url( PRESCHOOL_NURSERY_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'preschool-nursery' ); ?></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', 'preschool-nursery' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="preschool_nursery_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'preschool-nursery' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="preschool_nursery_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'preschool-nursery' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="preschool_nursery_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'preschool-nursery' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Preschool Nursery Theme', 'preschool-nursery' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( PRESCHOOL_NURSERY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'preschool-nursery' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'preschool-nursery'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( PRESCHOOL_NURSERY_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'preschool-nursery'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'Preschool Nursery is a highly functional theme with a beautiful and responsive design created significantly for nurseries, kindergartens, preschools, playschools, child training, kids academies, children stores, daycare centers, toddler care, school, kids center, child development, playgroup, pre-k, music schools for children, primary education schools, etc. Backed by a user-friendly theme interface, this theme is going to give you a beautiful online presence. The professional appeal it gives to your website is simply remarkable as an audience will be impressed to see a design that looks out of the box. The clean design aesthetics are going to make the theme really perfect for the purpose with so many personalization options given to try different things to see what looks the best for your website. The optimized codes are going to make your website deliver faster page load time making the page load within seconds. Further, there are secure and clean codes incorporated into the theme making it function really well. The multipurpose and theme provides a nice interactive environment for your website so that users will be able to interact with you as well as take the necessary steps as Call To Action Buttons (CTA) prompt them to do so. It is a Bootstrap-based theme and has SEO-friendly codes along with so many elements such as the Testimonial section, Banner, etc. for a great website.', 'preschool-nursery' ); ?></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( 'Preschool Nursery Theme Information', 'preschool-nursery' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( PRESCHOOL_NURSERY_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'preschool-nursery' ); ?></a>
					<a href="<?php echo esc_url( PRESCHOOL_NURSERY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'preschool-nursery' ); ?></a>
					<a href="<?php echo esc_url( PRESCHOOL_NURSERY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'preschool-nursery' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/media/responsive.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Preschool Nursery Pro Theme', 'preschool-nursery' ); ?></h4>
				<p><?php esc_html_e( 'Using this child-friendly Nursery WordPress Theme, building a child-oriented website just got a whole lot easier.    This theme comes with an impressive design aesthetic and appearance that is sure to catch visitors’ eyes. Moreover, the full-width slider on your website will enable you to quickly recognize it and clearly communicate its purpose. If you are creating a website for a kindergarten, daycare center, or you are offering childcare services, look no further. You will find this theme overall design extremely suitable. With some top-notch eCommerce capabilities included in this theme in the form of Woocommerce integration, you won’t have to worry about pushing your products or services online. This will help you in selling products as well as services online and generate more revenue online for your business. The most interesting part is the drag and drop page builder included as a part of this Nursery WordPress Theme. This will make customization extremely easy allowing you to implement whatever changes to want to make to your website. So by getting a highly customized look for your website, you can definitely set the bar high for your competitors. With dedicated support from our expert developers, you will feel confident while working with the theme as you are just an email away from getting help if something goes wrong. Translation-ready features are available with the theme allowing you to make your content available in different languages. There are numerous widgets and shortcodes available with the Nursery WordPress Theme facilitating you to add many content elements to your website as and when needed.', 'preschool-nursery' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'preschool-nursery' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'preschool-nursery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'preschool-nursery' ); ?></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?', 'preschool-nursery' ); ?></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.', 'preschool-nursery' ); ?></P>
						<a href="<?php echo esc_url( PRESCHOOL_NURSERY_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'preschool-nursery' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'preschool-nursery'); ?></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.', 'preschool-nursery' ); ?></P>
						<a href="<?php echo esc_url( PRESCHOOL_NURSERY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'preschool-nursery'); ?></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', 'preschool-nursery'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>