<?php
//about theme info
add_action( 'admin_menu', 'travel_booking_agency_gettingstarted' );
function travel_booking_agency_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'travel-booking-agency'), esc_html__('Theme Demo Content', 'travel-booking-agency'), 'edit_theme_options', 'travel_booking_agency_guide', 'travel_booking_agency_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function travel_booking_agency_admin_theme_style() {
   wp_enqueue_style('travel-booking-agency-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/dashboard/getstart.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/tab.js');

   // Admin notice code START
	wp_register_script('travel-booking-agency-notice', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('travel-booking-agency-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'travel_booking_agency_admin_theme_style');

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

<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/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', 'travel-booking-agency'); ?></a>
			<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'travel-booking-agency' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/travel-booking-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'travel-booking-agency' ); ?></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', 'travel-booking-agency' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="travel_booking_agency_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'travel-booking-agency' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="travel_booking_agency_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'travel-booking-agency' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="travel_booking_agency_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'travel-booking-agency' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="travel_booking_agency_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'travel-booking-agency' ); ?>
					</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 Travel Booking Agency', 'travel-booking-agency' ); ?> <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 Travel Booking Agency', 'travel-booking-agency' ); ?></h4>
					<?php /* Demo Import */ require get_parent_theme_file_path( '/inc/dashboard/demo-importer.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 Travel Booking Agency Theme', 'travel-booking-agency' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'travel-booking-agency' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'travel-booking-agency'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'travel-booking-agency'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/images/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
				<P><?php esc_html_e( 'Travel Booking Agency is a feature-packed, responsive, and SEO-optimized theme crafted for travel agencies, tour operators, and online booking platforms that want to simplify reservations and enhance customer experience through tools like trip booking systems, holiday planners, tour package builders, itinerary management, booking calendars, real-time travel deals, and destination showcase layouts. Ideal for promoting holiday packages, group tours, adventure travel, destination management services, luxury vacations, eco-tourism, honeymoon trips, and customized itineraries, this theme delivers advanced booking functionality for smooth and efficient trip planning. Integrated with powerful plugins such as Travel Engine for tour and trip management and Contact Form 7 for customer inquiries, it supports real-time availability for flights, hotels, car rentals, cruises, and tour bookings, ensuring a secure and seamless reservation process. Its visually engaging design helps showcase destinations, travel guides, itineraries, and package details clearly, while the mobile-friendly and cross-browser-compatible structure guarantees consistent performance across all devices. With features like interactive itineraries, multiple payment gateway support, translation readiness, and flexible customization options, Travel Booking Agency provides a professional, conversion-focused foundation for building a reliable and scalable online travel portal.', 'travel-booking-agency' ); ?></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( 'Travel Booking Agency Theme Information', 'travel-booking-agency' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'travel-booking-agency' ); ?></a>
					<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'travel-booking-agency' ); ?></a>
					<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'travel-booking-agency' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/dashboard/images/resize.png" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'Travel Booking Agency Pro Theme', 'travel-booking-agency' ); ?></h4>
				<P><?php esc_html_e( 'The Travel Booking WordPress Theme is the ultimate solution for travel agencies and tour operators looking to streamline their booking process and create a visually stunning online platform. This theme comes with comprehensive features and customizable options and offers an exceptional booking experience for travelers. Designed specifically for the travel industry, the Travel Booking WordPress Theme offers advanced booking functionality that allows visitors to search, select, and book travel services seamlessly. The theme integrates with leading travel plugins, enabling real-time availability of flights, accommodations, tours, and more. The intuitive booking system provides a user-friendly interface for travelers to customize their itineraries, select preferred dates and destinations, and complete secure online transactions. This enhances the user experience and simplifies the booking process, resulting in higher conversion rates for travel agencies.', 'travel-booking-agency' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'travel-booking-agency' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'travel-booking-agency' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'travel-booking-agency' ); ?></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?', 'travel-booking-agency' ); ?></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.', 'travel-booking-agency' ); ?></P>
						<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'travel-booking-agency' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'travel-booking-agency'); ?></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.', 'travel-booking-agency' ); ?></P>
						<a href="<?php echo esc_url( TRAVEL_BOOKING_AGENCY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'travel-booking-agency'); ?></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', 'travel-booking-agency'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>