[ 'mode' => 'section_start', 'label' => esc_html__( 'General Section', 'shopbuilder' ), 'tab' => 'content', ], 'show_title' => [ 'label' => esc_html__( 'Show Title?', 'shopbuilder' ), 'type' => 'switch', 'description' => esc_html__( 'Switch on to show Title.', 'shopbuilder' ), 'default' => 'yes', 'separator' => 'default', ], 'general_section_end' => [ 'mode' => 'section_end', ], 'style_section' => [ 'mode' => 'section_start', 'label' => esc_html__( 'Heading Style', 'shopbuilder' ), 'tab' => 'style', 'condition' => [ 'show_title' => 'yes', ], ], 'heading_typography' => [ 'mode' => 'group', 'type' => 'typography', 'label' => esc_html__( 'Typography', 'shopbuilder' ), 'selector' => $widget->selectors['heading_typography'], ], 'heading_color' => [ 'label' => esc_html__( 'Color', 'shopbuilder' ), 'type' => 'color', 'selectors' => [ $widget->selectors['heading_color'] => 'color: {{VALUE}}', ], ], 'heading_margin' => [ 'mode' => 'responsive', 'label' => esc_html__( 'Margin', 'shopbuilder' ), 'type' => 'dimensions', 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ $widget->selectors['heading_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ], 'style_section_end' => [ 'mode' => 'section_end', ], 'content_section' => [ 'mode' => 'section_start', 'label' => esc_html__( 'Content', 'shopbuilder' ), 'tab' => 'style', ], 'content_typography' => [ 'mode' => 'group', 'type' => 'typography', 'label' => esc_html__( 'Typography', 'shopbuilder' ), 'selector' => $widget->selectors['content_typography'], ], 'content_color' => [ 'label' => esc_html__( 'Color', 'shopbuilder' ), 'type' => 'color', 'selectors' => [ $widget->selectors['content_color'] => 'color: {{VALUE}}', ], ], 'content_border' => [ 'mode' => 'group', 'type' => 'border', 'selector' => $widget->selectors['content_border'], 'size_units' => [ 'px' ], ], 'content_padding' => [ 'mode' => 'responsive', 'label' => esc_html__( 'Padding', 'shopbuilder' ), 'type' => 'dimensions', 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ $widget->selectors['content_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ], 'content_section_end' => [ 'mode' => 'section_end', ], ]; return $fields; } }