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_control2'] = array( 'section' => 'custom_cursor', 'type' => 'hidden', ); $fields['go_pro_control3'] = array( 'section' => 'ai_generator', 'type' => 'hidden', ); $fields['cs_sp_title'] = array(); } $fields = array_merge( $fields, array( // Style / Typography 'cs_typo_default_font' => 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, ) ); if ( class_exists( 'WooCommerce' ) ) { $fields = array_merge( $fields, array( 'cs_shop_quickview_desc' => array( 'section' => 'quickview', 'type' => 'custom', 'label' => sprintf( esc_html__( '3 quickview types are available in %1$sAlpus Pro%2$s - default, offcanvas or animate.', 'alpus' ), '', '' ), 'default' => '', ), ) ); } 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_GET_PRO_URI, 'priority' => -999, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'blog', array( 'title' => esc_html__( 'Blog', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_URI, 'priority' => 50, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'products_archive', array( 'title' => esc_html__( 'Shop', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_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_GET_PRO_URI, 'panel' => 'woocommerce', 'priority' => 20, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'ai_generator', array( 'title' => esc_html__( 'AI Generator', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_URI, 'panel' => 'features', 'priority' => 5, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'ajax_filter', array( 'title' => esc_html__( 'Ajax Filter', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_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_GET_PRO_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_GET_PRO_URI, 'panel' => 'features', 'priority' => 50, ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'search', array( 'title' => esc_html__( 'Search', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_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_GET_PRO_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'seo', array( 'title' => esc_html__( 'SEO', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'white_label', array( 'title' => esc_html__( 'White Label', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_URI, 'panel' => 'advanced', ) ) ); $manager->add_section( new Alpha_Customizer_Pro_Section( $manager, 'custom_cursor', array( 'title' => esc_html__( 'Custom Cursor', 'alpus' ), 'pro_url' => ALPHA_GET_PRO_URI, 'panel' => 'advanced', ) ) ); } } } Alpha_Customizer_Extend::get_instance();