<?php
//about theme info
add_action( 'admin_menu', 'agriculture_farm_gettingstarted' );
function agriculture_farm_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'agriculture-farm'), esc_html__('Theme Demo Content', 'agriculture-farm'), 'edit_theme_options', 'agriculture_farm_guide', 'agriculture_farm_mostrar_guide');   
}

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

//guidline for about theme
function agriculture_farm_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'agriculture-farm' );
?>

<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', 'agriculture-farm'); ?></a>
			<a href="<?php echo esc_url( AGRICULTURE_FARM_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'agriculture-farm' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/agriculture-farm-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'agriculture-farm' ); ?></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', 'agriculture-farm' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="agriculture_farm_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'agriculture-farm' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="agriculture_farm_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'agriculture-farm' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="agriculture_farm_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'agriculture-farm' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="agriculture_farm_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'agriculture-farm' ); ?>
					</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 Agriculture Farm', 'agriculture-farm' ); ?> <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 Agriculture Farm', 'agriculture-farm' ); ?></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 Agriculture Farm Theme', 'agriculture-farm' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( AGRICULTURE_FARM_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'agriculture-farm' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'agriculture-farm'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( AGRICULTURE_FARM_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'agriculture-farm'); ?></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( 'Agriculture Farm is a clean, simple, and responsive theme designed for agricultural websites, farms, and agribusinesses. Ideal for Agribusiness, Organic Farming, Crop Management, Farm Equipment, Agritourism, AgriTech, Sustainable Farming, Dairy Farms, Livestock Management, Farm-to-Table, Farm Cooperatives, Rural Development, Agri Supply, Farm Markets, Agri Consultancy, Horticulture, Gardening, Landscaping, Plant Care, Eco-Friendly Farming, Organic Produce, Agricultural Marketplaces, Farming Services, and Agri eCommerce, the theme provides a professional, flexible, and highly responsive design that automatically adapts to desktops, laptops, tablets, and mobile devices. Built with a robust Bootstrap framework, it features secure, clean, and optimized code for fast page loads, improved SEO, and a seamless user experience. Interactive Call to Action (CTA) buttons and integrated social media icons enhance engagement and conversions, while compatibility with WooCommerce allows selling farm products online. The theme also supports Contact Form 7 for custom forms and integrates with Mailchimp and Yoast SEO to streamline newsletters and search engine optimization, making it a complete solution for agricultural businesses.', 'agriculture-farm' ); ?></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( 'Agriculture Farm Theme Information', 'agriculture-farm' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( AGRICULTURE_FARM_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'agriculture-farm' ); ?></a>
					<a href="<?php echo esc_url( AGRICULTURE_FARM_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'agriculture-farm' ); ?></a>
					<a href="<?php echo esc_url( AGRICULTURE_FARM_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'agriculture-farm' ); ?></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( 'Agriculture Farm Pro Theme', 'agriculture-farm' ); ?></h4>
				<P><?php esc_html_e( 'Are you planning to promote your agriculture and farming business? What could be better than a theme that is exclusively designed for such a business? Yes, you got it right. This Agriculture Farm WordPress Theme has been exclusively designed for giving the desired web presence to farming and agriculture-related businesses and products. It gives you a highly professional web presence that convinces your target audience and potential clients about the quality products you are ringing to the market. As your website has a role to play in establishing a sense of reliability in your business and services, this theme provides a lot of content spaces that can help you do so. This Agriculture Farm WordPress Theme not only shows the business details and contact info but apart from that, your visitors will get to know about your past experience in the business and how many clients you have served. Through the Testimonial section, you can go a step ahead and share the genuine experiences and thoughts of your clients and what all they have to say about your farm products and service. On the wonderful full-screen slider of this Agriculture Farm WordPress Theme, you can show amazing pictures and images of your farm and catch the attention of the visitors. If you want to customize the design, you can use the drag and drop page builder tool or customization options provided in the theme options panel. As the demand for organic farm products is more, you can bring in more business for you by getting more organic products to sell online. For that, the Woocommerce compatibility of this theme is going to help you a lot. It will let you push the organic farm products for selling them online through your website and earn more profit. For enhancing your website further, there are many Shortcodes, widgets, and plugin support features is included in this Agriculture Farm WordPress Theme.', 'agriculture-farm' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'agriculture-farm' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'agriculture-farm' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'agriculture-farm' ); ?></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?', 'agriculture-farm' ); ?></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.', 'agriculture-farm' ); ?></P>
						<a href="<?php echo esc_url( AGRICULTURE_FARM_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'agriculture-farm' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'agriculture-farm'); ?></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.', 'agriculture-farm' ); ?></P>
						<a href="<?php echo esc_url( AGRICULTURE_FARM_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'agriculture-farm'); ?></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', 'agriculture-farm'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>