add_section('apartment_blocks_pro', array( 'title' => __('APARTMENT BLOCKS PREMIUM', 'apartment-blocks'), 'priority' => 1, )); $wp_customize->add_setting('apartment_blocks_pro', array( 'default' => null, 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control(new Apartment_Blocks_Pro_Control($wp_customize, 'apartment_blocks_pro', array( 'label' => __('APARTMENT BLOCKS PREMIUM', 'apartment-blocks'), 'section' => 'apartment_blocks_pro', 'settings' => 'apartment_blocks_pro', 'priority' => 1, ))); } add_action( 'customize_register', 'apartment_blocks_customize_register' ); define('APARTMENT_BLOCKS_PRO_LINK',__('https://www.ovationthemes.com/products/apartment-rental-wordpress-theme','apartment-blocks')); define('APARTMENT_BLOCKS_BUNDLE_BTN',__('https://www.ovationthemes.com/products/wordpress-bundle','apartment-blocks')); /* Pro control */ if (class_exists('WP_Customize_Control') && !class_exists('Apartment_Blocks_Pro_Control')): class Apartment_Blocks_Pro_Control extends WP_Customize_Control{ public function render_content(){?>