<?php

add_action( 'admin_menu', 'scholarship_school_gettingstarted' );
function scholarship_school_gettingstarted() {
	add_theme_page( esc_html__('Begin Installation', 'scholarship-school'), esc_html__('Begin Installation', 'scholarship-school'), 'edit_theme_options', 'scholarship-school-guide-page', 'scholarship_school_guide');
}

if ( ! defined( 'SCHOLARSHIP_SCHOOL_SUPPORT' ) ) {
define('SCHOLARSHIP_SCHOOL_SUPPORT',__('https://wordpress.org/support/theme/scholarship-school/','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_REVIEW' ) ) {
define('SCHOLARSHIP_SCHOOL_REVIEW',__('https://wordpress.org/support/theme/scholarship-school/reviews/','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_LIVE_DEMO' ) ) {
define('SCHOLARSHIP_SCHOOL_LIVE_DEMO',__('https://trial.ovationthemes.com/scholarship-school/','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_BUY_PRO' ) ) {
define('SCHOLARSHIP_SCHOOL_BUY_PRO',__('https://www.ovationthemes.com/products/scholarship-wordpress-theme','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_PRO_DOC' ) ) {
define('SCHOLARSHIP_SCHOOL_PRO_DOC',__('https://trial.ovationthemes.com/docs/ot-scholarship-school-doc/','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_FREE_DOC' ) ) {
define('SCHOLARSHIP_SCHOOL_FREE_DOC',__('https://trial.ovationthemes.com/docs/ot-scholarship-free-doc/','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_THEME_NAME' ) ) {
define('SCHOLARSHIP_SCHOOL_THEME_NAME',__('Premium Scholarship School Theme','scholarship-school'));
}
if ( ! defined( 'SCHOLARSHIP_SCHOOL_BUNDLE_LINK' ) ) {
define('SCHOLARSHIP_SCHOOL_BUNDLE_LINK',__('https://www.ovationthemes.com/products/wordpress-bundle','scholarship-school'));
}
/**
 * Theme Info Page
 */
function scholarship_school_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: ', 'scholarship-school'); ?><?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( SCHOLARSHIP_SCHOOL_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'scholarship-school'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support', 'scholarship-school'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_REVIEW ); ?>" target="_blank"><?php esc_html_e('Review', 'scholarship-school'); ?></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','scholarship-school'); ?></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','scholarship-school'); ?></h4>
					<p><?php esc_html_e('Now create your website with easy drag and drop powered by gutenburg.','scholarship-school'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( admin_url() . 'site-editor.php' ); ?>" target="_blank"><?php esc_html_e('Edit Your Site','scholarship-school'); ?></a>

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

					<h4><?php esc_html_e('Theme Documentation','scholarship-school'); ?></h4>
					<p><?php esc_html_e('Check the theme documentation to easily set up your website.','scholarship-school'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation','scholarship-school'); ?></a>
				</div>
       	</div>
			<div class="box-right-main">
				<h3><?php echo esc_html(SCHOLARSHIP_SCHOOL_THEME_NAME); ?></h3>
				<img class="scholarship_school_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( SCHOLARSHIP_SCHOOL_LIVE_DEMO ); ?>" target="_blank"><?php esc_html_e('Live Demo', 'scholarship-school'); ?></a>
						<a class="button-primary buynow" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_BUY_PRO ); ?>" target="_blank"><?php esc_html_e('Buy Now', 'scholarship-school'); ?></a>
						<a class="button-primary docs" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_PRO_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'scholarship-school'); ?></a>
					</div>
						<a class="button-primary bundle-btn" href="<?php echo esc_url( SCHOLARSHIP_SCHOOL_BUNDLE_LINK ); ?>" target="_blank"><?php esc_html_e('WordPress Theme Bundle (125+ Themes at Just $99)', 'scholarship-school'); ?></a>
				</div>
				<ul style="padding-top:10px">
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Responsive Design', 'scholarship-school');?> </li>                 
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Demo Importer', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Section Reordering', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Contact Page Template', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Multiple Blog Layouts', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Unlimited Color Options', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Cross Browser Support', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Detailed Documentation Included', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('WPML Compatible (Translation Ready)', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Woo-commerce Compatible', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Full Support', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('10+ Sections', 'scholarship-school');?> </li>
					<li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('SEO Friendly', 'scholarship-school');?> </li>
               <li class="upsell-scholarship_school"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Supper Fast', 'scholarship-school');?> </li>
            </ul>
        	</div>
		</div>
	</div>

<?php }?>