<?php
//about theme info
add_action( 'admin_menu', 'tour_traveler_gettingstarted' );
function tour_traveler_gettingstarted() {
	add_theme_page( esc_html__('About Theme', 'tour-traveler'), esc_html__('About Theme', 'tour-traveler'), 'edit_theme_options', 'tour-traveler-guide-page', 'tour_traveler_mostrar_guide');   
}

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

//guidline for about theme
function tour_traveler_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'tour-traveler' );
?>

<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_theme_file_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', 'tour-traveler'); ?></a>
			<a href="<?php echo esc_url( TOUR_TRAVELER_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tour-traveler' ); ?></a>
			<a href="<?php echo esc_url( TOUR_TRAVELER_BUY_PRO); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'tour-traveler' ); ?></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', 'tour-traveler' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="tour_traveler_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'tour-traveler' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tour_traveler_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'tour-traveler' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="tour_traveler_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'tour-traveler' ); ?>
					</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 Tour Traveler Theme', 'tour-traveler' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TOUR_TRAVELER_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'tour-traveler' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'tour-traveler'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TOUR_TRAVELER_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'tour-traveler'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_theme_file_uri()); ?>/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'Tour Traveler website is a stunning WordPress theme with a professional appeal for businesses related to travel magazines, tourist guides, holiday resorts, travel bloggers, hoteling businesses, tour planners, tourism, adventure, tour guide, vacation, holiday, trip planning, exploration, destination, sightseeing, travel agency, journey, road trip, travel blog, travel deals, local as well as international tourism agencies, and more. Developers have made it SEO-friendly by including highly optimized codes. These codes not only work for fetching top ranks in the search engine results but also result in a streamlined and lightweight design that gives quick loading pages and faster page load time. Apart from clean and secure codes, you do get many Call To Action Buttons (CTA) included working in a direction for improving your conversion rates. Visual appeal is great and to add to that, there is a wonderful banner and a responsive slider. The theme is designed using the Bootstrap framework which means, tweaking is made easy. There are plenty of styling options as well as display options provided to you. Beautiful CSS animations are added to the theme to make it more interesting and interactive. This theme is not only retina-ready but also responsive and mobile-friendly making your website work phenomenally well on several devices including smartphones. You will be able to achieve a lot using the social media options of this theme as it helps you to expand your reach.', 'tour-traveler' ); ?></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( 'Tour Traveler Theme Information', 'tour-traveler' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TOUR_TRAVELER_BUY_PRO ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'tour-traveler' ); ?></a>
					<a href="<?php echo esc_url( TOUR_TRAVELER_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'tour-traveler' ); ?></a>
					<a href="<?php echo esc_url( TOUR_TRAVELER_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'tour-traveler' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_theme_file_uri()); ?>/inc/dashboard/media/responsive.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Tour Traveler Pro Theme', 'tour-traveler' ); ?></h4>
				<p><?php esc_html_e( 'If your goal is to build a professional and visually appealing website for your tours and travel website. Then you should definitely consider using this Traveler WordPress Theme. It offers a simply stylish layout with an excellent design that brings your business to the limelight. As a result, your website can easily be available, capturing the attention of your target audience. In addition to the numerous features contained in this theme, it is extremely lightweight, quick loading, and technically sound. Traveler WordPress Theme makes your life easier by bringing in readymade demos and pre-built content. This will facilitate quick website building without bothering about designing your website from scratch. It is important for you to know that this theme is not only top-class in terms of its look but also in terms of its features and tools.Its Drag and Drop editor facilitates easily customized page building without touching even a single line of code. As this theme is created by keeping the travel and hospitality industry in mind,  you will find many useful functionalities under its hood. There is an amazing full-width slider to show catchy retina-ready pictures and Call to Action (CTA) buttons placed on it always help to boost the conversion rates of your website. With the live theme customizer offering easy customization options, you can transform every single element present in the default design. You may also make use of the shortcodes if you want to add more content elements to your website. This Traveler WordPress Theme is Woocommerce compatible offering you easy online sales options.', 'tour-traveler' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'tour-traveler' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'tour-traveler' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'tour-traveler' ); ?></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?', 'tour-traveler' ); ?></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.', 'tour-traveler' ); ?></P>
						<a href="<?php echo esc_url( TOUR_TRAVELER_FREE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'tour-traveler' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'tour-traveler'); ?></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.', 'tour-traveler' ); ?></P>
						<a href="<?php echo esc_url( TOUR_TRAVELER_BLOG_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'tour-traveler'); ?></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', 'tour-traveler'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>