<?php if (!function_exists('forexn_info_page')) {
	function forexn_info_page() {
	$page1=add_theme_page(__('Welcome to Forexn', 'forexn'), __('<span style="color:#ffe100">About Forexn</span>', 'forexn'), 'edit_theme_options', 'forexn', 'forexn_display_theme');
	
	add_action('admin_print_styles-'.$page1, 'forexn_pro_info');
	}	
}
add_action('admin_menu', 'forexn_info_page');

function forexn_pro_info(){
	// CSS
	wp_enqueue_style('bootstrap',  get_template_directory_uri() .'/assets/css/bootstrap.css');
	wp_enqueue_style('admin',  get_template_directory_uri() .'/assets/css/admin-themes.css');
	wp_enqueue_style('font-awesome',  get_template_directory_uri() .'/assets/css/font-awesome.min.css');
	//JS
	wp_enqueue_script('jquery');
	wp_enqueue_script('bootstrap-js',get_template_directory_uri() .'/assets/js/bootstrap.js');
} 
if (!function_exists('forexn_display_theme')) {
	function forexn_display_theme() {
		$theme_data = wp_get_theme(); ?>
	<div class="wrap elw-page-welcome about-wrap seting-page">

	    <div class="row astral-pro">
	        <div class=" col-md-6">
	            <?php $wl_th_info = wp_get_theme(); ?>
					<h2><span class="astral-title"><?php esc_html_e('Forexn - ','forexn'); ?> <?php echo esc_html( $wl_th_info->get('Version') ); ?> </span></h2>						
				</p>
			</div>
			<div class=" col-md-6">
	            <p class="desc"><?php esc_html_e('Light and Easy to Customize WordPress Theme','forexn'); ?></p>
			</div>
		</div> 
		
		<div class="container">
			<div class="row intro-section">
				<div class="col-md-8">
					<div class="info-box">
						<p><?php esc_html_e('More Options with Forexn Pro!','forexn') ?> </p>
						<div class="row">
							<div class="col-md-6">
								<p class="pro-feature"><span>3 Home Pages</span></p>
								<p class="pro-feature"><span>Mega Menu</span></p>
								<p class="pro-feature"><span>3 Header Presets</span></p>
								<p class="pro-feature"><span>Grid/Masonary Blog</span></p>
								<p class="pro-feature"><span>Team Page </span></p>
								<p class="pro-feature"><span>Testimonial Page</span></p>
								<p class="pro-feature"><span>Unlimited Colors</span></p>
								<p class="pro-feature"><span>500+ Google Fonts</span></p>
								<p class="pro-feature"><span>Portfolio Page</span></p>
							</div>
							<div class="col-md-6">
								<p class="pro-feature"><span>Contact Page</span></p>
								<p class="pro-feature"><span>Shortcode Bundle</span></p>
								<p class="pro-feature"><span>Premium Widgets</span></p>
								<p class="pro-feature"><span>Pricing Page</span></p>
								<p class="pro-feature"><span>FAQ Page </span></p>
								<p class="pro-feature"><span>One Click Demo Import</span></p>
								<p class="pro-feature"><span>Page Builder</span></p>
								<p class="pro-feature"><span>4 Service Pages</span></p>
								<p class="pro-feature"><span> Multiple Page layouts</span></p>
							</div>
							<div class="col-md-12">
								<div class="mywebapp-info">
									<a target="_blank" class="mywebapp-btn uptopro" href="<?php echo esc_url('http://wpcart.net/'); ?>"><?php esc_html_e('View Premium Version','forexn'); ?></a>
								</div>
							</div>	
						</div>
						
					</div>
				</div>
				<div class="col-md-4">
					<div class="info-box1">
						<h3 class="support"><?php esc_html_e('Customer Support','forexn'); ?></h3>
						<p class="support-text">
						 <?php esc_html_e('You are absolutely free to contact us and Forexn team will be happy to help you.','forexn'); ?> </p>
						<p class="support-text1"> <?php esc_html_e('We resolve your issues ASAP.','forexn'); ?></p>
						<p style="text-align: center;display: block;margin: 0 auto;padding-top: 20px;"> <a class="support-btn" target="_blank" href="<?php echo esc_url('https://wordpress.org/support/theme/forexn/'); ?>"><?php esc_html_e('Free Support','forexn'); ?></a></p>
						<p style="text-align: center;display: block;margin: 0 auto;padding-top: 20px;"> <a class="support-btn" target="_blank" href="<?php echo esc_url('http://wpcart.net/demo/'); ?>"><?php esc_html_e('Free Demo','forexn'); ?></a></p>
						<p style="text-align: center;display: block;margin: 0 auto;padding-top: 20px;"> <a class="support-btn" target="_blank" href="<?php echo esc_url('http://wpcart.net/forexn-documentation/'); ?>"><?php esc_html_e('Free Doc','forexn'); ?></a></p>
					</div>
				</div>
			</div>
		</div>

		<section id="tabs">
	<div class="container">
		<div class="row">
			<div class="col-md-8 document">
				<nav>
					<div class="nav nav-tabs" id="nav-tab" role="tablist">
						<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true"><?php esc_html_e('Documentation','forexn'); ?></a>	
					</div>
				</nav>
				<div class="tab-content py-3 px-3 px-sm-0" id="nav-tabContent">
					<div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
						<ol>
							<li> <?php esc_html_e('Create a New Page > Home','forexn'); ?> </li>
							<li> <?php esc_html_e('Go to Appearance -> Customize > Homepage Settings -> select A static page option. Select Page which is created in last step','forexn'); ?> </li>
							<li> <?php esc_html_e('Now Go to Customize -> Theme Settings -> General Settings.','forexn'); ?> </li>
							<li> <?php esc_html_e('Select FrontPage Template option','forexn'); ?> </li>
							<li> <?php esc_html_e('Save changes','forexn'); ?> </li>
						</ol>
						<a class="add_page" target="_blank" href="<?php echo admin_url('/post-new.php?post_type=page') ?>"><?php esc_html_e('Add New Page','forexn'); ?></a>
						
						<div class="mywebapp-info">
							<h3><?php esc_html_e('Visit Our Latest Project','forexn'); ?></h3>
							<p><?php esc_html_e('Our Aim is to be the most client-focused organisation, where we deliver extra importance to our client that gains their esteem and loyalty','forexn'); ?></p>
							<a target="_blank" class="mywebapp-btn" href="<?php echo esc_url('http://wpcart.net/'); ?>"><?php esc_html_e('Visit Our Site','forexn'); ?></a>
						</div>
					</div>
					
				</div>		
			</div>
			<div class="col-md-4">
				<img src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png">
			</div>
		</div>
	</div>
</section>
<?php
	}
}
?>