<?php
//about theme info
add_action( 'admin_menu', 'organic_market_gettingstarted' );
function organic_market_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'organic-market'), esc_html__('Theme Demo Content', 'organic-market'), 'edit_theme_options', 'organic_market_guide', 'organic_market_mostrar_guide');   
}

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

//guidline for about theme
function organic_market_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'organic-market' );
?>

<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', 'organic-market'); ?></a>
			<a href="<?php echo esc_url( ORGANIC_MARKET_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'organic-market' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/organic-market-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'organic-market' ); ?></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', 'organic-market' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="organic_market_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'organic-market' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="organic_market_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'organic-market' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="organic_market_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'organic-market' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="organic_market_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'organic-market' ); ?>
					</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 Organic Market', 'organic-market' ); ?> <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 Organic Market', 'organic-market' ); ?></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 Organic Market Theme', 'organic-market' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ORGANIC_MARKET_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'organic-market' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'organic-market'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ORGANIC_MARKET_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'organic-market'); ?></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( 'The Organic Market theme is a modern, clean, and responsive solution designed for businesses in organic products, farmers’ markets, grocery stores, health food shops, fresh produce suppliers, natural products, vegan stores, organic grocery delivery, local farmers, eco-friendly products, organic herbs, organic fruits and vegetables, farm-to-table markets, sustainable food stores, wellness shops, organic stores, organic food shops, and natural product retailers. Featuring a minimal, elegant layout, this theme ensures a visually appealing and professional online presence while delivering seamless user experience across desktops, tablets, and mobile devices. It includes sections for product showcases, promotional banners, customer testimonials, team profiles, and strategically placed Call to Action (CTA) buttons to drive engagement. Fully customizable with advanced personalization options for colors, fonts, and layouts, it allows you to create a brand-consistent website easily. Optimized for performance and SEO, the theme is fast-loading and user-friendly. Additionally, it supports WooCommerce for product listings and online sales, Contact Form 7 for inquiries, and social media integration for increased reach, making Organic Market a complete solution for businesses aiming to sell and promote organic products effectively online.', 'organic-market' ); ?></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( 'Organic Market Theme Information', 'organic-market' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ORGANIC_MARKET_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'organic-market' ); ?></a>
					<a href="<?php echo esc_url( ORGANIC_MARKET_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'organic-market' ); ?></a>
					<a href="<?php echo esc_url( ORGANIC_MARKET_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'organic-market' ); ?></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( 'Organic Market Pro Theme', 'organic-market' ); ?></h4>
				<P><?php esc_html_e( 'The premium Organic Market WordPress Theme is the ideal choice for displaying your excellent work to the public. Whether you manage an Organic Market business or an international one, this premium Organic Market WordPress Theme is all you need to showcase your work and promote your workspace in every possible way. It is crucial that your website looks different and unique from your competitors. And what better way to achieve this than to choose our premium Organic Market WordPress Theme? Not only will it speed up your website, but it will also increase the view of the themes attractiveness.The Organic Market WordPress Theme is equipped with all the features necessary to build a website. Furthermore, the theme is compatible with multiple browsers, translation-ready, and SEO-friendly. Its social media sharability will enable your herbal products to reach a wider audience. It also allows for easy online payment through a safe and reliable payment gateway. Other features include the ability to enable/disable sections, Google font choices for sections, gallery, short codes, and support for custom CSS/JS. The gallery feature allows you to showcase your work. This theme is equipped with short codes that allow you to integrate them into any section of your website. Additionally, we offer live support in case you encounter any problems. These factors combine to make ours the best premium Organic Market WordPress Theme available.', 'organic-market' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'organic-market' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'organic-market' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'organic-market' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'organic-market' ); ?></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?', 'organic-market' ); ?></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.', 'organic-market' ); ?></P>
						<a href="<?php echo esc_url( ORGANIC_MARKET_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'organic-market' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'organic-market'); ?></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.', 'organic-market' ); ?></P>
						<a href="<?php echo esc_url( ORGANIC_MARKET_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'organic-market'); ?></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', 'organic-market'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>