<?php
//about theme info
add_action( 'admin_menu', 'bb_ecommerce_store_gettingstarted' );
function bb_ecommerce_store_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'bb-ecommerce-store'), esc_html__('Theme Demo Content', 'bb-ecommerce-store'), 'edit_theme_options', 'bb_ecommerce_store_guide', 'bb_ecommerce_store_mostrar_guide');   
}

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

}
add_action('admin_enqueue_scripts', 'bb_ecommerce_store_admin_theme_style');

//guidline for about theme
function bb_ecommerce_store_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'bb-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', 'bb-ecommerce-store'); ?></a>
			<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-ecommerce-store' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/ecommerce-store-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'bb-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', 'bb-ecommerce-store' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container  tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="bb_ecommerce_store_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'bb-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_ecommerce_store_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'bb-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_ecommerce_store_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'bb-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_ecommerce_store_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'bb-ecommerce-store' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="bb_ecommerce_store_openCity(event, 'tc_crawlhunt')">
					<a href="#">
						<?php esc_html_e( 'CrawlHunt (Free SEO)', 'bb-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 BB Ecommerce Store', 'bb-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 BB Ecommerce Store', 'bb-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 BB Ecommerce Store Theme', 'bb-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( BB_ECOMMERCE_STORE_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'bb-ecommerce-store' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'bb-ecommerce-store'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( BB_ECOMMERCE_STORE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'bb-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.jpg" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'BB Ecommerce Store is a modern, versatile, and fully responsive ecommerce website theme designed for online retailers, ecommerce businesses, digital storefronts, online shops, retail stores, fashion boutiques, clothing stores, electronics shops, home décor stores, furniture outlets, grocery shops, sports and fitness stores, beauty and personal care stores, and multipurpose online marketplaces. Featuring a clean, professional, and conversion-focused layout, this free ecommerce theme delivers a smooth and engaging shopping experience across desktops, tablets, and mobile devices. Built with optimized and secure code, it offers fast loading speed and SEO-friendly structure to improve online visibility. The theme includes customizable banners, product displays, featured collections, Call to Action buttons, testimonial sections, interactive design elements, and social media integration to help businesses promote products effectively. Fully compatible with WooCommerce for product management, inventory handling, and secure online sales, and Contact Form 7 for customer support and inquiries, BB Ecommerce Store provides a reliable, scalable, and high-performing solution for launching or growing an online store.', 'bb-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( 'BB Ecommerce Store Theme Information', 'bb-ecommerce-store' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'bb-ecommerce-store' ); ?></a>
					<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'bb-ecommerce-store' ); ?></a>
					<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'bb-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( 'BB Ecommerce Store Pro Theme', 'bb-ecommerce-store' ); ?></h4>
				<P><?php esc_html_e( 'BB Ecommerce Store WordPress Theme is an extremely user-friendly premium Ecommerce WordPress Theme. It is a multipurpose Ecommerce WordPress theme designed to build stunning online business stores. It is very flexible and has ample of options that makes the website development swift and easy. This is the perfect solution for webmasters who want to create modern online stores with ample number of useful features along with user & mobile friendly design. It comprises of a responsive layout design with the help of its advanced customization options. Easily change the entire look of your ecommerce store, with the help of hook and child theme features. Our WordPress ecommerce store made with secure and clean code and it best ecommerce ready WordPress themes available on the web now. It is built on the Bootstrap and has valid HTML and CSS codes. It features beautiful image galleries, numerous sidebars, well-built sections, menus, etc. This certainly makes our themes one of the best WordPress woo commerce Theme available on the internet. Sell out your products and inventory with BB Ecommerce theme and leave all your competitors battered and beaten.', 'bb-ecommerce-store' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'bb-ecommerce-store' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Seperate Newsletter Section', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slides', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Posttype', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'bb-ecommerce-store' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'bb-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?', 'bb-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.', 'bb-ecommerce-store' ); ?></P>
						<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'bb-ecommerce-store' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'bb-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.', 'bb-ecommerce-store' ); ?></P>
						<a href="<?php echo esc_url( BB_ECOMMERCE_STORE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'bb-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', 'bb-ecommerce-store'); ?></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', 'bb-ecommerce-store' ); ?>" />
					</div>
					<div class="crawlhunt-content">
						<h2><?php esc_html_e( 'Improve Your Website SEO with CrawlHunt 🚀', 'bb-ecommerce-store' ); ?></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.', 'bb-ecommerce-store' ); ?></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', 'bb-ecommerce-store' ); ?></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 →', 'bb-ecommerce-store' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
					</div>
				</div><!-- END .crawlhunt-wrap -->
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>