<?php
/**
 * Add the about page under appearance.
 *
 * Display the details about the theme information
 *
 * @package freeware
 */
?>
<?php
// About Information
add_action( 'admin_menu', 'freeware_about' );
function freeware_about() {    	
	add_theme_page( esc_html__('About Theme', 'freeware'), esc_html__('About Theme', 'freeware'), 'edit_theme_options', 'freeware-about', 'freeware_about_page');   
}

// CSS for About Theme Page
function freeware_admin_theme_style() {
   wp_enqueue_style('freeware-admin-style', get_template_directory_uri() . '/inc/about-theme/css/about-theme.css');
}
add_action('admin_enqueue_scripts', 'freeware_admin_theme_style');

function freeware_about_page() {
	$theme = wp_get_theme();

?>
<div class="wrapper-info">
	<div class="col-left">
		<div class="intro">
			<h3><?php /* translators: %s theme name */
				printf( esc_html__( 'Welcome to %s', 'freeware' ), esc_html( $theme->Name ) ); ?>
				<?php esc_html_e('Version:','freeware'); ?> <?php echo esc_html($theme['Version']);?></h3>
				<p>
					<?php esc_html_e('Freeware is a fast, clean, and modern-looking responsive Free WordPress Blog Theme. Minimal, elegant, lightweight, fast & mobile friendly layout with WooCommerce compatibility. This is a flexible template uses fresh and clean design.This theme is the best choise even for personal or professional websites.','freeware'); ?>
				</p>
				<p>
				<?php /* translators: %s theme name */
					printf( esc_html__( '%s theme is the most Popular Free WordPress blog theme. Please click the below button to display how your site looks like', 'freeware' ), esc_html( $theme->Name ) );
				?></p>
				<p> &nbsp;</p>
				<a href="<?php echo esc_url('https://demo.themefreesia.com/freeware'); ?>" class="button button-primary button-hero about-theme" target="_blank"><?php esc_html_e( 'Visit Free Demo', 'freeware' ); ?></a><a href="<?php echo esc_url('https://demo.themefreesia.com/freeware-plus'); ?>" class="button button-primary button-hero about-theme" target="_blank"><?php esc_html_e( 'Visit Plus Demo', 'freeware' ); ?></a>
		</div>
		<div class="theme-tabs">
			<input type="radio" name="nav" id="one" checked="checked"/>
			<label for="one" class="tab-label"><?php esc_html_e('Getting Started?','freeware');?></label>

			<input type="radio" name="nav" id="two"/>
			<label for="two" class="tab-label"><?php esc_html_e('Demo Importer','freeware');?></label>

			<input type="radio" name="nav" id="three"/>
			<label for="three" class="tab-label"><?php esc_html_e('Support','freeware');?></label>

			<input type="radio" name="nav" id="four"/>
			<label for="four" class="tab-label"><?php esc_html_e('Video Tutorials','freeware');?></label>

			<input type="radio" name="nav" id="five"/>
			<label for="five" class="tab-label"><?php esc_html_e('Plus Features','freeware');?></label>

			<article class="content one">
			    <h3><?php esc_html_e('About Documentation','freeware');?></h3>
			    <p><?php esc_html_e('Documentation is the information that describes the product to its users. Our documentation covers only related to Free Themes and Plus Extension Plugins. It will guide your to develop your Website as we displayed in demo site without any others help.','freeware');?></p>
			    <p>
					<a href="<?php echo esc_url('https://themefreesia.com/theme-instruction/freeware/');?>" target="_blank" class="button button-primary"><?php printf( esc_html__( '%s Documentation', 'freeware' ), esc_html( $theme->Name ) ); ?></a>
				</p>
				<h3><?php esc_html_e('Theme Customizer','freeware');?></h3>
			   <p><?php printf( esc_html__( '%s supports the Theme Customizer for all theme settings. Click "Customize" to personalize your site.', 'freeware' ), esc_html( $theme->Name ) ); ?>
			   	<a href="<?php echo esc_url(admin_url( 'customize.php' )); ?>" target="_blank" class="button button-primary"> <?php esc_html_e('Start Customizing','freeware');?></a>
				</p>
				<h3><?php esc_html_e('F.A.Q (Frequently Asked Questions)','freeware');?></h3>
			   <p><?php esc_html_e('Want to know more about Themes and Plugins developed by Theme Freesia? ','freeware'); ?><a href="<?php echo esc_url('https://themefreesia.com/frequently-asked-questions/');?>" class="button button-primary" target="_blank"><?php esc_html_e('F.A.Q','freeware');?></a></p>
				<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/screenshot.jpg">
			</article>

			<article class="content two">
			    <h3><?php esc_html_e('Demo Importer','freeware');?></h3>
				<p>
					<?php esc_html_e( 'If your site have your own content then do not use this plugins. It will mess your site with dummy content. Is your site fresh? Install the Demo importer plugins and activate it.', 'freeware' ); ?></p>
				<p><?php esc_html_e('Do you want to import Demo Data? ','freeware'); ?></p>
					<a href="https://themefreesia.com/theme-freesia-demo-import/" target="_blank" class="button button-primary" style="text-decoration: none;">
						<?php esc_html_e( 'Download Dummy Plugin', 'freeware' ); ?>
					</a>
				&nbsp;&nbsp;
				
				<p><strong><?php esc_html_e('Setup Menu and Social Links:','freeware');?> </strong></p>
				
				<ul>
					<li><?php esc_html_e('In the Blog Dashboard, select Appearance > Menus.','freeware');?></li>
					<li><?php esc_html_e('Under the Menu Settings, located at the bottom of your screen, select Primary Menu/ Social Links','freeware');?></li>
					<li><?php esc_html_e('Click save menu','freeware');?></li>
				</ul>
				<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/screenshot.jpg">
			</article>

			<article class="content three">
			   <h3><?php esc_html_e('About Support','freeware');?></h3>
				<p><?php esc_html_e('Need Help? Use our Forums if you have any Themes and Plugins related questions. Support will be provided only related to our Themes and Plugins','freeware');?>
					<a href="<?php echo esc_url('https://themefreesia.com/support-forum/'); ?>" target="_blank" class="button button-primary"> <?php esc_html_e('Plus Forum','freeware');?></a> <a href="<?php echo esc_url('https://tickets.themefreesia.com/'); ?>" target="_blank" class="button button-primary"> <?php esc_html_e('Free Tickets','freeware');?></a>
				</p>
				<h3><?php esc_html_e('Sales Questions','freeware');?></h3>
				<p><?php esc_html_e('Do you have discussion relating to billing, your account or have pre-sales questions? Get touch with us!','freeware');?>
					<a href="<?php echo esc_url('https://themefreesia.com/contact-us/');?>" target="_blank" class="button button-primary"> <?php esc_html_e('Contact us','freeware');?></a>
				</p>
			   <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/screenshot.jpg">
			</article>

			<article class="content four">
			   <h3><?php esc_html_e('Video Tutorials','freeware');?></h3>
				<h4> <?php esc_html_e('Setup Site Identity','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=kfZWykwb9LU"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=title_tagline')); ?>"></span><?php esc_html_e( 'Site Identity', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Main Banner','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=yxAaFbhTZ1w"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=freeware_main_banner_section')); ?>"></span><?php esc_html_e( 'Main Banner', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Highlighted Category','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=eXkK3EXdj2c"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=freeware_category_highlight_section')); ?>"></span><?php esc_html_e( 'Highlighted Category', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Social Icons','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=MUBgLU7IuG0"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url())?>nav-menus.php"></span><?php esc_html_e( 'Social Icons', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Color Schemes','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=ynq_HEkvz2c"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=colors')); ?>"></span><?php esc_html_e( 'Color Schemes', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Primary Menu','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=ejy2J_SIoXg"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url())?>nav-menus.php"></span><?php esc_html_e( 'Primary Menu', 'freeware' ); ?></a>

				<h4> <?php esc_html_e('Setup Header','freeware'); ?></h4>
				<a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=kxUtpYfGL6k"><?php esc_html_e( 'Watch Video', 'freeware' ); ?></a>
					<a class="button button-secondary" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=header_image')); ?>"></span><?php esc_html_e( 'Setup Header', 'freeware' ); ?></a>
			</article>

			<article class="content five">
				 <h3><?php esc_html_e('Upgrade to Plus','freeware');?></h3>
				 <p><?php esc_html_e('Want additional features? Plus extension plugin adds additinal features for free themes. ','freeware')?><a href="<?php echo esc_url('https://themefreesia.com/themes/freeware');?>" class="button button-primary button-hero" target="_blank"><?php esc_html_e('Upgrade to Plus','freeware');?></a></p>
			   <h3><?php esc_html_e('Plus Features Extension','freeware');?></h3>
				<div class="feature-content">
					<ul class="feature-text">
						<li><?php esc_html_e('Site Layout','freeware'); ?></li>
						<li><?php esc_html_e('Single Sidebar Layout','freeware'); ?></li>
						<li><?php esc_html_e('Flexible Content Width','freeware'); ?></li>
						<li><?php esc_html_e('Sidebar Content Width','freeware'); ?></li>
						<li><?php esc_html_e('Custom Design','freeware'); ?></li>
						<li><?php esc_html_e('Default Text Edit','freeware'); ?></li>
						<li><?php esc_html_e('Choose Main Banner','freeware'); ?></li>
						<li><?php esc_html_e('Main Banner Settings','freeware'); ?></li>
						<li><?php esc_html_e('Category highlight settings','freeware'); ?></li>
						<li><?php esc_html_e('More Highlighted Category Display','freeware'); ?></li>
						<li><?php esc_html_e('Excerpt Text edit','freeware'); ?></li>
						<li><?php esc_html_e('Footer Layout','freeware'); ?></li>
						<li><?php esc_html_e('Instagram Compatible','freeware'); ?></li>
						<li><?php esc_html_e('Unlimited Color','freeware'); ?></li>
						<li><?php esc_html_e('Font Color','freeware'); ?></li>
						<li><?php esc_html_e('Background Color','freeware'); ?></li>
						<li><?php esc_html_e('Font Size','freeware'); ?></li>
						<li><?php esc_html_e('Font Family','freeware'); ?></li>
						<li><?php esc_html_e('Footer Column 1/2/3/4','freeware'); ?></li>
						<li><?php esc_html_e('More Social Icons','freeware'); ?></li>
						<li><?php esc_html_e('Change Featured Text in Sticky Post','freeware'); ?></li>
					</ul>
			    </div><!-- .feature-content -->
			</article>
		</div>
		<div class="pro-content">
			<div class="pro-content-wrap">
				<div class="pro-content-header">
					<h3><?php esc_html_e('Powerful Plus Extension Features','freeware');?></h3>
					<p><?php esc_html_e('Get unlimited features using Plus extension. Purchase Freeware Plus extension and get additional features and advanced customization options to make your website look awesome in different styles. ','freeware'); ?></p>
				</div>
					<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/free_vs_pro.png" alt="<?php esc_attr_e('Free vs Plus','freeware');?>">
			</div>
		</div>
	</div>
</div>
<?php }