<?php

add_action( 'admin_menu', 'recipe_blogs_gettingstarted' );
function recipe_blogs_gettingstarted() {
	add_theme_page( esc_html__('Begin Installation', 'recipe-blogs'), esc_html__('Begin Installation', 'recipe-blogs'), 'edit_theme_options', 'recipe-blogs-guide-page', 'recipe_blogs_guide');
}

if ( ! defined( 'RECIPE_BLOGS_SUPPORT' ) ) {
define('RECIPE_BLOGS_SUPPORT',__('https://wordpress.org/support/theme/recipe-blogs/','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_REVIEW' ) ) {
define('RECIPE_BLOGS_REVIEW',__('https://wordpress.org/support/theme/recipe-blogs/reviews/','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_LIVE_DEMO' ) ) {
define('RECIPE_BLOGS_LIVE_DEMO',__('https://trial.ovationthemes.com/recipe-blogs/','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_BUY_PRO' ) ) {
define('RECIPE_BLOGS_BUY_PRO',__('https://www.ovationthemes.com/products/recipes-wordpress-theme','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_PRO_DOC' ) ) {
define('RECIPE_BLOGS_PRO_DOC',__('https://trial.ovationthemes.com/docs/recipe-blogs-doc/','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_FREE_DOC' ) ) {
define('RECIPE_BLOGS_FREE_DOC',__('https://trial.ovationthemes.com/docs/recipe-blogs-free-doc/','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_THEME_NAME' ) ) {
define('RECIPE_BLOGS_THEME_NAME',__('Premium Recipe Blogs Theme','recipe-blogs'));
}
if ( ! defined( 'RECIPE_BLOGS_BUNDLE_LINK' ) ) {
define('RECIPE_BLOGS_BUNDLE_LINK',__('https://www.ovationthemes.com/products/wordpress-bundle','recipe-blogs'));
}
/**
 * Theme Info Page
 */
function recipe_blogs_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: ', 'recipe-blogs'); ?><?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( RECIPE_BLOGS_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'recipe-blogs'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( RECIPE_BLOGS_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support', 'recipe-blogs'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( RECIPE_BLOGS_REVIEW ); ?>" target="_blank"><?php esc_html_e('Review', 'recipe-blogs'); ?></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','recipe-blogs'); ?></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','recipe-blogs'); ?></h4>
					<p><?php esc_html_e('Now create your website with easy drag and drop powered by gutenburg.','recipe-blogs'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( admin_url() . 'site-editor.php' ); ?>" target="_blank"><?php esc_html_e('Edit Your Site','recipe-blogs'); ?></a>

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

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

<?php }?>