<?php
//about theme info
add_action( 'admin_menu', 'tafri_travel_gettingstarted' );
function tafri_travel_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'tafri-travel'), esc_html__('About Theme', 'tafri-travel'), 'edit_theme_options', 'tafri-travel-guide-page', 'tafri_travel_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function tafri_travel_admin_theme_style() {
   wp_enqueue_style('tafri-travel-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', 'tafri_travel_admin_theme_style');

//guidline for about theme
function tafri_travel_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'tafri-travel' );
?>

<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', 'tafri-travel'); ?></a>
			<a href="<?php echo esc_url( TAFRI_TRAVEL_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tafri-travel' ); ?></a>
			<a href="<?php echo esc_url( TAFRI_TRAVEL_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'tafri-travel' ); ?></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', 'tafri-travel' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="tafri_travel_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'tafri-travel' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tafri_travel_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'tafri-travel' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tafri_travel_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'tafri-travel' ); ?>
					</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 Tafri Travel Theme', 'tafri-travel' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TAFRI_TRAVEL_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tafri-travel' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'tafri-travel'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TAFRI_TRAVEL_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'tafri-travel'); ?></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( 'Tafri Travel is a fantastic free WordPress theme that can work very well for tour operators, travel companies, travel agents, tour guides, travel destinations listing directory, travel deals, tour booking agents, adventure, journeys, destinations, culture, exploration, tips, photography, guides, experiences, wanderlust, stories, vacations, nomad, journal, blog and tour package agencies. This has a user-friendly interface that makes it easy for beginners as well as novices to create their own website without having to learn any coding skills. The responsive layout is going to make your website fit well on all the screens and bring a design that looks marvelous on small screens as well. There is a beautiful banner and stunning sections such as Blog, Team, Testimonial, etc. This theme is highly versatile and includes some beautiful Call to Action Buttons (CTA) guiding your visitors for the next course of action. With some great quality coding being done in the theme, you will find the design optimized to give a lightweight website that can load at a quick speed and deliver faster page load time. There are social media options making it possible to use several social media platforms for you and promote the business and reach out to a larger audience. It is SEO friendly a well to bring you a lot of organic traffic and more visitors.', 'tafri-travel' ); ?></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( 'Tafri Travel Theme Information', 'tafri-travel' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TAFRI_TRAVEL_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'tafri-travel' ); ?></a>
					<a href="<?php echo esc_url( TAFRI_TRAVEL_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'tafri-travel' ); ?></a>
					<a href="<?php echo esc_url( TAFRI_TRAVEL_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'tafri-travel' ); ?></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( 'Tafri Travel Pro Theme', 'tafri-travel' ); ?></h4>
				<p><?php esc_html_e( 'Travel is a serious business these days and if you are into such business, getting a fine website will do a lot of good to your business and this WordPress Travel Theme is designed by considering this fact. To make sure that your website looks amazing, this theme brings outstanding imagery and a super impressive slider showing the images of various travel destinations that can quickly catch the eyeballs of the target audience. It includes a beautiful gallery to display images and videos as this will make the visitors explore more and keep stuck to your website for a longer duration. WordPress Travel Theme is designed to deliver a top-notch user experience and this is ensured by its highly optimized codes and user-friendly design. For getting a completely customized web design, this theme brings many easy and quick customization options that help you modify the entire default design including the header and footer without even writing a single line of code. Along with a generous amount of premium features added to the design, you will also see brilliant sections that will not only give a sorted look to your design but also makes it easy for you to place your content in a way that your audience will find convenient to explore. If you want, you can also add an online booking facility to your website and Woocommerce compliance with this theme allows you to achieve that very easily. This WordPress Travel Theme also has many shortcodes and custom widgets under its hood so that you will be able to add content spaces for elements that will help to make your website functional and your business more successful.', 'tafri-travel' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'tafri-travel' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'tafri-travel' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'tafri-travel' ); ?></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?', 'tafri-travel' ); ?></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.', 'tafri-travel' ); ?></P>
						<a href="<?php echo esc_url( TAFRI_TRAVEL_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'tafri-travel' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'tafri-travel'); ?></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.', 'tafri-travel' ); ?></P>
						<a href="<?php echo esc_url( TAFRI_TRAVEL_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'tafri-travel'); ?></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', 'tafri-travel'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>