<?php
//about theme info
add_action( 'admin_menu', 'electronics_gadgets_gettingstarted' );
function electronics_gadgets_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'electronics-gadgets'), esc_html__('Theme Demo Content', 'electronics-gadgets'), 'edit_theme_options', 'electronics_gadgets_guide', 'electronics_gadgets_mostrar_guide');   
}

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

    // Admin notice code START
	wp_register_script('electronics-gadgets-notice', esc_url(get_stylesheet_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('electronics-gadgets-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'electronics_gadgets_admin_theme_style');

//guidline for about theme
function electronics_gadgets_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'electronics-gadgets' );
?>
<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-gadgets'); ?></a>
			<a href="<?php echo esc_url( ELECTRONICS_GADGETS_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'electronics-gadgets' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/electronic-gadget-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'electronics-gadgets' ); ?></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-gadgets' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="electronics_gadgets_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'electronics-gadgets' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_gadgets_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'electronics-gadgets' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_gadgets_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'electronics-gadgets' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="electronics_gadgets_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'electronics-gadgets' ); ?>
					</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 Gadgets', 'electronics-gadgets' ); ?> <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 Gadgets', 'electronics-gadgets' ); ?></h4>
					<?php /* Demo Import */ require get_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 Gadgets Theme', 'electronics-gadgets' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ELECTRONICS_GADGETS_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'electronics-gadgets' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'electronics-gadgets'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ELECTRONICS_GADGETS_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'electronics-gadgets'); ?></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 Gadgets is a versatile and modern theme built with the Bootstrap framework, ideal for gadget shops, electronic appliance stores, electrical markets, consumer electronics, and eCommerce businesses. Perfect for Electronics, Gadgets, Tech, Devices, Innovation, Smart Technology, Electronics Store, Tech Reviews, Electronics Shop, Gadget Trends, Smart Devices, Tech Products, Gadget Retail, Electronics Repair, Tech Accessories, Home Appliances, Wearable Tech, Electronic Components, Digital Devices, Gadget Comparisons, Gadget Marketplace, Tech Deals, Online Electronics Store, and Smart Home Devices, this theme offers a fully customizable, code-free design that allows users to create professional websites effortlessly. Fully responsive and retina-ready, it ensures your site looks great on desktops, tablets, and mobile devices. The theme supports multiple languages through a multilingual translation plugin and RTL compatibility, and provides SEO-friendly, optimized code for better visibility, traffic, and performance. With interactive Call to Action (CTA) buttons, social media integration, and seamless compatibility with Contact Form 7 for customer inquiries and pre-sale questions, Electronics Gadgets offers an engaging user experience. Its WooCommerce integration allows businesses to sell products online efficiently, making it a complete solution for any electronics or gadget-focused eCommerce store. ', 'electronics-gadgets' ); ?></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 Gadgets Theme Information', 'electronics-gadgets' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ELECTRONICS_GADGETS_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'electronics-gadgets' ); ?></a>
					<a href="<?php echo esc_url( ELECTRONICS_GADGETS_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'electronics-gadgets' ); ?></a>
					<a href="<?php echo esc_url( ELECTRONICS_GADGETS_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'electronics-gadgets' ); ?></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( 'Electronics Gadgets Pro Theme', 'electronics-gadgets' ); ?></h4>
				<P><?php esc_html_e( 'Getting an electronics gadget shop to function online is no more a daunting task as we have many themes available that will help you do so and this Electronics Gadgets WordPress Theme is one of the best among them. It is an extremely reliable and advanced theme crafted by WordPress experts using the powerful Bootstrap framework for a robust design. This layout is catchy and the core is securely designed using some top-notch coding practices to deliver a brilliant output. Basically, it has all the features that you are looking for your website to have. This Electronics Gadgets WordPress Theme includes skillfully crafted sections that also have separate sections for your products. With such sections, you can put forward your products in a nice and attractive manner. To have all the attention of your potential clients, this theme brings a super attractive slider along with slider settings. With its plugin compatibility feature, you can easily add more features to the existing design. You get an entirely customizable design along with many easy customization options and apart from that, there are plenty of shortcodes using which, adding content elements and contact forms becomes very easy. This Electronics Gadgets WordPress Theme includes a newsletter as well that can generate leads for you and make your business more successful.', 'electronics-gadgets' ); ?></P>				
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'electronics-gadgets' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Seperate Newsletter Section', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slides', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Posttype', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'electronics-gadgets' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'electronics-gadgets' ); ?></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-gadgets' ); ?></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-gadgets' ); ?></P>
						<a href="<?php echo esc_url( ELECTRONICS_GADGETS_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'electronics-gadgets' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'electronics-gadgets'); ?></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-gadgets' ); ?></P>
						<a href="<?php echo esc_url( ELECTRONICS_GADGETS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'electronics-gadgets'); ?></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-gadgets'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>