<?php
/**
 * Aamira Theme: Customizer
 *
 * @subpackage Aamira Theme
 * @since 1.0
 */

function aamira_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('aamira_theme_pro', array(
        'title'    => __('EQUESTRAIN SPORTS PREMIUM', 'aamira'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('aamira_theme_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new Waterproofing_Services_Pro_Control($wp_customize, 'aamira_theme_pro', array(
        'label'    => __('EQUESTRAIN SPORTS PREMIUM', 'aamira'),
        'section'  => 'aamira_theme_pro',
        'settings' => 'aamira_theme_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'aamira_customize_register' );


define('AAMIRA_THEME_PRO_LINK',__('https://coders-time.com/aamira-theme','aamira'));

define('AAMIRA_THEME_BUNDLE_BTN',__('https://coders-time.com/aamira-theme','aamira'));

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