vg' ) => 'margin-left: {{VALUE}}px;', 'body.rtl ' . $this->css_selector( '__icon img' ) => 'margin-left: {{VALUE}}px;', ), ) ); $this->controls_manager->end_section(); $this->controls_manager->start_section( 'style_controls', array( 'id' => 'section_items_value_style', 'initial_open' => false, 'title' => esc_html__( 'Items Value', 'jet-engine' ) ) ); $this->controls_manager->start_tabs( 'style_controls', array( 'id' => 'tabs_item_val_style', 'separator' => 'after', ) ); $this->controls_manager->start_tab( 'style_controls', array( 'id' => 'dynamic_item_val_normal', 'title' => esc_html__( 'Normal', 'jet-engine' ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_bg_color', 'label' => esc_html__( 'Background Color', 'jet-engine' ), 'type' => 'color-picker', 'css_selector' => array( $this->css_selector( '__item-val' ) => 'background-color: {{VALUE}}', ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_color', 'label' => esc_html__( 'Text Color', 'jet-engine' ), 'type' => 'color-picker', 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val' ) => 'color: {{VALUE}}', ), ) ); $this->controls_manager->end_tab(); $this->controls_manager->start_tab( 'style_controls', array( 'id' => 'dynamic_item_val_hover', 'title' => esc_html__( 'Hover', 'jet-engine' ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_bg_color_hover', 'label' => esc_html__( 'Background Color', 'jet-engine' ), 'type' => 'color-picker', 'css_selector' => array( $this->css_selector( '__item-val:hover' ) => 'background-color: {{VALUE}}', ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_color_hover', 'label' => esc_html__( 'Text Color', 'jet-engine' ), 'type' => 'color-picker', 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val:hover' ) => 'color: {{VALUE}}', ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_hover_border_color', 'label' => esc_html__( 'Border Color', 'jet-engine' ), 'type' => 'color-picker', 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val:hover' ) => 'border-color: {{VALUE}};', ), ) ); $this->controls_manager->end_tab(); $this->controls_manager->end_tabs(); $this->controls_manager->add_responsive_control( array( 'id' => 'item_val_padding', 'label' => __( 'Padding', 'jet-engine' ), 'type' => 'dimensions', 'units' => array( 'px', '%', 'em' ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val' ) => 'padding: {{TOP}} {{RIGHT}} {{BOTTOM}} {{LEFT}};', ), ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'item_val_margin', 'label' => __( 'Margin', 'jet-engine' ), 'type' => 'dimensions', 'units' => array( 'px', '%', 'em' ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val' ) => 'margin: {{TOP}} {{RIGHT}} {{BOTTOM}} {{LEFT}};', ), ) ); $this->controls_manager->add_control( array( 'id' => 'item_val_border', 'label' => esc_html__( 'Border', 'jet-engine' ), 'type' => 'border', 'separator' => 'before', 'disable_radius' => true, 'css_selector' => array( $this->css_selector( '__item-val' ) => 'border-style: {{STYLE}}; border-width: {{WIDTH}}; border-color: {{COLOR}}', ), ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'item_val_border_radius', 'label' => __( 'Border Radius', 'jet-engine' ), 'type' => 'dimensions', 'units' => array( 'px', '%' ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__item-val' ) => 'border-radius: {{TOP}} {{RIGHT}} {{BOTTOM}} {{LEFT}};', ), ) ); // Not supported // // $this->add_group_control( // Group_Control_Box_Shadow::get_type(), // array( // 'name' => 'item_box_shadow', // 'selector' => $this->css_selector( '__item' ), // ) // ); $this->controls_manager->end_section(); $this->controls_manager->start_section( 'style_controls', array( 'id' => 'section_prefix_style', 'initial_open' => false, 'title' => esc_html__( 'Prefix', 'jet-engine' ) ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'prefix_l_gap', 'label' => esc_html__( 'Left Gap', 'jet-engine' ), 'type' => 'range', 'units' => array( array( 'value' => 'px', 'intervals' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ), ), 'css_selector' => array( $this->css_selector( '__prefix' ) => 'margin-left: {{VALUE}}{{UNIT}};', ), ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'prefix_r_gap', 'label' => esc_html__( 'Right Gap', 'jet-engine' ), 'type' => 'range', 'units' => array( array( 'value' => 'px', 'intervals' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ), ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__prefix' ) => 'margin-right: {{VALUE}}{{UNIT}};', ), ) ); $this->controls_manager->end_section(); $this->controls_manager->start_section( 'style_controls', array( 'id' => 'section_suffix_style', 'initial_open' => false, 'title' => esc_html__( 'Suffix', 'jet-engine' ) ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'suffix_l_gap', 'label' => esc_html__( 'Left Gap', 'jet-engine' ), 'type' => 'range', 'units' => array( array( 'value' => 'px', 'intervals' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ), ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__suffix' ) => 'margin-left: {{VALUE}}{{UNIT}};', ), ) ); $this->controls_manager->add_responsive_control( array( 'id' => 'suffix_r_gap', 'label' => esc_html__( 'Right Gap', 'jet-engine' ), 'type' => 'range', 'units' => array( array( 'value' => 'px', 'intervals' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ), ), 'separator' => 'before', 'css_selector' => array( $this->css_selector( '__suffix' ) => 'margin-right: {{VALUE}}{{UNIT}};', ), ) ); $this->controls_manager->end_section(); } } }