<?php
//about theme info
add_action( 'admin_menu', 'advance_education_gettingstarted' );
function advance_education_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'advance-education'), esc_html__('Theme Demo Content', 'advance-education'), 'edit_theme_options', 'advance_education_guide', 'advance_education_mostrar_guide');   
}

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

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

<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-education'); ?></a>
			<a href="<?php echo esc_url( ADVANCE_EDUCATION_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-education' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/online-education-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'advance-education' ); ?></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-education' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="advance_education_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'advance-education' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_education_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'advance-education' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_education_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'advance-education' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_education_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'advance-education' ); ?>
					</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 Education', 'advance-education' ); ?> <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 Education', 'advance-education' ); ?></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 Education Theme', 'advance-education' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ADVANCE_EDUCATION_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-education' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'advance-education'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ADVANCE_EDUCATION_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'advance-education'); ?></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 Education is a fresh, engaging, visually appealing, and elegant education theme for all classes from preschools and kindergartens to schools, colleges, and universities. It suits all LMS platforms, training academies, online education portals, e-learning websites, tutoring services, coaching institutes, education blogs, university portals, training centers, kindergartens, academic hubs, workshops, distance learning programs, schooling, tuition, preparation courses, guidance, study material, competitive exams like SAT, personality development instruction, summer camps, mentors, online libraries, educational websites, home tuitions, private schools, home-learning, language schools, virtual self-learning, courses hub, academies, boarding schools, charter schools, religious education, secondary schools, and everything related to learning and teaching. It offers various layout options and multiple formats to change the look and feel of the website from modern to bold and vice versa. This responsive and retina-ready education theme is adaptable to changing screen sizes of mobiles, tablets, and desktops, is SEO optimized, and is compatible with all leading browsers. Fully translation-ready, it enables seamless multilingual support including Arabic, Chinese, French, German, Spanish, Italian, Japanese, Russian, and Turkish. Fully compatible with WooCommerce for selling online courses and educational products, Contact Form 7 for lead capture, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, Advance Education provides a comprehensive platform to build professional educational websites with ease. ', 'advance-education' ); ?></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 Education Theme Information', 'advance-education' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ADVANCE_EDUCATION_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'advance-education' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_EDUCATION_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'advance-education' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_EDUCATION_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'advance-education' ); ?></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 Education Pro Theme', 'advance-education' ); ?></h4>
				<P><?php esc_html_e( 'Advance Education is a fresh, engaging, visually appealing, and elegant education theme for all classes from preschools and kindergartens to schools, colleges, and universities. It suits all LMS platforms, training academies, online education portals, e-learning websites, tutoring services, coaching institutes, education blogs, university portals, training centers, kindergartens, academic hubs, workshops, distance learning programs, schooling, tuition, preparation courses, guidance, study material, competitive exams like SAT, personality development instruction, summer camps, mentors, online libraries, educational websites, home tuitions, private schools, home-learning, language schools, virtual self-learning, courses hub, academies, boarding schools, charter schools, religious education, secondary schools, and everything related to learning and teaching. It offers various layout options and multiple formats to change the look and feel of the website from modern to bold and vice versa.', 'advance-education' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'advance-education' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'advance-education' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'advance-education' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'advance-education' ); ?></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-education' ); ?></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-education' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_EDUCATION_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'advance-education' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'advance-education'); ?></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-education' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_EDUCATION_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'advance-education'); ?></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-education'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>