<?php
//about theme info
add_action( 'admin_menu', 'the_fashion_woocommerce_gettingstarted' );
function the_fashion_woocommerce_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'the-fashion-woocommerce'), esc_html__('Theme Demo Content', 'the-fashion-woocommerce'), 'edit_theme_options', 'the_fashion_woocommerce_guide', 'the_fashion_woocommerce_mostrar_guide');   
}

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

//guidline for about theme
function the_fashion_woocommerce_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'the-fashion-woocommerce' );
?>

<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', 'the-fashion-woocommerce'); ?></a>
			<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'the-fashion-woocommerce' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/fashion-woocommerce-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'the-fashion-woocommerce' ); ?></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', 'the-fashion-woocommerce' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="the_fashion_woocommerce_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'the-fashion-woocommerce' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_fashion_woocommerce_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'the-fashion-woocommerce' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_fashion_woocommerce_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'the-fashion-woocommerce' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_fashion_woocommerce_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'the-fashion-woocommerce' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="the_fashion_woocommerce_openCity(event, 'tc_crawlhunt')">
					<a href="#">
						<?php esc_html_e( 'CrawlHunt (Free SEO)', 'the-fashion-woocommerce' ); ?>
					</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 The Fashion WooCommerce', 'the-fashion-woocommerce' ); ?> <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 The Fashion WooCommerce', 'the-fashion-woocommerce' ); ?></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 The Fashion WooCommerce Theme', 'the-fashion-woocommerce' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'the-fashion-woocommerce' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'the-fashion-woocommerce'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'the-fashion-woocommerce'); ?></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( 'The Fashion WooCommerce theme is a stylish, modern, and fully responsive solution designed for fashion retailers, clothing brands, boutiques, and online apparel stores. Ideal for showcasing products such as mens and womens clothing, footwear, accessories, jewelry, activewear, casual wear, designer collections, seasonal trends, and streetwear, this theme provides a visually appealing and user-friendly platform to engage shoppers. It features a clean and minimal layout with customizable sections for product displays, promotional banners, customer reviews, and featured collections, along with interactive Call to Action (CTA) buttons to boost conversions. Fully responsive and retina-ready, the theme ensures a seamless shopping experience across desktops, tablets, and mobile devices. Enhanced with advanced personalization options for colors, typography, and layouts, you can create a fashion website that reflects your brand identity. Fully compatible with WooCommerce for product sales and inventory management, Contact Form 7 for customer inquiries, and YITH WooCommerce Wishlist for user convenience, The Fashion WooCommerce theme is SEO-optimized, fast-loading, and a complete solution for establishing a professional, high-performing online fashion store.', 'the-fashion-woocommerce' ); ?></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( 'The Fashion WooCommerce Theme Information', 'the-fashion-woocommerce' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'the-fashion-woocommerce' ); ?></a>
					<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'the-fashion-woocommerce' ); ?></a>
					<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'the-fashion-woocommerce' ); ?></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( 'The Fashion WooCommerce Pro Theme', 'the-fashion-woocommerce' ); ?></h4>
				<P><?php esc_html_e( 'Immerse your fashion brand in sophistication with our Fashion WooCommerce WordPress Theme. Designed for elegance and functionality, this theme seamlessly merges style and substance to elevate your online store. Begin your online fashion journey with a theme that caters to boutique owners, fashion retailers, and trendsetters. It’s chic and modern design serves as a captivating canvas, allowing your products to shine. The responsive layout ensures that your website looks impeccable on any device, providing a seamless shopping experience for your customers. As a premium theme, it offers exclusive features that set your online store apart. The theme is meticulously crafted to accommodate the needs of fashion-centric businesses, offering advanced customization options. Tailor your website effortlessly, reflecting your brand identity and creating a unique online presence. Users benefit from the integration of WooCommerce, empowering them to manage their products, inventory, and orders seamlessly. Showcase your fashion collections with a stunning product gallery, providing a visually engaging experience for your customers.', 'the-fashion-woocommerce' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'the-fashion-woocommerce' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'the-fashion-woocommerce' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'the-fashion-woocommerce' ); ?></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?', 'the-fashion-woocommerce' ); ?></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.', 'the-fashion-woocommerce' ); ?></P>
						<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'the-fashion-woocommerce' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'the-fashion-woocommerce'); ?></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.', 'the-fashion-woocommerce' ); ?></P>
						<a href="<?php echo esc_url( THE_FASHION_WOOCOMMERCE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'the-fashion-woocommerce'); ?></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', 'the-fashion-woocommerce'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_crawlhunt" class="tabcontent">
				<div class="crawlhunt-wrap">
					<div class="crawlhunt-image">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/crawlhunt.png" alt="<?php esc_attr_e( 'Crawl Hunt - Advanced SEO Optimization Tool', 'the-fashion-woocommerce' ); ?>" />
					</div>
					<div class="crawlhunt-content">
						<h2><?php esc_html_e( 'Improve Your Website SEO with CrawlHunt 🚀', 'the-fashion-woocommerce' ); ?></h2>
						<p><?php esc_html_e( 'Already built your website? Make sure Google can find and understand it.CrawlHunt scans your website for SEO issues like missing meta tags, broken links, image ALT text, indexing problems, and more. Get actionable insights and AI-powered fixes from one dashboard.', 'the-fashion-woocommerce' ); ?></p>
						<div class="crawlhunt-buttons">
							<a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=crawl-hunt-seo-audit-tool&tab=search&type=term' ) ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Get Crawl Hunt Plugin For Free', 'the-fashion-woocommerce' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
						<div class="crawlhunt-buttons">
							<a target="_blank" href="<?php echo esc_url( 'https://www.crawlhunt.com/' ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Scan My Website for Free →', 'the-fashion-woocommerce' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
					</div>
				</div><!-- END .crawlhunt-wrap -->
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>