[ 'mode' => 'section_start', 'label' => esc_html__( 'Settings', 'shopbuilder' ), 'tab' => 'content', ], 'meta_layout' => [ 'label' => esc_html__( 'Layout', 'shopbuilder' ), 'type' => 'choose', 'default' => 'column', 'options' => [ 'row' => [ 'title' => esc_html__( 'Inline', 'shopbuilder' ), 'icon' => 'eicon-ellipsis-h', ], 'column' => [ 'title' => esc_html__( 'New Line', 'shopbuilder' ), 'icon' => 'eicon-editor-list-ul', ], ], 'prefix_class' => 'shopbuilder-layout-', 'separator' => 'default', 'selectors' => [ $widget->selectors['meta_layout'] => 'gap: 5px;flex-direction: {{VALUE}};', ], ], 'align' => [ 'mode' => 'responsive', 'label' => esc_html__( 'Alignment', 'shopbuilder' ), 'type' => 'choose', 'options' => $alignment, 'default' => '', 'selectors' => [ $widget->selectors['align'] => 'align-items: {{VALUE}};justify-content: {{VALUE}};', ], ], 'gap' => [ 'label' => esc_html__( 'Meta Gap (px)', 'shopbuilder' ), 'type' => 'slider', 'mode' => 'responsive', 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'selectors' => [ $widget->selectors['gap'] => 'gap: {{SIZE}}{{UNIT}}', ], ], 'show_sku' => [ 'label' => esc_html__( 'Show SKU?', 'shopbuilder' ), 'type' => 'switch', 'description' => esc_html__( 'Switch on to show SKU.', 'shopbuilder' ), 'default' => 'yes', ], 'show_cat' => [ 'label' => esc_html__( 'Show Category?', 'shopbuilder' ), 'type' => 'switch', 'description' => esc_html__( 'Switch on to show category.', 'shopbuilder' ), 'default' => 'yes', ], 'show_tag' => [ 'label' => esc_html__( 'Show Tag?', 'shopbuilder' ), 'type' => 'switch', 'description' => esc_html__( 'Switch on to show tag.', 'shopbuilder' ), 'default' => 'yes', ], 'meta_settings_content_end' => [ 'mode' => 'section_end', ], ]; return $fields; } }