<?php
//about theme info
add_action( 'admin_menu', 'perfect_blogging_gettingstarted' );
function perfect_blogging_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'perfect-blogging'), esc_html__('Theme Demo Content', 'perfect-blogging'), 'edit_theme_options', 'perfect_blogging_guide', 'perfect_blogging_mostrar_guide');   
}

// Add a Custom CSS file to WP Admin Area
function perfect_blogging_admin_theme_style() {
   wp_enqueue_style('perfect-blogging-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/admin/admin.css');
   wp_enqueue_script('tabs', esc_url(get_theme_file_uri()) . '/inc/admin/js/tab.js');

	
   // Admin notice code START
	wp_register_script('perfect-blogging-notice', esc_url(get_theme_file_uri()) . '/inc/admin/js/notice.js', array('jquery'), time(), true);
	wp_enqueue_script('perfect-blogging-notice');
	// Admin notice code END
}
add_action('admin_enqueue_scripts', 'perfect_blogging_admin_theme_style');

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

<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-blogging'); ?></a>
			<a href="<?php echo esc_url( PERFECT_BLOGGING_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'perfect-blogging' ); ?></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-blogging' ); ?></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-blogging' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="perfect_blogging_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'perfect-blogging' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blogging_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'perfect-blogging' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blogging_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'perfect-blogging' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="perfect_blogging_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'perfect-blogging' ); ?>
					</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 Blogging', 'perfect-blogging' ); ?> <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 Blogging', 'perfect-blogging' ); ?></h4>
					<?php /* Demo Import */ require get_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 Blogging Theme', 'perfect-blogging' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( PERFECT_BLOGGING_FREE_THEME_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'perfect-blogging' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'perfect-blogging'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( PERFECT_BLOGGING_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'perfect-blogging'); ?></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 Blogging is a child theme of Perfect Blog, designed as an attractive, minimal, and multipurpose blogging theme crafted specifically for bloggers. It features user-friendly personalization options like custom backgrounds, SEO optimization, styling options, call-to-action (CTA) buttons, and multiple layout options for pages, products, and posts. Translation-ready and fully responsive, it is suitable for personal blogs, sports blogs, fashion blogs, food blogs, photography blogs, travel blogs, building website niches, skiing, content creation, digital marketing, freelancing, influencer blogs, media blogs, online courses, professional networking, SEO-focused blogs, startups, snowboarding, sporting events, technical writing, Q&A blogs, minimalist travel, lifestyle blogs, city guides, working nomad blogs, YouTube bloggers, fantasy blogs, fan fiction, travel tips, language learning journals, and multipurpose magazine or newspaper websites. Built with clean, secure code on the Bootstrap framework for faster development, it ensures high performance and security. The large slider with banner placement enhances visitor engagement through prominent CTA buttons. Perfect Blogging offers an interactive demo and customization features to create a professional, stylish, and versatile blogging platform.', 'perfect-blogging' ); ?></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 Blogging Theme Information', 'perfect-blogging' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( PERFECT_BLOGGING_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'perfect-blogging' ); ?></a>
					<a href="<?php echo esc_url( PERFECT_BLOGGING_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'perfect-blogging' ); ?></a>
					<a href="<?php echo esc_url( PERFECT_BLOGGING_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'perfect-blogging' ); ?></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 Blogging Pro Theme', 'perfect-blogging' ); ?></h4>
					<P><?php esc_html_e( 'Perfect Blogging is a child theme of Perfect Blog, designed as an attractive, minimal, and multipurpose blogging theme crafted specifically for bloggers. It features user-friendly personalization options like custom backgrounds, SEO optimization, styling options, call-to-action (CTA) buttons, and multiple layout options for pages, products, and posts. Translation-ready and fully responsive, it is suitable for personal blogs, sports blogs, fashion blogs, food blogs, photography blogs, travel blogs, building website niches, skiing, content creation, digital marketing, freelancing, influencer blogs, media blogs, online courses, professional networking, SEO-focused blogs, startups, snowboarding, sporting events, technical writing, Q&A blogs, minimalist travel, lifestyle blogs, city guides, working nomad blogs, YouTube bloggers, fantasy blogs, fan fiction, travel tips, language learning journals, and multipurpose magazine or newspaper websites.', 'perfect-blogging' ); ?>
					</P>		
				</div>
				<div class="col-pro-6">				
					<h4><?php esc_html_e( 'Theme Features', 'perfect-blogging' ); ?></h4>
					<ul>
						<li><?php esc_html_e( 'Theme Options using Customizer API', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Responsive design', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Favicon, Logo, title and tagline customization', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Advanced Color options', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( '100+ Font Family Options', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Background Image Option', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Simple Menu Option', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Additional section for products', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Enable-Disable options on All sections', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Home Page setting for different sections', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Partner Section', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Promotional Banner Section for Products', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Seperate Newsletter Section', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Text and call to action button for each slides', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Pagination option', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Custom CSS option', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Translations Ready', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Customizable Home Page', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Full-Width Template', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Woo Commerce Compatible', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Multiple Inner Page Templates', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Product Sliders', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Slider', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Posttype', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Contact page template', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Contact Widget', 'perfect-blogging' ); ?></li>
						<li><?php esc_html_e( 'Advance Social Media Feature', 'perfect-blogging' ); ?></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-blogging' ); ?></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-blogging' ); ?></P>
						<a href="<?php echo esc_url( PERFECT_BLOGGING_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'perfect-blogging' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'perfect-blogging'); ?></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-blogging' ); ?></P>
						<a href="<?php echo esc_url( PERFECT_BLOGGING_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'perfect-blogging'); ?></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-blogging'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>