<?php
//about theme info
add_action( 'admin_menu', 'tanawul_bakery_gettingstarted' );
function tanawul_bakery_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'tanawul-bakery'), esc_html__('About Theme', 'tanawul-bakery'), 'edit_theme_options', 'tanawul-bakery-guide-page', 'tanawul_bakery_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function tanawul_bakery_admin_theme_style() {
   wp_enqueue_style('tanawul-bakery-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/get_started_info.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/tab.js');
}
add_action('admin_enqueue_scripts', 'tanawul_bakery_admin_theme_style');

//guidline for about theme
function tanawul_bakery_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'tanawul-bakery' );
?>

<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/media/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', 'tanawul-bakery'); ?></a>
			<a href="<?php echo esc_url( TANAWUL_BAKERY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tanawul-bakery' ); ?></a>
			<a href="<?php echo esc_url( TANAWUL_BAKERY_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'tanawul-bakery' ); ?></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', 'tanawul-bakery' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="tanawul_bakery_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'tanawul-bakery' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tanawul_bakery_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'tanawul-bakery' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tanawul_bakery_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'tanawul-bakery' ); ?>
					</a>
				</li>
			</ul>
		</div><!-- END .tc-tabs -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div  id="tc_index" class="tabcontent">
				<h2><?php esc_html_e( 'Welcome to Tanawul Bakery Theme', 'tanawul-bakery' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TANAWUL_BAKERY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tanawul-bakery' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'tanawul-bakery'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TANAWUL_BAKERY_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'tanawul-bakery'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'Tanawul Bakery is known for its exemplary design and is a fascinating theme for websites related to bakery. It is also a good theme for the beverage parlours and juice centers. It is applicable to food joints as well as various businesses related to the hospitality industry like bakery, recepie blog, baking lessons, coffee shop, bakers, cafe, cook, dessert, confectionery, bread-or-cake-or-biscuit-factory, bakehouse, fast dood chain, burger, muffin pastry shop, coffee shop, restaurant, Raw Wheat, balkava, muffins, Golden Flour, Natures Gifts Bakery, Bread & Butter, cakery, candy shop, ice cream parlour, Piece of Cake, food blogger, cake shop and many more. Because of the optimised codes and its SEO friendly nature, your website has the chance to rank high on Google as well as various other search engines. Tanawul Bakery Theme is known for its user friendly nature and as a result, you will make bakery or food chain website that is not only visually stunning but interactive as well. It has multiple useful sections like the product section, Threaded Comments, testimonial section, team section, banner, CTA it also has option to add custom colors and much more. Apart from that, it has the complete compatibility with WooCommerce permitting you to open online shop and get set to become an international brand with the passage of time. This theme has passed multiple tests for speed optimization as well as fast page loading. Apart from that, it has a safe and clean code. This is a translation ready theme keeping in mind the global customers and has been designed with the prime focus on visitor engagement.', 'tanawul-bakery' ); ?></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( 'Tanawul Bakery Theme Information', 'tanawul-bakery' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TANAWUL_BAKERY_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'tanawul-bakery' ); ?></a>
					<a href="<?php echo esc_url( TANAWUL_BAKERY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'tanawul-bakery' ); ?></a>
					<a href="<?php echo esc_url( TANAWUL_BAKERY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'tanawul-bakery' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/media/responsive.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Tanawul Bakery Pro Theme', 'tanawul-bakery' ); ?></h4>
				<p><?php esc_html_e( 'If you are a bakery owner, far away people will come to you for mouth-watering treats because the temptation of taste related to tongue remains and if you are interested in attracting customers for your pastries, cakes and delicious biscuits, you need to create a professional website and for this bakery WordPress theme will play an important role. Making a top-notch bakery website might be a challenging task but this bakery theme makes things quite easy. It is accompanied by a mesmerizing design and the layout is easily adaptable on-screen. There is no need to worry in the area of resizing as well as errors related to the compatibility. Bakery WordPress theme works in an excellent manner on different operating systems, web browsers as well as devices. It is accompanied by a stylish gallery option and the website owners have the choice to upload photos. You will have amazing pictures in full-screen format.', 'tanawul-bakery' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'tanawul-bakery' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'tanawul-bakery' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'tanawul-bakery' ); ?></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?', 'tanawul-bakery' ); ?></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.', 'tanawul-bakery' ); ?></P>
						<a href="<?php echo esc_url( TANAWUL_BAKERY_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'tanawul-bakery' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'tanawul-bakery'); ?></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.', 'tanawul-bakery' ); ?></P>
						<a href="<?php echo esc_url( TANAWUL_BAKERY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'tanawul-bakery'); ?></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', 'tanawul-bakery'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>