<?php
//about theme info
add_action( 'admin_menu', 'ts_mobile_app_gettingstarted' );
function ts_mobile_app_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'ts-mobile-app'), esc_html__('Theme Demo Content', 'ts-mobile-app'), 'edit_theme_options', 'ts_mobile_app_guide', 'ts_mobile_app_mostrar_guide');   
}

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

	// Admin notice code START
	wp_register_script('ts-mobile-app-notice', esc_url(get_theme_file_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('ts-mobile-app-notice');
	// Admin notice code END

}
add_action('admin_enqueue_scripts', 'ts_mobile_app_admin_theme_style');

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

<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-mobile-app'); ?></a>
			<a href="<?php echo esc_url( TS_MOBILE_APP_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-mobile-app' ); ?></a>
				<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/bb-mobile-application-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'ts-mobile-app' ); ?></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-mobile-app' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="ts_mobile_app_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'ts-mobile-app' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_mobile_app_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'ts-mobile-app' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_mobile_app_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'ts-mobile-app' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_mobile_app_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'ts-mobile-app' ); ?>
					</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 Mobile App', 'ts-mobile-app' ); ?> <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 Mobile App', 'ts-mobile-app' ); ?></h4>
					<?php /* Demo Import */ require get_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 Mobile App Theme', 'ts-mobile-app' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TS_MOBILE_APP_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-mobile-app' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'ts-mobile-app'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TS_MOBILE_APP_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'ts-mobile-app'); ?></a>
				</div>
				<div class="col-tc-6">
					<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/screenshot.png" alt="" />
				</div>
				<div class="col-tc-6">
					<P><?php esc_html_e( 'TS Mobile App is a stunning and multipurpose business theme that can easily bring your website to perfection. Neat, highly customizable, and extremely easy to use, it makes your website stand out. TS Mobile App is ideal for lead capturing and landing pages, reviews of upcoming products, mobile apps, utility apps for businesses, enterprise-specific apps, children learning apps, playgroup apps, communication apps, Google Play apps, WooCommerce apps, technology solutions, software development, startups, user experience design, tech solutions, app design, digital products, innovation, mobile payment apps, launchpads for iPhone, web apps, HTML templates, gadgets, and other business propositions. It is suitable for hotels, restaurants, iOS apps, online shopping apps, safety apps, parental control apps, event planning, real estate, gyms, education, construction, tours and travel, photography, job boards, local businesses, startup businesses, one-page websites, Playstore apps, architecture, Android apps, app developers, app launches, app marketing, app showcases, events, gallery exhibitions, fashion, lenses, yoga, universities, schools, app stores, iPad apps, iPhone apps, startup sports, and similar websites. TS Mobile App features a niche-specific design, responsive layout, theme customizer for managing sliders, featured images, custom logos, sidebars, headers, and footers without coding. Fully RTL-supported, SEO-optimized, and built with clean, secure code for faster page loads, it offers numerous customization options to create a professional and personalized website. Fully compatible with WooCommerce for selling digital products, Contact Form 7 for lead capture, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, TS Mobile App provides a comprehensive platform for mobile app and tech-related websites.', 'ts-mobile-app' ); ?></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 Mobile App Theme Information', 'ts-mobile-app' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TS_MOBILE_APP_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'ts-mobile-app' ); ?></a>
					<a href="<?php echo esc_url( TS_MOBILE_APP_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'ts-mobile-app' ); ?></a>
					<a href="<?php echo esc_url( TS_MOBILE_APP_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'ts-mobile-app' ); ?></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( 'seo agency lite Pro Theme', 'ts-mobile-app' ); ?></h4>
					<P><?php esc_html_e( 'TS Mobile App is a stunning and multipurpose business theme that can easily bring your website to perfection. Neat, highly customizable, and extremely easy to use, it makes your website stand out. TS Mobile App is ideal for lead capturing and landing pages, reviews of upcoming products, mobile apps, utility apps for businesses, enterprise-specific apps, children learning apps, playgroup apps, communication apps, Google Play apps, WooCommerce apps, technology solutions, software development, startups, user experience design, tech solutions, app design, digital products, innovation, mobile payment apps, launchpads for iPhone, web apps, HTML templates, gadgets, and other business propositions. It is suitable for hotels, restaurants, iOS apps, online shopping apps, safety apps, parental control apps, event planning, real estate, gyms, education, construction, tours and travel, photography, job boards, local businesses, startup businesses, one-page websites, Playstore apps, architecture, Android apps, app developers, app launches, app marketing, app showcases, events, gallery exhibitions, fashion, lenses, yoga, universities, schools, app stores, iPad apps, iPhone apps, startup sports, and similar websites.', 'ts-mobile-app' ); ?>
					</P>		
				</div>
				<div class="col-pro-6">				
					<h4><?php esc_html_e( 'Theme Features', 'ts-mobile-app' ); ?></h4>
					<ul>
						<li><?php esc_html_e( 'Theme Options using Customizer API', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Responsive design', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Advanced Color options', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( '100+ Font Family Options', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Background Image Option', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Simple Menu Option', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Additional section for products', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Enable-Disable options on All sections', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Home Page setting for different sections', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Partner Section', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Promotional Banner Section for Products', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Seperate Newsletter Section', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Text and call to action button for each slides', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Pagination option', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Custom CSS option', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Translations Ready', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Customizable Home Page', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Full-Width Template', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Woo Commerce Compatible', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Multiple Inner Page Templates', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Product Sliders', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Slider', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Posttype', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Contact page template', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Contact Widget', 'ts-mobile-app' ); ?></li>
						<li><?php esc_html_e( 'Advance Social Media Feature', 'ts-mobile-app' ); ?></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-mobile-app' ); ?></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-mobile-app' ); ?></P>
						<a href="<?php echo esc_url( TS_MOBILE_APP_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'ts-mobile-app' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'ts-mobile-app'); ?></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-mobile-app' ); ?></P>
						<a href="<?php echo esc_url( TS_MOBILE_APP_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'ts-mobile-app'); ?></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-mobile-app'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>