<?php
//about theme info
add_action( 'admin_menu', 'ts_charity_gettingstarted' );
function ts_charity_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'ts-charity'), esc_html__('Theme Demo Content', 'ts-charity'), 'edit_theme_options', 'ts_charity_guide', 'ts_charity_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function ts_charity_admin_theme_style() {
   wp_enqueue_style('ts-charity-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-charity-notice', esc_url(get_template_directory_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('ts-charity-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'ts_charity_admin_theme_style');

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

<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-charity'); ?></a>
			<a href="<?php echo esc_url( TS_CHARITY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-charity' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-charity-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'ts-charity' ); ?></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-charity' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="ts_charity_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'ts-charity' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_charity_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'ts-charity' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_charity_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'ts-charity' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_charity_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'ts-charity' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="ts_charity_openCity(event, 'tc_crawlhunt')">
					<a href="#">
						<?php esc_html_e( 'CrawlHunt (Free SEO)', 'ts-charity' ); ?>
					</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 Charity', 'ts-charity' ); ?> <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 Charity', 'ts-charity' ); ?></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 Charity Theme', 'ts-charity' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( TS_CHARITY_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'ts-charity' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'ts-charity'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( TS_CHARITY_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'ts-charity'); ?></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 Charity is a modern, responsive, and feature-rich theme designed for non-profit organizations, charities, fundraising campaigns, donation drives, NGOs, social initiatives, volunteer organizations, community projects, humanitarian services, blood donation drives, animal welfare, environmental causes, education support programs, health awareness campaigns, disaster relief, social welfare projects, philanthropic activities, and charity events. Perfect for showcasing causes, campaigns, events, donation programs, and success stories, this theme provides a clean, engaging, and visually appealing layout to attract donors, volunteers, and supporters. Fully responsive, retina-ready, and mobile-friendly, TS Charity ensures seamless performance across all devices. Built with optimized and secure code, it delivers fast loading times and SEO-friendly functionality. The theme includes customizable sections for donation forms, volunteer sign-ups, event management, team profiles, and testimonials to boost engagement and credibility. Integrated support for WooCommerce allows fundraising product sales, Contact Form 7 enables easy communication and inquiries, and WPML ensures multilingual compatibility, making TS Charity an ideal, high-performing, and professional solution for charitable and non-profit organizations.', 'ts-charity' ); ?></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 Charity Theme Information', 'ts-charity' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( TS_CHARITY_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'ts-charity' ); ?></a>
					<a href="<?php echo esc_url( TS_CHARITY_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'ts-charity' ); ?></a>
					<a href="<?php echo esc_url( TS_CHARITY_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'ts-charity' ); ?></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 Charity Pro Theme', 'ts-charity' ); ?></h4>
				<P><?php esc_html_e( 'Our premium Charity WordPress theme is the best option to showcase your good deeds to people and encourage them to participate in the journey of making this earth a better place to live on. Whether you are run an environmental NGO, business-friendly international NGO, child welfare NGO, women rights organization or an old-age home, this premium NGO WordPress theme is all you need to display your work and services in the best possible way. It is important that your website look different and unique from others and do justice to the services and work you have been doing. And what is the better way to do this than choose our premium Charity WordPress theme. It will not just boost up people to join your mission of doing charity but their response will also boost up your spirit of continuing the philanthrophy work with full fledge.', 'ts-charity' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'ts-charity' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'ts-charity' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'ts-charity' ); ?></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-charity' ); ?></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-charity' ); ?></P>
						<a href="<?php echo esc_url( TS_CHARITY_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'ts-charity' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'ts-charity'); ?></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-charity' ); ?></P>
						<a href="<?php echo esc_url( TS_CHARITY_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'ts-charity'); ?></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-charity'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>

	<div class="tc-container">
		<div class="tc-section">
			<div id="tc_crawlhunt" class="tabcontent">
				<div class="crawlhunt-wrap">
					<div class="crawlhunt-image">
						<img role="img" src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/admin/images/crawlhunt.png" alt="<?php esc_attr_e( 'Crawl Hunt - Advanced SEO Optimization Tool', 'ts-charity' ); ?>" />
					</div>
					<div class="crawlhunt-content">
						<h2><?php esc_html_e( 'Improve Your Website SEO with CrawlHunt 🚀', 'ts-charity' ); ?></h2>
						<p><?php esc_html_e( 'Already built your website? Make sure Google can find and understand it.CrawlHunt scans your website for SEO issues like missing meta tags, broken links, image ALT text, indexing problems, and more. Get actionable insights and AI-powered fixes from one dashboard.', 'ts-charity' ); ?></p>
						<div class="crawlhunt-buttons">
							<a href="<?php echo esc_url( admin_url( 'plugin-install.php?s=crawl-hunt-seo-audit-tool&tab=search&type=term' ) ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Get Crawl Hunt Plugin For Free', 'ts-charity' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
						<div class="crawlhunt-buttons">
							<a target="_blank" href="<?php echo esc_url( 'https://www.crawlhunt.com/' ); ?>" class="tc-btn primary large-button"><?php esc_html_e( 'Scan My Website for Free →', 'ts-charity' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
					</div>
				</div><!-- END .crawlhunt-wrap -->
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>