Price Table section. * * @package business-class/customizer/fields */ /** * Exit if accessed directly. */ if ( ! defined( 'ABSPATH' ) ) { exit; } $panel_name = 'Front Page'; $section_name = 'Price Table'; Business_Class_Customizer::add_field( BUSINESS_CLASS_CUSTOMIZER_THEME_CONFIG_ID, array( 'type' => 'toggle', 'settings' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Enable Section' ), 'label' => __( 'Enable Section?', 'business-class' ), 'section' => business_class_get_customizer_section_id( $panel_name, $section_name ), 'default' => business_class_customizer_defaults( $panel_name, $section_name, 'Enable Section' ), 'priority' => 10, ) ); Business_Class_Customizer::add_field( BUSINESS_CLASS_CUSTOMIZER_THEME_CONFIG_ID, array( 'type' => 'text', 'settings' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Heading' ), 'label' => __( 'Heading', 'business-class' ), 'section' => business_class_get_customizer_section_id( $panel_name, $section_name ), 'default' => business_class_customizer_defaults( $panel_name, $section_name, 'Heading' ), 'priority' => 10, 'active_callback' => array( array( 'setting' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Enable Section' ), 'operator' => '==', 'value' => true, ), ), ) ); Business_Class_Customizer::add_field( BUSINESS_CLASS_CUSTOMIZER_THEME_CONFIG_ID, array( 'type' => 'textarea', 'settings' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Sub Heading' ), 'label' => __( 'Sub Heading', 'business-class' ), 'section' => business_class_get_customizer_section_id( $panel_name, $section_name ), 'default' => business_class_customizer_defaults( $panel_name, $section_name, 'Sub Heading' ), 'priority' => 10, 'active_callback' => array( array( 'setting' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Enable Section' ), 'operator' => '==', 'value' => true, ), ), ) ); Business_Class_Customizer::add_field( BUSINESS_CLASS_CUSTOMIZER_THEME_CONFIG_ID, array( 'type' => 'toggle', 'settings' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Table Head Color' ), 'label' => __( 'Table Head Color', 'business-class' ), 'section' => business_class_get_customizer_section_id( $panel_name, $section_name ), 'default' => business_class_customizer_defaults( $panel_name, $section_name, 'Table Head Color' ), 'active_callback' => array( array( 'setting' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Enable Section' ), 'operator' => '==', 'value' => true, ), ), 'priority' => 10, ) ); Business_Class_Customizer::add_field( BUSINESS_CLASS_CUSTOMIZER_THEME_CONFIG_ID, array( 'type' => 'repeater', 'label' => esc_html__( 'Packages', 'business-class' ), 'section' => business_class_get_customizer_section_id( $panel_name, $section_name ), 'priority' => 10, 'row_label' => array( 'type' => 'field', 'value' => esc_html__( 'Package', 'business-class' ), 'field' => 'title', ), 'choices' => array( 'limit' => 5, ), 'active_callback' => array( array( 'setting' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Enable Section' ), 'operator' => '==', 'value' => true, ), ), 'default' => business_class_customizer_defaults( $panel_name, $section_name, 'Packages' ), 'button_label' => esc_html__( 'Add Package', 'business-class' ), 'settings' => business_class_customizer_fields_settings_id( $panel_name, $section_name, 'Packages' ), 'fields' => array( 'title' => array( 'type' => 'text', 'label' => esc_html__( 'Package Title', 'business-class' ), ), 'price' => array( 'type' => 'text', 'label' => esc_html__( 'Package Price', 'business-class' ), ), 'duration' => array( 'type' => 'text', 'label' => esc_html__( 'Package Duration', 'business-class' ), 'description' => esc_html__( 'Mention if your package price is per month or per year.', 'business-class' ), ), 'features' => array( 'type' => 'textarea', 'label' => esc_html__( 'Package Features', 'business-class' ), 'description' => esc_html__( 'Write your package features, it must be separated with comma for new line.', 'business-class' ), ), 'btn_label' => array( 'type' => 'text', 'label' => esc_html__( 'Button Label', 'business-class' ), ), 'btn_link' => array( 'type' => 'text', 'label' => esc_html__( 'Button Link', 'business-class' ), ), ), ) );