<?php
//about theme info
add_action( 'admin_menu', 'electronics_store_gettingstarted' );
function electronics_store_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'electronics-store'), esc_html__('Theme Demo Content', 'electronics-store'), 'edit_theme_options', 'electronics_store_guide', 'electronics_store_mostrar_guide');   
}

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

//guidline for about theme
function electronics_store_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'electronics-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', 'electronics-store'); ?></a>
			<a href="<?php echo esc_url( ELECTRONICS_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'electronics-store' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/electronics-store-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'electronics-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', 'electronics-store' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="electronics_store_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'electronics-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_store_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'electronics-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_store_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'electronics-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_store_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'electronics-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 Electronics Store', 'electronics-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 Electronics Store', 'electronics-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 Electronics Store Theme', 'electronics-store' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ELECTRONICS_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'electronics-store' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'electronics-store'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ELECTRONICS_STORE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'electronics-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( 'Electronics Store is a fine theme designed for electronics stores, tech stores, mobile shops, gadget retailers, laptop and computer shops, headphones, technical marketplaces, multivendor shops, digital stores, appliance outlets, home electronics, consumer electronics, tech products, electronics ecommerce, electronics marketplace, tech accessories, online electronics, and electrical appliance sellers. This sophisticated multipurpose theme features a clean, user-friendly interface, responsive layout, and beautiful visuals that adapt to every screen. Professional developers have crafted it with eCommerce and online shopping in mind, including WooCommerce integration for secure transactions and easy product management. Engaging Call to Action (CTA) buttons, stunning CSS animations, and clean, optimized, SEO-friendly code ensure better performance, faster page load times, and higher organic traffic. Built on a robust Bootstrap framework, the theme provides extensive personalization options, social media integration, and a mobile-friendly design, making it ideal for electronics retailers, digital marketplaces, and tech businesses seeking a professional, interactive, and conversion-focused online presence.', 'electronics-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( 'Electronics Store Theme Information', 'electronics-store' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ELECTRONICS_STORE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'electronics-store' ); ?></a>
					<a href="<?php echo esc_url( ELECTRONICS_STORE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'electronics-store' ); ?></a>
					<a href="<?php echo esc_url( ELECTRONICS_STORE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'electronics-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( 'Electronic Store Pro Theme', 'electronics-store' ); ?></h4>
				<P><?php esc_html_e( 'If you are searching for a creative and innovative design to bring your electronics store online, you have landed at the right place as this Electronics WordPress Theme gives you exactly what you are searching for. With a layout that perfectly complements electronics stores, smartphone shops, digital and electronic appliances shops, etc. obtaining a professional and appealing website will take only a few minutes. It comes with a powerful demo that you can import in a single click and start your online journey. The intuitive and user-friendly theme options panel allows making desired changes by completely skipping the coding part. This Electronics Store WordPress Theme comes with the live theme customizer making you see all the changes live. Apart from that, it brings you layout choices as well as pre-built templates to pick from. The visitors will get highly impressed by your website’s look since it comes with a wonderful slider that effectively projects glimpses of your products. Not only that, its Woocommerce compatibility makes your website ready for eCommerce and provides you with all the online shopping tools. With a responsive design, this Free Electronics Store WordPress Theme also comes with a translation feature thanks to its WPML and RTL compliance. What are you waiting for? Explore this theme further to get the best out of it!', 'electronics-store' ); ?></P>			
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'electronics-store' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Seperate Newsletter Section', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slides', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Posttype', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'electronics-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'electronics-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?', 'electronics-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.', 'electronics-store' ); ?></P>
						<a href="<?php echo esc_url( ELECTRONICS_STORE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'electronics-store' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'electronics-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.', 'electronics-store' ); ?></P>
						<a href="<?php echo esc_url( ELECTRONICS_STORE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'electronics-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', 'electronics-store'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>