'30', 'container' => '1290', 'navigator_items' => array( 'custom_css_js' => array( esc_html__( 'Style / Additional CSS & Script', 'alpus' ), 'section' ), 'color' => array( esc_html__( 'Color', 'alpus' ), 'section' ), 'blog' => array( esc_html__( 'Blog', 'alpus' ), 'section' ), 'product_type' => array( esc_html__( 'Shop / Product Type', 'alpus' ), 'section' ), 'product_detail' => array( esc_html__( 'WooCommerce / Product Page', 'alpus' ), 'section' ), ), 'conditions' => array( 'site' => array( array( 'title' => esc_html__( 'Global Layout', 'alpus' ), ), ), 'archive_product' => array(), 'single_product' => array(), 'archive_post' => array(), 'single_post' => array(), 'error' => array(), ), 'dark_color' => '#222', 'typo_default' => array( 'font-family' => 'Poppins', 'variant' => '400', 'font-size' => '16px', 'line-height' => '1.86', 'letter-spacing' => '', 'color' => '#888', ), 'typo_heading' => array( 'font-family' => 'inherit', 'variant' => '600', 'line-height' => '1.2', 'letter-spacing' => '-0.025em', 'text-transform' => 'none', 'color' => '#000', ), ) ); return $alpha_option; } /** * Add CSS for Customizer Options * * @since 1.0 */ public function load_extend_style() { wp_enqueue_style( 'alpha-customizer-extend', ALPHA_INC_URI . '/admin/customizer/customizer-extend' . ( is_rtl() ? '-rtl' : '' ) . '.min.css', array(), ALPHA_VERSION, 'all' ); } /** * Remove or add sections in theme option. * * @since 1.0 */ public function customize_sections_extend( $sections ) { // remove sections if ( ! defined( 'ALPHA_PRO_VERSION' ) ) { $sections = array_diff_key( $sections, array( 'blog' => false, 'products_archive' => false, 'wc_cart' => false, 'ajax_filter' => false, 'product_buy_now' => false, 'lazyload' => false, 'search' => false, 'reset_options' => false, 'seo' => false, 'white_label' => false, ) ); } $sections['color']['title'] = esc_html__( 'Skin & Color', 'alpus' ); unset( $sections['maintenance'] ); return $sections; } /** * Remove or add fields in theme option. * * @since 1.0 */ public function customize_fields_extend( $fields ) { // add dummy field options if ( ! defined( 'ALPHA_PRO_VERSION' ) ) { $fields['go_pro_control'] = array( 'section' => 'alpha_upsell', 'type' => 'hidden', ); $fields['go_pro_control3'] = array( 'section' => 'custom_cursor', 'type' => 'hidden', ); $fields['cs_sp_title'] = array(); } $fields = array_merge( $fields, array( // add field options 'cs_skin_title' => array( 'section' => 'color', 'type' => 'custom', 'label' => '', 'default' => '

' . esc_html__( 'Skin', 'alpus' ) . '

', 'priority' => 1, ), 'rounded_skin' => array( 'section' => 'color', 'type' => 'toggle', 'label' => esc_html__( 'Rounded Skin', 'alpus' ), 'tooltip' => esc_html__( 'Apply rounded corners for banner, posts and so on.', 'alpus' ), 'transport' => 'postMessage', 'priority' => 2, ), // Style / Typography 'cs_typo_default_font' => array( 'section' => 'typo', 'type' => 'custom', 'default' => '

' . esc_html__( 'Default Typography', 'alpus' ) . '

', 'priority' => 5, ), 'typo_default' => array( 'section' => 'typo', 'type' => 'typography', 'label' => '', 'choices' => apply_filters( 'alpha_kirki_typo_control_choices', array() ), 'transport' => 'postMessage', 'priority' => 5, ), 'cs_typo_heading' => array( 'section' => 'typo', 'type' => 'custom', 'default' => '

' . esc_html__( 'Heading Typography', 'alpus' ) . '

', 'priority' => 5, ), 'typo_heading' => array( 'section' => 'typo', 'type' => 'typography', 'label' => '', 'choices' => apply_filters( 'alpha_kirki_typo_control_choices', array() ), 'transport' => 'postMessage', 'priority' => 5, ), 'success_color' => array( 'section' => 'color', 'type' => 'color', 'label' => esc_html__( 'Success Color', 'alpus' ), 'choices' => array( 'alpha' => true, ), 'transport' => 'postMessage', ), 'alert_color' => array( 'section' => 'color', 'type' => 'color', 'label' => esc_html__( 'Warning Color', 'alpus' ), 'choices' => array( 'alpha' => true, ), 'transport' => 'postMessage', ), 'danger_color' => array( 'section' => 'color', 'type' => 'color', 'label' => esc_html__( 'Danger Color', 'alpus' ), 'choices' => array( 'alpha' => true, ), 'transport' => 'postMessage', ), 'typo_h1_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H1 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'typo_h2_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H2 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'typo_h3_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H3 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'typo_h4_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H4 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'typo_h5_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H5 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'typo_h6_size' => array( 'section' => 'typo', 'type' => 'text', 'label' => esc_html__( 'H6 Font Size', 'alpus' ), 'transport' => 'postMessage', 'priority' => 5, ), 'cs_typo_google_title' => array( 'section' => 'typo', 'type' => 'custom', 'default' => '

' . esc_html__( 'Google Fonts', 'alpus' ) . '

', 'priority' => 8, ), 'cs_typo_google_desc' => array( 'section' => 'typo', 'type' => 'custom', 'default' => '

' . esc_html__( 'Select google fonts use throughout the site.', 'alpus' ) . '

', 'priority' => 8, ), 'typo_custom_part' => array( 'section' => 'typo', 'type' => 'radio-buttonset', 'default' => '1', 'transport' => 'postMessage', 'choices' => array( '1' => esc_html__( 'Font 1', 'alpus' ), '2' => esc_html__( 'Font 2', 'alpus' ), '3' => esc_html__( 'Font 3', 'alpus' ), ), 'priority' => 8, ), 'typo_custom1' => array( 'section' => 'typo', 'type' => 'typography', 'label' => esc_html__( 'Font 1', 'alpus' ), 'transport' => 'postMessage', 'active_callback' => array( array( 'setting' => 'typo_custom_part', 'operator' => '==', 'value' => '1', ), ), 'priority' => 8, ), 'typo_custom2' => array( 'section' => 'typo', 'type' => 'typography', 'label' => esc_html__( 'Font 2', 'alpus' ), 'transport' => 'postMessage', 'active_callback' => array( array( 'setting' => 'typo_custom_part', 'operator' => '==', 'value' => '2', ), ), 'priority' => 8, ), 'typo_custom3' => array( 'section' => 'typo', 'type' => 'typography', 'label' => esc_html__( 'Font 3', 'alpus' ), 'transport' => 'postMessage', 'active_callback' => array( array( 'setting' => 'typo_custom_part', 'operator' => '==', 'value' => '3', ), ), 'priority' => 8, ), // remove field options 'cs_product_custom_tab' => false, 'product_tab_title' => false, 'product_tab_block' => false, 'quickview_type' => false, ) ); return $fields; } public function add_pro_sections( $manager ) { // Load custom sections. require_once ALPHA_INC_PATH . '/admin/customizer/class-alpha-customizer-pro-section.php'; // Register custom section types. $manager->register_section_type( 'Alpha_Customizer_Pro_Section' ); // Register sections. $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'alpha_upsell', array( 'title' => esc_html__( 'More Options Available in Alpus Pro', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'priority' => -999, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'blog', array( 'title' => esc_html__( 'Blog', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'priority' => 50, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'products_archive', array( 'title' => esc_html__( 'Shop', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'woocommerce', 'priority' => 0, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'wc_cart', array( 'title' => esc_html__( 'Cart Page', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'woocommerce', 'priority' => 20, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'ajax_filter', array( 'title' => esc_html__( 'Ajax Filter', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'features', 'priority' => 10, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'product_buy_now', array( 'title' => esc_html__( 'Product Buy Now', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'features', 'priority' => 10, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'lazyload', array( 'title' => esc_html__( 'Lazy Load', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'features', 'priority' => 50, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'search', array( 'title' => esc_html__( 'Search', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'features', 'priority' => 70, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'reset_options', array( 'title' => esc_html__( 'Import/Export/Reset', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'seo', array( 'title' => esc_html__( 'SEO', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'white_label', array( 'title' => esc_html__( 'White Label', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'custom_cursor', array( 'title' => esc_html__( 'Custom Cursor', 'alpus' ), 'pro_url' => ALPHA_PRO_SERVER_URI, 'panel' => 'advanced', ) ) ); } } } Alpha_Customizer_Extend::get_instance();