<?php
/**
 * History Museum: Customizer
 *
 * @subpackage History Museum
 * @since 1.0
 */

function history_museum_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('history_museum_pro', array(
        'title'    => __('MUSEUM PREMIUM', 'history-museum'),
        'priority' => 1,
    ));
    $wp_customize->add_setting('history_museum_pro', array(
        'default'           => null,
        'sanitize_callback' => 'sanitize_text_field',
    ));
    $wp_customize->add_control(new History_Museum_Pro_Control($wp_customize, 'history_museum_pro', array(
        'label'    => __('MUSEUM PREMIUM', 'history-museum'),
        'section'  => 'history_museum_pro',
        'settings' => 'history_museum_pro',
        'priority' => 1,
    )));
}
add_action( 'customize_register', 'history_museum_customize_register' );


define('HISTORY_MUSEUM_PRO_LINK',__('https://www.ovationthemes.com/products/history-wordpress-theme','history-museum'));

define('HISTORY_MUSEUM_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','history-museum'));

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