<?php
//about theme info
add_action( 'admin_menu', 'ts_photography_gettingstarted' );
function ts_photography_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'ts-photography'), esc_html__('Theme Demo Content', 'ts-photography'), 'edit_theme_options', 'ts_photography_guide', 'ts_photography_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function ts_photography_admin_theme_style() {
   wp_enqueue_style('ts-photography-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/admin/admin.css');
   wp_enqueue_script('tabs', esc_url(get_template_directory_uri()) . '/inc/admin/js/tab.js');

   // Admin notice code START
	wp_register_script('ts-photography-notice', esc_url(get_template_directory_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('ts-photography-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'ts_photography_admin_theme_style');

//guidline for about theme
function ts_photography_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'ts-photography' );
?>

<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/admin/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', 'ts-photography'); ?></a>
			<a href="<?php echo esc_url( TS_PHOTOGRAPHY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-photography' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-photography-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'ts-photography' ); ?></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', 'ts-photography' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="ts_photography_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'ts-photography' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_photography_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'ts-photography' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_photography_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'ts-photography' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_photography_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'ts-photography' ); ?>
					</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 TS Photography', 'ts-photography' ); ?> <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 TS Photography', 'ts-photography' ); ?></h4>
					<?php /* Demo Import */ require get_parent_theme_file_path( '/inc/admin/demo-import.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 TS Photography Theme', 'ts-photography' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TS_PHOTOGRAPHY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-photography' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'ts-photography'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TS_PHOTOGRAPHY_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'ts-photography'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.jpg" alt="" />
				</div>
				<div class="col-tc-6">
				<P><?php esc_html_e( 'TS Photography is a modern, elegant, and fully responsive theme designed for photographers, photography studios, freelance photographers, wedding photographers, fashion photographers, portrait photographers, wildlife photographers, travel photographers, photo bloggers, creative agencies, portfolio showcases, and visual storytellers. Perfect for displaying photo galleries, portfolios, albums, client projects, photography services, and creative work, this theme provides a clean, visually appealing, and interactive layout that engages visitors effectively. Fully responsive, retina-ready, and mobile-friendly, TS Photography ensures stunning visuals across all devices. Built with optimized and secure code, it offers fast loading times and SEO-friendly performance. The theme includes customizable sections for image sliders, galleries, portfolios, client testimonials, team profiles, and blog posts to enhance user experience and brand presentation. Integrated support for WooCommerce allows selling prints or photography services, Contact Form 7 facilitates client inquiries, and WPML ensures multilingual support, making TS Photography an ideal, high-performing, and professional solution for photographers, studios, and creative agencies.', 'ts-photography' ); ?></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( 'TS Photography Theme Information', 'ts-photography' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TS_PHOTOGRAPHY_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'ts-photography' ); ?></a>
					<a href="<?php echo esc_url( TS_PHOTOGRAPHY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'ts-photography' ); ?></a>
					<a href="<?php echo esc_url( TS_PHOTOGRAPHY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'ts-photography' ); ?></a>
				</div>
				<div class="pro-image">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/responsiveimg.jpg" alt="" />
				</div>
			<div class="col-pro-5">
				<h4><?php esc_html_e( 'TS Photography Pro Theme', 'ts-photography' ); ?></h4>
				<P><?php esc_html_e( 'Buying this automobile WordPress theme will be the best decision for your automobile website. It is smart, resourceful, eye-catching and bold. It can serve for car dealers, car showrooms, automobile garage, car rentals, cab service, bike showroom and similar businesses. It is a responsive theme with mobile first approach, multi-browser compatible, translation ready and supports RTL writing. It supports various post formats like gallery, testimonial section, video on homepage, subscription form and others. Though this automobile WordPress theme has sufficient inner pages predesigned like about us, contact us, blog etc., but if you want you can design them on your own with the help of page builder. You can change the layout of the theme from boxed to full width to full screen. Add sidebars on one or both side and use it to display ads to get extra earning. Choose from the unlimited colours and Google fonts to change the look of the website.', 'ts-photography' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'ts-photography' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'ts-photography' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'ts-photography' ); ?></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?', 'ts-photography' ); ?></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.', 'ts-photography' ); ?></P>
						<a href="<?php echo esc_url( TS_PHOTOGRAPHY_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'ts-photography' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'ts-photography'); ?></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.', 'ts-photography' ); ?></P>
						<a href="<?php echo esc_url( TS_PHOTOGRAPHY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'ts-photography'); ?></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', 'ts-photography'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>