esc_html__( 'Featured Posts', 'bizberg-agency' ), 'section' => 'homepage' ) ); Kirki::add_field( 'bizberg', [ 'type' => 'radio', 'settings' => 'blog_featured_3_col_post_type', 'label' => esc_html__( 'Display From', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => 'none', 'choices' => [ 'category' => esc_html__( 'Category', 'bizberg-agency' ), 'page' => esc_html__( 'Pages', 'bizberg-agency' ), 'none' => esc_html__( 'None', 'bizberg-agency' ) ] ] ); Kirki::add_field( 'bizberg', [ 'type' => 'repeater', 'label' => esc_attr__( 'Select Pages', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'row_label' => [ 'type' => 'field', 'value' => esc_html__( 'Page', 'bizberg-agency' ) ], 'settings' => 'featured_post_3_column', 'fields' => [ 'page_id' => [ 'type' => 'select', 'label' => esc_html__( 'Page', 'bizberg-agency' ), 'choices' => function_exists( 'bizberg_get_all_pages' ) ? bizberg_get_all_pages() : array() ], ], 'default' => [], 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '==', 'value' => 'page', ), ), ] ); Kirki::add_field( 'bizberg', array( 'type' => 'select', 'settings' => 'featured_post_3_column_category', 'label' => esc_html__( 'Select Post Category', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'multiple' => 1, 'choices' => bizberg_get_post_categories(), 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '==', 'value' => 'category', ), ), ) ); Kirki::add_field( 'bizberg', [ 'type' => 'checkbox', 'settings' => 'bizberg_agency_featured_sticky_posts_status', 'label' => esc_html__( 'Exclude Sticky Posts ?', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => false, 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '==', 'value' => 'category' ), array( 'setting' => 'featured_post_3_column_category', 'operator' => '==', 'value' => 0 ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'slider', 'settings' => 'bizberg_agency_featured_limit', 'label' => esc_html__( 'Limit', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => 3, 'choices' => [ 'min' => 1, 'max' => 12, 'step' => 1 ], 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '==', 'value' => 'category' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'slider', 'settings' => 'bizberg_agency_word_limit', 'label' => esc_html__( 'Word Limit', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => 30, 'choices' => [ 'min' => 0, 'max' => 50, 'step' => 1 ], 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '==', 'value' => 'category' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'featured_post_section_background_color', 'label' => __( 'Section Background Color', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => '#f7f8f9', 'choices' => [ 'alpha' => true, ], 'transport' => 'auto', 'output' => array( array( 'element' => '.content-box-main', 'property' => 'background-color', ) ), 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '!=', 'value' => 'none' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'featured_post_background_color', 'label' => __( 'Column Background Color', 'bizberg-agency' ), 'description' => esc_html__( 'This background color will only display if there is no image.', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => '#027cb9', 'choices' => [ 'alpha' => true, ], 'transport' => 'auto', 'output' => array( array( 'element' => '.contentbox-slider .content-box-image', 'property' => 'background-color', ) ), 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '!=', 'value' => 'none' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'featured_post_background_color_content', 'label' => __( 'Content Background Color', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => '#0088cc', 'choices' => [ 'alpha' => true, ], 'transport' => 'auto', 'output' => array( array( 'element' => '.contentbox-slider .content-service-inner', 'property' => 'background-color', ) ), 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '!=', 'value' => 'none' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'color', 'settings' => 'featured_post_title_color', 'label' => __( 'Title Color', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => '#0088cc', 'transport' => 'auto', 'output' => array( array( 'element' => '.contentbox-slider .content-box-title h4', 'property' => 'color', ) ), 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '!=', 'value' => 'none' ) ) ] ); Kirki::add_field( 'bizberg', [ 'type' => 'typography', 'settings' => 'featured_post_title_font_family', 'label' => esc_html__( 'Title Font', 'bizberg-agency' ), 'section' => 'bizberg_agency_featured_posts_section', 'default' => [ 'font-family' => 'Lato', 'variant' => '700', 'font-size' => '24px', 'line-height' => '1.5', 'letter-spacing' => '0', 'text-transform' => 'none' ], 'transport' => 'auto', 'output' => [ [ 'element' => '.contentbox-slider h4', ], ], 'active_callback' => array( array( 'setting' => 'blog_featured_3_col_post_type', 'operator' => '!=', 'value' => 'none' ) ) ] ); }