<?php
//about theme info
add_action( 'admin_menu', 'advance_ecommerce_store_gettingstarted' );
function advance_ecommerce_store_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'advance-ecommerce-store'), esc_html__('Theme Demo Content', 'advance-ecommerce-store'), 'edit_theme_options', 'advance_ecommerce_store_guide', 'advance_ecommerce_store_mostrar_guide');   
}

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

//guidline for about theme
function advance_ecommerce_store_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'advance-ecommerce-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/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-ecommerce-store'); ?></a>
			<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-ecommerce-store' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/wordpress-ecommerce-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'advance-ecommerce-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', 'advance-ecommerce-store' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="advance_ecommerce_store_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'advance-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_ecommerce_store_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'advance-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_ecommerce_store_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'advance-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_ecommerce_store_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'advance-ecommerce-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 Advance Ecommerce Store', 'advance-ecommerce-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 Advance Ecommerce Store', 'advance-ecommerce-store' ); ?></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 Ecommerce Store Theme', 'advance-ecommerce-store' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-ecommerce-store' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'advance-ecommerce-store'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'advance-ecommerce-store'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
				<P><?php esc_html_e( 'Advance Ecommerce Store is a stylish, intuitive, engaging, and robust theme for all types of shops, whether an offline store striving to establish an online presence or an eCommerce shop expanding its product range. Ideal for bookstores, furniture stores, 3D assets stores, electric scooters, skateboards, electronics, mobile and gadgets stores, e-shopping platforms, retail stores, second-hand shops, kids’ fashion, LED sneakers, bracelets, Bluetooth speakers, men’s fashion, fitness trackers, headphones, selfie drones, hoverboards, smartwatches, apparel stores, cosmetics shops, automobile stores, online grocery, candles, beach towels, toys, purses and handbags, jewelry stores, and any website selling products online. This multipurpose eCommerce theme also suits sports products, cell phone cases, coffee, bathware, yoga products, enamel pins, technology, clothing, electronics, accessories, flowers, art supplies, camping equipment, socks, kitchen supplies, T-shirts, pharmacy items, and more. Fully responsive, minimal, cross-browser compatible, translation-ready, and SEO-optimized, it features sliders to showcase best deals, offers, and top-selling products, social media integration for product sharing, smartly placed call-to-action (CTA) buttons, store locator, and a customizable gallery to attract visitors. Compatible with WooCommerce for online store setup, Contact Form 7 for inquiries, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, Advance Ecommerce Store provides a flexible, professional, and user-friendly platform for all online retail businesses.', 'advance-ecommerce-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( 'Advance Ecommerce Store Theme Information', 'advance-ecommerce-store' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'advance-ecommerce-store' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'advance-ecommerce-store' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'advance-ecommerce-store' ); ?></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 Ecommerce Store Pro Theme', 'advance-ecommerce-store' ); ?></h4>
				<P><?php esc_html_e( 'Advance Ecommerce Store is a stylish, intuitive, engaging, and robust theme for all types of shops, whether an offline store striving to establish an online presence or an eCommerce shop expanding its product range. Ideal for bookstores, furniture stores, 3D assets stores, electric scooters, skateboards, electronics, mobile and gadgets stores, e-shopping platforms, retail stores, second-hand shops, kids’ fashion, LED sneakers, bracelets, Bluetooth speakers, men’s fashion, fitness trackers, headphones, selfie drones, hoverboards, smartwatches, apparel stores, cosmetics shops, automobile stores, online grocery, candles, beach towels, toys, purses and handbags, jewelry stores, and any website selling products online. This multipurpose eCommerce theme also suits sports products, cell phone cases, coffee, bathware, yoga products, enamel pins, technology, clothing, electronics, accessories, flowers, art supplies, camping equipment, socks, kitchen supplies, T-shirts, pharmacy items, and more.', 'advance-ecommerce-store' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'advance-ecommerce-store' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'advance-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'advance-ecommerce-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?', 'advance-ecommerce-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.', 'advance-ecommerce-store' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'advance-ecommerce-store' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'advance-ecommerce-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.', 'advance-ecommerce-store' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_ECOMMERCE_STORE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'advance-ecommerce-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', 'advance-ecommerce-store'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>