<?php

add_action( 'admin_menu', 'security_officer_gettingstarted' );
function security_officer_gettingstarted() {
	add_theme_page( esc_html__('Begin Installation', 'security-officer'), esc_html__('Begin Installation', 'security-officer'), 'edit_theme_options', 'security-officer-guide-page', 'security_officer_guide');
}

if ( ! defined( 'SECURITY_OFFICER_SUPPORT' ) ) {
define('SECURITY_OFFICER_SUPPORT',__('https://wordpress.org/support/theme/security-officer/','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_REVIEW' ) ) {
define('SECURITY_OFFICER_REVIEW',__('https://wordpress.org/support/theme/security-officer/reviews/','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_LIVE_DEMO' ) ) {
define('SECURITY_OFFICER_LIVE_DEMO',__('https://trial.ovationthemes.com/security-officer/','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_BUY_PRO' ) ) {
define('SECURITY_OFFICER_BUY_PRO',__('https://www.ovationthemes.com/products/security-guard-wordpress-theme','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_PRO_DOC' ) ) {
define('SECURITY_OFFICER_PRO_DOC',__('https://trial.ovationthemes.com/docs/security-officer-doc/','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_FREE_DOC' ) ) {
define('SECURITY_OFFICER_FREE_DOC',__('https://trial.ovationthemes.com/docs/security-officer-free-doc/','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_THEME_NAME' ) ) {
define('SECURITY_OFFICER_THEME_NAME',__('Premium Security Officer Theme','security-officer'));
}
if ( ! defined( 'SECURITY_OFFICER_BUNDLE_LINK' ) ) {
define('SECURITY_OFFICER_BUNDLE_LINK',__('https://www.ovationthemes.com/products/wordpress-bundle','security-officer'));
}
/**
 * Theme Info Page
 */
function security_officer_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: ', 'security-officer'); ?><?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( SECURITY_OFFICER_FREE_DOC ); ?>" target="_blank"><?php esc_html_e('Documentation', 'security-officer'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( SECURITY_OFFICER_SUPPORT ); ?>" target="_blank"><?php esc_html_e('Support', 'security-officer'); ?></a>
				<a class="button-primary" href="<?php echo esc_url( SECURITY_OFFICER_REVIEW ); ?>" target="_blank"><?php esc_html_e('Review', 'security-officer'); ?></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','security-officer'); ?></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','security-officer'); ?></h4>
					<p><?php esc_html_e('Now create your website with easy drag and drop powered by gutenburg.','security-officer'); ?></p>
					<a class="button-primary" href="<?php echo esc_url( admin_url() . 'site-editor.php' ); ?>" target="_blank"><?php esc_html_e('Edit Your Site','security-officer'); ?></a>

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

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

<?php }?>