setup_actions(); } return $instance; } /** * Constructor method. * * @since 1.0.0 * @access private * @return void */ private function __construct() { } /** * Sets up initial actions. * * @since 1.0.0 * @access private * @return void */ private function setup_actions() { // Register panels, sections, settings, controls, and partials. add_action('customize_register', array($this, 'sections')); // Register scripts and styles for the controls. add_action('customize_controls_enqueue_scripts', array($this, 'enqueue_control_scripts'), 0); } /** * Sets up the customizer sections. * * @since 1.0.0 * @access public * @param object $manager * @return void */ public function sections($manager) { // Load custom sections. require_once(trailingslashit(get_template_directory()) . 'inc/info_content/customizer/justinadlock-customizer-button/section-pro.php'); require_once(trailingslashit(get_template_directory()) . 'inc/info_content/customizer/justinadlock-customizer-button/control-pro.php'); // Register custom section types. $manager->register_section_type('blogfeedly_theme_Customize_Section_Pro'); //$manager->register_control_type('blogfeedly_theme_Customize_Control_Pro'); // Register sections. $manager->add_section( new blogfeedly_theme_Customize_Section_Pro( $manager, 'blogfeedly_theme', array( 'title' => esc_html__('Upgrade To Premium 👑', 'blogfeedly'), 'pro_description' => esc_html__('Unlock all customization options with premium. Customize all colors, fonts, layouts, 1-click design and much more!', 'blogfeedly'), 'pro_text' => esc_html__('View Premium Verison', 'blogfeedly'), 'pro_url' => 'https://superbthemes.com/blogfeedly/', 'priority' => '0' ) ) ); $manager->add_setting("blogfeedly_theme_control_layout"); $manager->add_control( new blogfeedly_theme_Customize_Control_Pro( $manager, 'blogfeedly_theme_control_layout', array( 'label' => esc_html__('Upgrade To Premium 👑', 'blogfeedly'), 'pro_description' => esc_html__('Upgrade to premium and Unlock all customization options. Customize all colors, fonts, layouts, 1-click design and much more!', 'blogfeedly'), 'pro_text' => esc_html__('View Premium Verison', 'blogfeedly'), 'pro_url' => 'https://superbthemes.com/blogfeedly/', 'priority' => '999', 'settings' => 'blogfeedly_theme_control_layout', 'section' => 'footer', ) ) ); $manager->add_setting("blogfeedly_theme_control_postpage"); $manager->add_control( new blogfeedly_theme_Customize_Control_Pro( $manager, 'blogfeedly_theme_control_postpage', array( 'label' => esc_html__('Upgrade To Premium 👑', 'blogfeedly'), 'pro_description' => esc_html__('Upgrade to premium and Unlock all customization options. Customize all colors, fonts, layouts, 1-click design and much more!', 'blogfeedly'), 'pro_text' => esc_html__('View Premium Verison', 'blogfeedly'), 'pro_url' => 'https://superbthemes.com/blogfeedly/', 'priority' => '999', 'settings' => 'blogfeedly_theme_control_postpage', 'section' => 'sidebar', ) ) ); } /** * Loads theme customizer CSS. * * @since 1.0.0 * @access public * @return void */ public function enqueue_control_scripts() { wp_enqueue_script('blogfeedly-customize-controls', trailingslashit(get_template_directory_uri()) . 'inc/info_content/customizer/justinadlock-customizer-button/customize-controls.js', array('customize-controls')); wp_enqueue_style('blogfeedly-customize-controls', trailingslashit(get_template_directory_uri()) . 'inc/info_content/customizer/justinadlock-customizer-button/customize-controls.css', array(), "1.0"); } } // Doing this customizer thang! blogfeedly_theme_Customize::get_instance();