<?php
/**
 * Call Center Services: Customizer
 *
 * @subpackage Call Center Services
 * @since 1.0
 */

function call_center_services_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('call_center_services_pro', array(
        'title'    => __('CALL CENTER SERVICES PREMIUM', 'call-center-services'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('call_center_services_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new Call_Center_Services_Pro_Control($wp_customize, 'call_center_services_pro', array(
        'label'    => __('CALL CENTER SERVICES PREMIUM', 'call-center-services'),
        'section'  => 'call_center_services_pro',
        'settings' => 'call_center_services_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'call_center_services_customize_register' );


define('CALL_CENTER_SERVICES_PRO_LINK',__('https://www.ovationthemes.com/products/call-center-wordpress-theme','call-center-services'));

define('CALL_CENTER_SERVICES_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','call-center-services'));

/* Pro control */
if (class_exists('WP_Customize_Control') && !class_exists('Call_Center_Services_Pro_Control')):
    class Call_Center_Services_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( CALL_CENTER_SERVICES_PRO_LINK ); ?>" target="blank" class="btn btn-success btn"><?php esc_html_e('UPGRADE CALL CENTER PREMIUM','call-center-services');?> </a>
	        </div>
            <div class="col-md">
                <img class="call_center_services_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-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Responsive Design', 'call-center-services');?> </li>                 
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Demo Importer', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Section Reordering', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Contact Page Template', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Multiple Blog Layouts', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Unlimited Color Options', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Cross Browser Support', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Detailed Documentation Included', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('WPML Compatible (Translation Ready)', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Woo-commerce Compatible', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Full Support', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('10+ Sections', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('SEO Friendly', 'call-center-services');?> </li>
                    <li class="upsell-call_center_services"> <div class="dashicons dashicons-yes"></div> <?php esc_html_e('Supper Fast', 'call-center-services');?> </li>
                </ul>
        	</div>
            <div class="col-md upsell-btn upsell-btn-bottom">
                <a href="<?php echo esc_url( CALL_CENTER_SERVICES_BUNDLE_BTN ); ?>" target="blank" class="btn btn-success btn"><?php esc_html_e('WP Theme Bundle (125+ Themes)','call-center-services');?> </a>
            </div>
        </label>
    <?php } }
endif;