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

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

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

<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-blog'); ?></a>
			<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tafri-travel-blog' ); ?></a>
			<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'tafri-travel-blog' ); ?></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-blog' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="tafri_travel_blog_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'tafri-travel-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tafri_travel_blog_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'tafri-travel-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tafri_travel_blog_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'tafri-travel-blog' ); ?>
					</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 Blog Theme', 'tafri-travel-blog' ); ?> <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_BLOG_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tafri-travel-blog' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'tafri-travel-blog'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'tafri-travel-blog'); ?></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 Blog 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-blog' ); ?></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 Blog Theme Information', 'tafri-travel-blog' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'tafri-travel-blog' ); ?></a>
					<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'tafri-travel-blog' ); ?></a>
					<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'tafri-travel-blog' ); ?></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 Blog Pro Theme', 'tafri-travel-blog' ); ?></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-blog' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'tafri-travel-blog' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'tafri-travel-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'tafri-travel-blog' ); ?></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-blog' ); ?></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-blog' ); ?></P>
						<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'tafri-travel-blog' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'tafri-travel-blog'); ?></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-blog' ); ?></P>
						<a href="<?php echo esc_url( TAFRI_TRAVEL_BLOG_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'tafri-travel-blog'); ?></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-blog'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>