<?php
//about theme info
add_action( 'admin_menu', 'advance_portfolio_gettingstarted' );
function advance_portfolio_gettingstarted() {    	
	add_theme_page( esc_html__('Theme Demo Content', 'advance-portfolio'), esc_html__('Theme Demo Content', 'advance-portfolio'), 'edit_theme_options', 'advance_portfolio_guide', 'advance_portfolio_mostrar_guide');   
}

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

//guidline for about theme
function advance_portfolio_mostrar_guide() { 
	//custom function about theme customizer
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( 'advance-portfolio' );
?>

<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', 'advance-portfolio'); ?></a>
			<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-portfolio' ); ?></a>
			<a href="<?php echo esc_url( 'https://www.themescaliber.com/products/personal-wordpress-theme'); ?>" target="_blank"> <?php esc_html_e( 'Get Premium', 'advance-portfolio' ); ?></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', 'advance-portfolio' ); ?></a>
			</span>
		</div>
	</div>
	<div class="tc-container tab-sec">
		<div class="tc-tabs">
			<ul>
				<li class="tablinks home active" onclick="advance_portfolio_openCity(event, 'tc_demo')">
					<a href="#">
						<?php esc_html_e( 'Theme Demo Import', 'advance-portfolio' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_portfolio_openCity(event, 'tc_index')">
					<a href="#">
						<?php esc_html_e( 'Free Theme Information', 'advance-portfolio' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_portfolio_openCity(event, 'tc_pro')">
					<a href="#">
						<?php esc_html_e( 'Premium Theme Information', 'advance-portfolio' ); ?>
					</a>
				</li>
				<li class="tablinks" onclick="advance_portfolio_openCity(event, 'tc_create')">
					<a href="#">
						<?php esc_html_e( 'Theme Support', 'advance-portfolio' ); ?>
					</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 Advance Portfolio', 'advance-portfolio' ); ?> <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 Advance Portfolio', 'advance-portfolio' ); ?></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 Advance Portfolio Theme', 'advance-portfolio' ); ?> <span class="version">Version: <?php echo esc_html($theme['Version']);?></span></h2>
				<hr>
				<div class="info-link">
					<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_FREE_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Documentation', 'advance-portfolio' ); ?></a>
					<a target="_blank" href="<?php echo esc_url( admin_url('customize.php') ); ?>"><?php esc_html_e('Customizing', 'advance-portfolio'); ?></a>
					<a class="get-pro" href="<?php echo esc_url( ADVANCE_PORTFOLIO_BUY_NOW ); ?>" target="_blank"><?php esc_html_e('Get Pro', 'advance-portfolio'); ?></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( 'Advance Portfolio is a clean, sleek, and creative theme for building portfolio websites with ease. Designed for blogs, portfolios, photography sites, design studios, architects, musicians, agencies, minimalists, mementos, memory books, notebooks, photographers, resumes, professional CVs, singers, theatre artists, programmers, web developers, multipurpose portfolios, creative professionals, consulting firms, freelance professionals, branding and marketing agencies, graphic designers, artists, painters, web designers, digital agencies, content creators, app builders, and other artistic purposes, it is the perfect way to showcase creativity in any field. The theme supports multiple post formats including image, gallery, video, and link to display content in different styles. Fully responsive, cross-browser compatible, and lightweight for faster loading, it offers numerous design elements for personalization without coding knowledge. Built with Bootstrap framework, it includes banners, sliders, a gallery to showcase skills, and a testimonial section to build visitor trust. SEO-friendly, secure, and cleanly coded, Advance Portfolio ensures better search engine performance and professional presentation. Fully compatible with WooCommerce for selling creative products or services, Contact Form 7 for inquiries, YITH WooCommerce Wishlist, and YITH WooCommerce Compare, it provides a robust platform for any portfolio or creative business website.', 'advance-portfolio' ); ?></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( 'Advance Portfolio Theme Information', 'advance-portfolio' ); ?></h3>
				<hr>
				<div class="info-link-pro">
					<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_BUY_NOW ); ?>" target="_blank"> <?php esc_html_e( 'Buy Now', 'advance-portfolio' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_LIVE_DEMO ); ?>" target="_blank"> <?php esc_html_e( 'Live Demo', 'advance-portfolio' ); ?></a>
					<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_PRO_DOC ); ?>" target="_blank"> <?php esc_html_e( 'Pro Documentation', 'advance-portfolio' ); ?></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( 'Advance Portfolio Pro Theme', 'advance-portfolio' ); ?></h4>
				<P><?php esc_html_e( 'Advance Portfolio is a clean, sleek, and creative theme for building portfolio websites with ease. Designed for blogs, portfolios, photography sites, design studios, architects, musicians, agencies, minimalists, mementos, memory books, notebooks, photographers, resumes, professional CVs, singers, theatre artists, programmers, web developers, multipurpose portfolios, creative professionals, consulting firms, freelance professionals, branding and marketing agencies, graphic designers, artists, painters, web designers, digital agencies, content creators, app builders, and other artistic purposes, it is the perfect way to showcase creativity in any field. The theme supports multiple post formats including image, gallery, video, and link to display content in different styles. Fully responsive, cross-browser compatible, and lightweight for faster loading, it offers numerous design elements for personalization without coding knowledge.', 'advance-portfolio' ); ?></P>	
			</div>
			<div class="col-pro-6">				
				<h4><?php esc_html_e( 'Theme Features', 'advance-portfolio' ); ?></h4>
				<ul>
					<li><?php esc_html_e( 'Theme Options using Customizer API', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Responsive design', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Favicon, Logo, title, and tagline customization', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Advanced Color options', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( '100+ Font Family Options', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Background Image Option', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Simple Menu Option', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Additional section for products', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Enable-Disable options on All sections', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Home Page setting for different sections', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Advance Slider with unlimited slides', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Partner Section', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Promotional Banner Section for Products', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Separate Newsletter Section', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Text and call to action button for each slide', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Pagination option', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Custom CSS option', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Translations Ready', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Custom Backgrounds, Colors, Headers, Logo & Menu', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Customizable Home Page', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Full-Width Template', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Footer Widgets & Editor Style', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Banner & Post Type Plugin Functionality', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Post type', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Woo Commerce Compatible', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Multiple Inner Page Templates', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Product Sliders', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Slider', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Contact page template', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Contact Widget', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Advance Social Media Feature', 'advance-portfolio' ); ?></li>
					<li><?php esc_html_e( 'Testimonial Listing With Shortcode', 'advance-portfolio' ); ?></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?', 'advance-portfolio' ); ?></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.', 'advance-portfolio' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_SUPPORT ); ?>" target="_blank"> <?php esc_html_e( 'Support Forum', 'advance-portfolio' ); ?></a>
					</div>
				</div>
				<div class="tab-cont">	
					<h4><?php esc_html_e('Reviews', 'advance-portfolio'); ?></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.', 'advance-portfolio' ); ?></P>
						<a href="<?php echo esc_url( ADVANCE_PORTFOLIO_REVIEW ); ?>" target="_blank"><?php esc_html_e('Reviews', 'advance-portfolio'); ?></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', 'advance-portfolio'); ?></a>
					</div><!-- END .tc-buttons -->
				</div>
			</div>
		</div><!-- END .tc-section -->
	</div>
</div>
<?php } ?>