<?php
//about theme info
add_action( 'admin_menu', 'advance_business_gettingstarted' );
function advance_business_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'advance-business'), esc_html__('Theme Demo Content', 'advance-business'), 'edit_theme_options', 'advance_business_guide', 'advance_business_mostrar_guide');   
}

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

//guidline for about theme
function advance_business_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'advance-business' );
?>

<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-business'); ?></a>
			<a href="<?php echo esc_url( ADVANCE_BUSINESS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-business' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/business-startup-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'advance-business' ); ?></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-business' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="advance_business_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'advance-business' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_business_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'advance-business' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_business_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'advance-business' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_business_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'advance-business' ); ?>
					</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 Business', 'advance-business' ); ?> <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 Business', 'advance-business' ); ?></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 Business Theme', 'advance-business' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ADVANCE_BUSINESS_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-business' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'advance-business'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ADVANCE_BUSINESS_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'advance-business'); ?></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( 'Advance Business is a powerful, bold, flexible, dynamic, and neatly structured business theme suitable for corporate companies, IT firms, startups, small and medium-sized businesses, online businesses, commercial websites, ad agencies, hotels, fitness centers, shops, educational institutions, health services, financial advisors, construction companies, insurance brokers, investment consultants, bloggers, creative professionals, digital marketing agencies, workshops, consulting firms, finance companies, corporate strategy agencies, management services, professional services, entrepreneurship ventures, SEO agencies, corporate houses, banking institutions, course hubs, training centers, accountant services, HR consulting, fashion brands, content-focused websites, news and lifestyle platforms, medical services, travel agencies, advertising consultants, digital agencies, cryptocurrency businesses, bitcoin share businesses, sales-targeting companies, and other business websites. The theme is also ideal for marketing businesses, investment agencies, promotional firms, and blogs providing business tips. It provides all modern website essentials under one roof, is responsive with a mobile-first approach, cross-browser compatible, translation-ready, RTL-enabled, and speed-optimized. Social media integration enhances online visibility, and call-to-action (CTA) buttons guide visitors effectively. Fully customizable to match your brand, it is capable of generating higher traffic and better search engine rankings. Fully compatible with WooCommerce for online store setup, Contact Form 7 for lead capture, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, Advance Business provides a secure, bug-free, and professional platform for any business website.', 'advance-business' ); ?></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 Business Theme Information', 'advance-business' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ADVANCE_BUSINESS_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'advance-business' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_BUSINESS_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'advance-business' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_BUSINESS_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'advance-business' ); ?></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 Business Pro Theme', 'advance-business' ); ?></h4>
				<P><?php esc_html_e( 'Advance Business is a powerful, bold, flexible, dynamic, and neatly structured business theme suitable for corporate companies, IT firms, startups, small and medium-sized businesses, online businesses, commercial websites, ad agencies, hotels, fitness centers, shops, educational institutions, health services, financial advisors, construction companies, insurance brokers, investment consultants, bloggers, creative professionals, digital marketing agencies, workshops, consulting firms, finance companies, corporate strategy agencies, management services, professional services, entrepreneurship ventures, SEO agencies, corporate houses, banking institutions, course hubs, training centers, accountant services, HR consulting, fashion brands, content-focused websites, news and lifestyle platforms, medical services, travel agencies, advertising consultants, digital agencies, cryptocurrency businesses, bitcoin share businesses, sales-targeting companies, and other business websites. The theme is also ideal for marketing businesses, investment agencies, promotional firms, and blogs providing business tips. It provides all modern website essentials under one roof, is responsive with a mobile-first approach, cross-browser compatible, translation-ready, RTL-enabled, and speed-optimized. Social media integration enhances online visibility, and call-to-action (CTA) buttons guide visitors effectively. Fully customizable to match your brand, it is capable of generating higher traffic and better search engine rankings. Fully compatible with WooCommerce for online store setup, Contact Form 7 for lead capture, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, Advance Business provides a secure, bug-free, and professional platform for any business website.', 'advance-business' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'advance-business' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'advance-business' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'advance-business' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'advance-business' ); ?></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-business' ); ?></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-business' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_BUSINESS_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'advance-business' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'advance-business'); ?></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-business' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_BUSINESS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'advance-business'); ?></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-business'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>