<?php
//about theme info
add_action( 'admin_menu', 'perfect_blog_gettingstarted' );
function perfect_blog_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'perfect-blog'), esc_html__('Theme Demo Content', 'perfect-blog'), 'edit_theme_options', 'perfect_blog_guide', 'perfect_blog_mostrar_guide');   
}

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

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

//guidline for about theme
function perfect_blog_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'perfect-blog' );
?>

<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', 'perfect-blog'); ?></a>
			<a href="<?php echo esc_url( PERFECT_BLOG_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'perfect-blog' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/premium-wordpress-blog-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'perfect-blog' ); ?></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', 'perfect-blog' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container  tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="perfect_blog_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'perfect-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blog_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'perfect-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blog_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'perfect-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blog_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'perfect-blog' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blog_openCity(event, 'tc_crawlhunt')">
					<a href="#">
						<?php esc_html_e( 'CrawlHunt (Free SEO)', 'perfect-blog' ); ?>
					</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 Perfect Blog', 'perfect-blog' ); ?> <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 Perfect Blog', 'perfect-blog' ); ?></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 Perfect Blog Theme', 'perfect-blog' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( PERFECT_BLOG_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'perfect-blog' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'perfect-blog'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( PERFECT_BLOG_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'perfect-blog'); ?></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( 'Perfect Blog is an attractive, minimal, and multipurpose theme crafted for passionate bloggers who create engaging and diverse content. Ideal for personal blogs, travel journals, recipe blogs, fashion blogs, news portals, magazines, photography portfolios, creative blogs, parenting blogs, health and wellness niches, self-improvement, business tips, thought leadership, corporate blogs, content marketing, professional blogging, lifestyle blogging, food blogs, and travel writing, this theme provides a clean, elegant design that enhances readability and user experience. Built on a secure Bootstrap framework with optimized and SEO-friendly code, it ensures faster load times, better performance, and compatibility across all browsers and devices. Perfect Blog includes a large slider with a banner and Call to Action (CTA) button to highlight featured posts, along with customization options for colors, layouts, and typography. It supports Contact Form 7 for interaction, Yoast SEO for optimization, and Mailchimp for newsletter integration. With shortcodes, translation readiness, and multiple page or post layouts, this theme offers flexibility, functionality, and security for bloggers aiming to build a strong personal or professional online presence.', 'perfect-blog' ); ?></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( 'Perfect Blog Theme Information', 'perfect-blog' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( PERFECT_BLOG_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'perfect-blog' ); ?></a>
					<a href="<?php echo esc_url( PERFECT_BLOG_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'perfect-blog' ); ?></a>
					<a href="<?php echo esc_url( PERFECT_BLOG_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'perfect-blog' ); ?></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( 'Perfect Blog Pro Theme', 'perfect-blog' ); ?></h4>
				<P><?php esc_html_e( 'The premium WordPress blog theme will encourage you to draft your thoughts in a beautiful way. The theme will give your visitors the pleasure of reading peacefully. You can use this site as an online magazine or newsletter. Through this theme, you can design a site to share your travel adventures and excursions, food knowledge and new food exploring journeys in the town, fashion observations, lifestyle ways, sports enthusiasm, environment protection and conservation ways and anything you wish to start a blog on. The premium blogging theme has ample amount of space for writing and adding images and videos to your post. If you are an author, you can use this whole space just for writing. The theme is so designed that even if you use it only for writing it wont look mundane. It will still give the fresh look to your site and will encourage visitors to find more content to read.', 'perfect-blog' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'perfect-blog' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Seperate Newsletter Section', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slides', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Posttype', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'perfect-blog' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'perfect-blog' ); ?></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?', 'perfect-blog' ); ?></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.', 'perfect-blog' ); ?></P>
						<a href="<?php echo esc_url( PERFECT_BLOG_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'perfect-blog' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'perfect-blog'); ?></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.', 'perfect-blog' ); ?></P>
						<a href="<?php echo esc_url( PERFECT_BLOG_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'perfect-blog'); ?></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', 'perfect-blog'); ?></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', 'perfect-blog' ); ?>" />
					</div>
					<div class="crawlhunt-content">
						<h2><?php esc_html_e( 'Improve Your Website SEO with CrawlHunt 🚀', 'perfect-blog' ); ?></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.', 'perfect-blog' ); ?></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', 'perfect-blog' ); ?></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 →', 'perfect-blog' ); ?></a>
						</div><!-- END .crawlhunt-buttons -->
					</div>
				</div><!-- END .crawlhunt-wrap -->
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>