<?php
//about theme info
add_action( 'admin_menu', 'kid_toys_store_gettingstarted' );
function kid_toys_store_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'kid-toys-store'), esc_html__('Theme Demo Content', 'kid-toys-store'), 'edit_theme_options', 'kid_toys_store_guide', 'kid_toys_store_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function kid_toys_store_admin_theme_style() {
   wp_enqueue_style('kid-toys-store-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('kid-toys-store-notice', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('kid-toys-store-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'kid_toys_store_admin_theme_style');

//guidline for about theme
function kid_toys_store_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'kid-toys-store' );
?>

<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', 'kid-toys-store'); ?></a>
				<a href="<?php echo esc_url( KID_TOYS_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'kid-toys-store' ); ?></a>
				<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-kids-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'kid-toys-store' ); ?></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', 'kid-toys-store' ); ?></a>
				</span>
			</div>
		</div>
		<div class="tc-container tab-sec">
			<div class="tc-tabs">
				<ul>
					<li class="tablinks home active" onclick="kid_toys_store_openCity(event, 'tc_demo')">
						<a href="#">
							<?php esc_html_e( 'Theme Demo Import', 'kid-toys-store' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="kid_toys_store_openCity(event, 'tc_index')">
						<a href="#">
							<?php esc_html_e( 'Free Theme Information', 'kid-toys-store' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="kid_toys_store_openCity(event, 'tc_pro')">
						<a href="#">
							<?php esc_html_e( 'Premium Theme Information', 'kid-toys-store' ); ?>
						</a>
					</li>
					<li class="tablinks" onclick="kid_toys_store_openCity(event, 'tc_create')">
						<a href="#">
							<?php esc_html_e( 'Theme Support', 'kid-toys-store' ); ?>
						</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 Kid Toys Store', 'kid-toys-store' ); ?> <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 Kid Toys Store', 'kid-toys-store' ); ?></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 Kid Toys Store Theme', 'kid-toys-store' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
					<hr>
					<div class="info-link">
						<a href="<?php echo esc_url( KID_TOYS_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'kid-toys-store' ); ?></a>
						<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'kid-toys-store'); ?></a>
						<a class="get-pro" href="<?php echo esc_url( KID_TOYS_STORE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'kid-toys-store'); ?></a>
					</div>
					<div class="col-tc-6">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/images/screenshot.png" alt="" />
					</div>
					<div class="col-tc-6">
					<P><?php esc_html_e( 'Kid Toys Store is a vibrant and modern theme designed for kids-related websites, including preschools, childcare centers, nurseries, kindergartens, Montessori schools, primary and secondary schools, academic institutes, daycare centers, training centers, coaching institutes, after-school clubs, professional child care centers, and children’s art & craft schools, and is ideal for toy shops, kids’ party services, board games, learning activity kits, study materials, baby carriers, teething kits, baby proofing, children’s summer camps, self-defense classes, language classes, educational blogs, baby products, toddler toys, kids’ fashion, kids’ accessories, learning toys, STEM toys, playroom décor, and other kid-focused businesses. The theme features bright colors, fun-filled fonts, and a playful design to engage young audiences while remaining professional and adaptable for child healthcare blogs or educational platforms. Fully responsive and cross-browser compatible, it includes multiple page templates, clean and secure SEO-friendly code, fast page load times, translation-ready layouts, and interactive elements like threaded comments and Call to Action Buttons (CTA). With extensive customization options for backgrounds, colors, logos, and layouts, it ensures a unique website for every purpose. It seamlessly integrates WooCommerce and supports Contact Form 7 for easy setup of forms and an online store for toys, educational materials, or kids’ products.', 'kid-toys-store' ); ?></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( 'Kid Toys Store Theme Information', 'kid-toys-store' ); ?></h3>
					<hr>
					<div class="info-link-pro">
						<a href="<?php echo esc_url( KID_TOYS_STORE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'kid-toys-store' ); ?></a>
						<a href="<?php echo esc_url( KID_TOYS_STORE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'kid-toys-store' ); ?></a>
						<a href="<?php echo esc_url( KID_TOYS_STORE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'kid-toys-store' ); ?></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( 'Kid Toys Store Pro Theme', 'kid-toys-store' ); ?></h4>
				<P><?php esc_html_e( 'The premium Kids WordPress theme is a children oriented theme. It is designed for kindergartens, preschools, childcare centres, nurseries and other people intending to offer online services pertaining to children. You can also use it for your toy store or for a website which takes party orders for children. Additionally, you can use it to design a website which provides ideas for party decoration. It can also be used by paediatricians and child care specialists. This theme is designed with bright colours and fun fonts and images keeping in mind the best interest of kids and children. The premium kids WordPress theme is packed with amazing features and plugins to cater best services. It is fully responsive, translation ready and social media integrated theme. You can customize it to change its background, colours, headers, logos etc. according to your needs. It has an advanced slider with multiple effects and control options to place any option you want on the homepage. You can choose from hundreds of fonts and colours to make it lively, the way a kid website should look. It has enable/disable option for each section to keep the focus on a particular section. Buy this theme to showcase your creativity.', 'kid-toys-store' ); ?></P>			
				</div>
				<div class="col-pro-6">				
					<h4><?php esc_html_e( 'Theme Features', 'kid-toys-store' ); ?></h4>
					<ul>
						<li><?php esc_html_e( 'Theme Options using Customizer API', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Responsive design', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Advanced Color options', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( '100+ Font Family Options', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Background Image Option', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Simple Menu Option', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Additional section for products', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Enable-Disable options on All sections', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Home Page setting for different sections', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Partner Section', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Promotional Banner Section for Products', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Seperate Newsletter Section', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Text and call to action button for each slides', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Pagination option', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Custom CSS option', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Translations Ready', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Customizable Home Page', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Full-Width Template', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Woo Commerce Compatible', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Multiple Inner Page Templates', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Product Sliders', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Slider', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Posttype', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Contact page template', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Contact Widget', 'kid-toys-store' ); ?></li>
						<li><?php esc_html_e( 'Advance Social Media Feature', 'kid-toys-store' ); ?></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?', 'kid-toys-store' ); ?></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.', 'kid-toys-store' ); ?></P>
							<a href="<?php echo esc_url( KID_TOYS_STORE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'kid-toys-store' ); ?></a>
						</div>
					</div>
					<div class="tab-cont">	
						<h4><?php esc_html_e('Reviews', 'kid-toys-store'); ?></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.', 'kid-toys-store' ); ?></P>
							<a href="<?php echo esc_url( KID_TOYS_STORE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'kid-toys-store'); ?></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', 'kid-toys-store'); ?></a>
						</div><!-- END .tc-buttons -->
					</div>
				</div>
			</div><!-- END .tc-section -->
		</div>
	</div>
<?php } ?>