<?php
/**
 * Dermatologist Clinic: Customizer
 *
 * @subpackage Dermatologist Clinic
 * @since 1.0
 */

function dermatologist_clinic_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('dermatologist_clinic_pro', array(
        'title'    => __('DERMATOLOGIST CLINIC PREMIUM', 'dermatologist-clinic'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('dermatologist_clinic_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new Dermatologist_Clinic_Pro_Control($wp_customize, 'dermatologist_clinic_pro', array(
        'label'    => __('DERMATOLOGIST CLINIC PREMIUM', 'dermatologist-clinic'),
        'section'  => 'dermatologist_clinic_pro',
        'settings' => 'dermatologist_clinic_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'dermatologist_clinic_customize_register' );


define('DERMATOLOGIST_CLINIC_PRO_LINK',__('https://www.ovationthemes.com/products/dermatologist-wordpress-theme','dermatologist-clinic'));

define('DERMATOLOGIST_CLINIC_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','dermatologist-clinic'));

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