<?php
/**
 * Scholarship School: Customizer
 *
 * @subpackage Scholarship School
 * @since 1.0
 */

function scholarship_school_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('scholarship_school_pro', array(
        'title'    => __('SCHOLARSHIP SCHOOL PREMIUM', 'scholarship-school'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('scholarship_school_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new Scholarship_School_Pro_Control($wp_customize, 'scholarship_school_pro', array(
        'label'    => __('SCHOLARSHIP SCHOOL PREMIUM', 'scholarship-school'),
        'section'  => 'scholarship_school_pro',
        'settings' => 'scholarship_school_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'scholarship_school_customize_register' );


define('SCHOLARSHIP_SCHOOL_PRO_LINK',__('https://www.ovationthemes.com/products/scholarship-wordpress-theme','scholarship-school'));

define('SCHOLARSHIP_SCHOOL_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','scholarship-school'));

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