<?php
//about theme info
add_action( 'admin_menu', 'water_filter_gettingstarted' );
function water_filter_gettingstarted() {    	
	add_theme_page( esc_html__('About Theme', 'water-filter'), esc_html__('About Theme', 'water-filter'), 'edit_theme_options', 'water_filter_guide', 'water_filter_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function water_filter_admin_theme_style() {
   wp_enqueue_style('water-filter-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('water-filter-notice', esc_url(get_template_directory_uri()) . '/inc/dashboard/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('water-filter-notice');
	// Admin notice code END

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

//guidline for about theme
function water_filter_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'water-filter' );
?>

<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', 'water-filter'); ?></a>
			<a href="<?php echo esc_url( WATER_FILTER_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'water-filter' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/water-purifier-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'water-filter' ); ?></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', 'water-filter' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="water_filter_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'water-filter' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="water_filter_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'water-filter' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="water_filter_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'water-filter' ); ?>
					</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 Water Filter Theme', 'water-filter' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( WATER_FILTER_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'water-filter' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'water-filter'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( WATER_FILTER_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'water-filter'); ?></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( 'Water Filter is a multipurpose, clean, and user-friendly theme built for water purification businesses, filtration service providers, water filter stores, water purifier brands, and health-focused product sellers, making it suitable for home and commercial water filtration solutions. Ideal for showcasing RO systems, reverse osmosis units, portable water filters, under-sink and countertop filters, sediment and carbon filters, alkaline water solutions, UV water treatment systems, whole-house filtration, water softeners, mineral cartridges, and clean drinking water improvement products, this theme delivers a professional and trustworthy presentation. Its fully responsive and mobile-friendly layout ensures smooth browsing across desktops, tablets, and smartphones. Built on a robust Bootstrap framework, it includes attractive banners, interactive call-to-action buttons, and customizable sections for product highlights, service features, filter categories, FAQs, testimonials, team profiles, and social media integration to boost engagement. With flexible customization options for colors, typography, and layouts, the theme adapts easily to your brand identity. SEO-friendly, lightweight, secure, and performance-optimized code ensures fast load times, better search visibility, and stable performance. Support for Contact Form 7 simplifies customer communication, making Water Filter an excellent foundation for promoting water filtration products, purification services, and clean water initiatives online.', 'water-filter' ); ?></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( 'Water Filter Theme Information', 'water-filter' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( WATER_FILTER_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'water-filter' ); ?></a>
					<a href="<?php echo esc_url( WATER_FILTER_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'water-filter' ); ?></a>
					<a href="<?php echo esc_url( WATER_FILTER_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'water-filter' ); ?></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( 'Water Filter Pro Theme', 'water-filter' ); ?></h4>
				<p><?php esc_html_e( 'The Water Purifier WordPress Theme is a clean, user-friendly, and responsive solution ideal for businesses dealing with water purification, filtration systems, water filter store, water purifier company, home water filter, commercial water filtration, portable water filter, reverse osmosis filter, under sink filter and eco-friendly products. Its sleek and professional design ensures that your website not only looks beautiful but also functions smoothly across all devices. Built with performance and accessibility in mind, the theme is packed with features to help both beginners and developers create a powerful online presence. Its multipurpose layout makes it suitable for service providers, equipment manufacturers, health blogs, and even personal wellness websites.', 'water-filter' ); ?></P>		
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'water-filter' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'water-filter' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'water-filter' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'water-filter' ); ?></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?', 'water-filter' ); ?></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.', 'water-filter' ); ?></P>
						<a href="<?php echo esc_url( WATER_FILTER_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'water-filter' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'water-filter'); ?></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.', 'water-filter' ); ?></P>
						<a href="<?php echo esc_url( WATER_FILTER_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'water-filter'); ?></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', 'water-filter'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>