<?php
//about theme info
add_action( 'admin_menu', 'creative_one_page_gettingstarted' );
function creative_one_page_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'creative-one-page'), esc_html__('Theme Demo Content', 'creative-one-page'), 'edit_theme_options', 'creative_one_page_guide', 'creative_one_page_mostrar_guide');   
}

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

//guidline for about theme
function creative_one_page_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'creative-one-page' );
?>

<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', 'creative-one-page'); ?></a>
			<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'creative-one-page' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-one-page-wordpress-theme/'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'creative-one-page' ); ?></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', 'creative-one-page' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="creative_one_page_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'creative-one-page' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="creative_one_page_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'creative-one-page' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="creative_one_page_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'creative-one-page' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="creative_one_page_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'creative-one-page' ); ?>
					</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 Creative One Page', 'creative-one-page' ); ?> <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 Creative One Page', 'creative-one-page' ); ?></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 Creative One Page Theme', 'creative-one-page' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'creative-one-page' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'creative-one-page'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( CREATIVE_ONE_PAGE_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'creative-one-page'); ?></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( 'Creative One Page is a modern, sleek, and multipurpose theme designed for creative professionals, digital agencies, freelancers, startups, portfolio websites, corporate firms, and small businesses. Ideal for showcasing services, projects, portfolios, team members, client testimonials, business highlights, interactive banners, pricing tables, and FAQs, the theme provides a seamless one-page browsing experience with call-to-action (CTA) buttons and visually engaging sections. Fully responsive, mobile-friendly, and retina-ready, it ensures your website looks stunning across desktops, tablets, and smartphones. Built with optimized, secure code, it guarantees fast loading times, smooth navigation, and SEO-friendly performance. Customization is effortless with flexible options for layouts, colors, fonts, and sections, allowing businesses to create a unique and branded online presence. Fully compatible with WooCommerce for online product or service sales, Contact Form 7 for inquiries and lead generation, and WPML for multilingual support, Creative One Page delivers a professional, feature-rich, and visually appealing solution for creative and business websites.', 'creative-one-page' ); ?></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( 'Creative One Page Theme Information', 'creative-one-page' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'creative-one-page' ); ?></a>
					<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'creative-one-page' ); ?></a>
					<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'creative-one-page' ); ?></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( 'Creative One Page Pro Theme', 'creative-one-page' ); ?></h4>
				<P><?php esc_html_e( 'One page WordPress theme is your exemplary choice for business and with this clean, user friendly and multipurpose theme, you can create an exemplary website for the corporate company or create a portfolio, personal website or blog. This theme is beautiful, flexible as well as professional apart from having personalization options as well as a testimonial section thus making it fit for the landing pages as well as ecommerce businesses. One page WordPress theme is associated with banners, Call to Action [CTA] button and besides this it is social media integrated and SEO friendly with optimised codes making it a perfect fit for various agencies related to heavy industries as well as the construction businesses. It is accompanied with the clean code besides having faster page load time and these features are good in case of business related to photography, web agency, restaurant, travel, music events and much more.
				One page WordPress theme is good for lawyers as well as law firms and is accompanied with stunning features. It is bootstrap based and has shortcodes associated with it and above all it is minimal. It is also light weight and accompanied with the WordPress customizer besides being robust. By the end of the day, it is simple and adaptable making it fit for almost all the businesses and startups. It is good for the online shops and the credit goes to its complete integration with the WooCommerce plugin. Premium one page WordPress theme is completely customizable and is accompanied with a clean design. It comes with the dynamic loading technologies as well as distinct content block modules. It is totally functional and to craft the one page website becomes quite easy. There is no requirement of coding knowledge. It has done excellently well as per the global customer reviews since its inception in online market.', 'creative-one-page' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'creative-one-page' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'creative-one-page' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'creative-one-page' ); ?></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?', 'creative-one-page' ); ?></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.', 'creative-one-page' ); ?></P>
						<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'creative-one-page' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'creative-one-page'); ?></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.', 'creative-one-page' ); ?></P>
						<a href="<?php echo esc_url( CREATIVE_ONE_PAGE_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'creative-one-page'); ?></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', 'creative-one-page'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>