<?php

add_action( 'admin_menu', 'aamira_support_gettingstarted' );
function aamira_support_gettingstarted() {
	add_theme_page( esc_html__('Begin Installation', 'aamira'), esc_html__('Begin Installation', 'aamira'), 'edit_theme_options', 'theme-guide-page', 'aamira_theme_guide');
}

if ( ! defined( 'AAMIRA_THEME_SUPPORT' ) ) {
define('AAMIRA_THEME_SUPPORT',__('https://wordpress.org/support/theme/aamira/','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_REVIEW' ) ) {
define('AAMIRA_THEME_REVIEW',__('https://wordpress.org/support/theme/aamira/reviews/','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_LIVE_DEMO' ) ) {
define('AAMIRA_THEME_LIVE_DEMO',__('https://coders-time.com/aamira/','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_BUY_PRO' ) ) {
define('AAMIRA_THEME_BUY_PRO',__('https://coders-time.com/products/aamira-theme','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_PRO_DOC' ) ) {
define('AAMIRA_THEME_PRO_DOC',__('https://coders-time.com/docs/aamira-pro-doc/','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_FREE_DOC' ) ) {
define('AAMIRA_THEME_FREE_DOC',__('https://coders-time.com/docs/aamira-free-doc/','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_THEME_NAME' ) ) {
define('AAMIRA_THEME_THEME_NAME',__('Premium Aamira Theme','aamira'));
}
if ( ! defined( 'AAMIRA_THEME_BUNDLE_LINK' ) ) {
define('AAMIRA_THEME_BUNDLE_LINK',__('https://coders-time.com/products/wordpress-bundle','aamira'));
}
/**
 * Theme Info Page
 */
function aamira_theme_guide() {

	// Theme info
	$return = add_query_arg( array()) ;
	$theme = wp_get_theme( '' ); ?>

	<div class="getting-started__header">
		<div class="header-box-left">
			<h2><?php echo esc_html( $theme ); ?></h2>
			<p><?php esc_html_e('Version: ', 'aamira'); ?><?php echo esc_html($theme['Version']);?></p>
		</div>
		<div class="header-box-right">
			<div class="btn_box">
				<a class="button-primary" href="<?php echo esc_url( AAMIRA_THEME_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'aamira'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( AAMIRA_THEME_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support', 'aamira'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( AAMIRA_THEME_REVIEW ); ?>" target="_blank"><?php esc_html_e('Review', 'aamira'); ?></a>
			</div>
		</div>
	</div>

	<div class="wrap getting-started">
		<div class="box-container">
			<div class="box-left-main">
				<div class="leftbox">
					<h3><?php esc_html_e('Documentation','aamira'); ?></h3>
					<p><?php $theme = wp_get_theme(); 
						echo wp_kses_post( apply_filters( 'description', esc_html( $theme->get( 'Description' ) ) ) );
					?></p>

					<h4><?php esc_html_e('Edit Your Site','aamira'); ?></h4>
					<p><?php esc_html_e('Now create your website with easy drag and drop powered by gutenburg.','aamira'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( admin_url() . 'site-editor.php' ); ?>" target="_blank"><?php esc_html_e('Edit Your Site','aamira'); ?></a>

					<h4><?php esc_html_e('Visit Your Site','aamira'); ?></h4>
					<p><?php esc_html_e('To check your website click here','aamira'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( home_url() ); ?>" target="_blank"><?php esc_html_e('Visit Your Site','aamira'); ?></a>

					<h4><?php esc_html_e('Theme Documentation','aamira'); ?></h4>
					<p><?php esc_html_e('Check the theme documentation to easily set up your website.','aamira'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( AAMIRA_THEME_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation','aamira'); ?></a>
				</div>
       	</div>
			<div class="box-right-main">
				<h3><?php echo esc_html(AAMIRA_THEME_THEME_NAME); ?></h3>
				<img class="aamira_theme_img_responsive" style="width: 100%;" src="<?php echo esc_url( $theme->get_screenshot() ); ?>" />
				<div class="pro-links">
					<div class="pro-links-inner">
						<a class="button-primary livedemo" href="<?php echo esc_url( AAMIRA_THEME_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'aamira'); ?></a>
						<a class="button-primary buynow" href="<?php echo esc_url( AAMIRA_THEME_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Buy Now', 'aamira'); ?></a>
						<a class="button-primary docs" href="<?php echo esc_url( AAMIRA_THEME_PRO_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'aamira'); ?></a>
					</div>
						<a class="button-primary bundle-btn" href="<?php echo esc_url( AAMIRA_THEME_BUNDLE_LINK ); ?>" target="_blank"><?php esc_html_e('WordPress Theme Bundle (120+ Themes at Just $89)', 'aamira'); ?></a>
				</div>
				<ul style="padding-top:10px">
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Responsive Design', 'aamira');?> </li>                 
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Demo Importer', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Section Reordering', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Contact Page Template', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Multiple Blog Layouts', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Unlimited Color Options', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Cross Browser Support', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Detailed Documentation Included', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('WPML Compatible (Translation Ready)', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Woo-commerce Compatible', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Full Support', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('10+ Sections', 'aamira');?> </li>
					<li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('SEO Friendly', 'aamira');?> </li>
               <li class="upsell-aamira_theme"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Supper Fast', 'aamira');?> </li>
            </ul>
        	</div>
		</div>
	</div>

<?php }?>