<?php
/**
 * Security Officer: Customizer
 *
 * @subpackage Security Officer
 * @since 1.0
 */

function security_officer_customize_register( $wp_customize ) {

	wp_enqueue_style('customizercustom_css', esc_url( get_template_directory_uri() ). '/inc/customizer/customizer.css');

	// Pro Section
 	$wp_customize->add_section('security_officer_pro', array(
        'title'    => __('SECURITY OFFICER PREMIUM', 'security-officer'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('security_officer_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new Security_Officer_Pro_Control($wp_customize, 'security_officer_pro', array(
        'label'    => __('SECURITY OFFICER PREMIUM', 'security-officer'),
        'section'  => 'security_officer_pro',
        'settings' => 'security_officer_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'security_officer_customize_register' );


define('SECURITY_OFFICER_PRO_LINK',__('https://www.ovationthemes.com/products/security-guard-wordpress-theme','security-officer'));

define('SECURITY_OFFICER_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','security-officer'));

/* Pro control */
if (class_exists('WP_Customize_Control') && !class_exists('Security_Officer_Pro_Control')):
    class Security_Officer_Pro_Control extends WP_Customize_Control{

    public function render_content(){?>
        <label style="overflow: hidden; zoom: 1;">
	        <div class="col-md upsell-btn">
                <a href="<?php echo esc_url( SECURITY_OFFICER_PRO_LINK ); ?>" target="blank" class="btn btn-success btn"><?php esc_html_e('UPGRADE SECURITY OFFICER PREMIUM','security-officer');?> </a>
	        </div>
            <div class="col-md">
                <img class="security_officer_img_responsive " src="<?php echo esc_url(get_template_directory_uri()); ?>/screenshot.png">
            </div>
	        <div class="col-md">
                <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 class="col-md upsell-btn upsell-btn-bottom">
                <a href="<?php echo esc_url( SECURITY_OFFICER_BUNDLE_BTN ); ?>" target="blank" class="btn btn-success btn"><?php esc_html_e('WP Theme Bundle (125+ Themes)','security-officer');?> </a>
            </div>
        </label>
    <?php } }
endif;