start_controls_section( 'abcbiz_elementor_wc_product_meta', [ 'label' => esc_html__( 'Style', 'abcbiz-addons' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); //SKU $this->add_control( 'abcbiz_elementor_wc_product_meta_sku_switch', [ 'label' => esc_html__('Display SKU?', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //Category $this->add_control( 'abcbiz_elementor_wc_product_meta_category_switch', [ 'label' => esc_html__('Display Category?', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //Tags $this->add_control( 'abcbiz_elementor_wc_product_meta_tags_switch', [ 'label' => esc_html__('Display Tags?', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //Divider $this->add_control( 'abcbiz_elementor_wc_product_meta_div_switch', [ 'label' => esc_html__('Display Divider?', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //SKU Color $this->add_control( 'abcbiz_elementor_wc_product_meta_sku_color', [ 'label' => esc_html__( 'SKU Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#333333', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-sku' => 'color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_meta_sku_switch' => 'yes', ], ] ); //SKU typoghraphy $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_wc_product_meta_sku_typography', 'label' => esc_html__( 'SKU Typography', 'abcbiz-addons' ), 'selector' => '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-sku', 'condition' => [ 'abcbiz_elementor_wc_product_meta_sku_switch' => 'yes', ], ] ); //Category Color $this->add_control( 'abcbiz_elementor_wc_product_meta_cat_color', [ 'label' => esc_html__( 'Category Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#333333', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-categories, {{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-categories a' => 'color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_meta_category_switch' => 'yes', ], ] ); //Category typoghraphy $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_wc_product_meta_cat_typography', 'label' => esc_html__( 'Category Typography', 'abcbiz-addons' ), 'selector' => '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-categories', 'condition' => [ 'abcbiz_elementor_wc_product_meta_category_switch' => 'yes', ], ] ); //Tags Color $this->add_control( 'abcbiz_elementor_wc_product_meta_tag_color', [ 'label' => esc_html__( 'Tags Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#333333', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-tags, {{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-tags a' => 'color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_meta_tags_switch' => 'yes', ], ] ); //Tags typoghraphy $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_wc_product_meta_tag_typography', 'label' => esc_html__( 'Tags Typography', 'abcbiz-addons' ), 'selector' => '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-product-tags', 'condition' => [ 'abcbiz_elementor_wc_product_meta_tags_switch' => 'yes', ], ] ); //Tags Color $this->add_control( 'abcbiz_elementor_wc_product_meta_div_color', [ 'label' => esc_html__( 'Divider Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#e6e6e6', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-meta-divider' => 'background-color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_meta_div_switch' => 'yes', ], ] ); $this->add_control( 'abcbiz_elementor_wc_product_meta_div_space', [ 'label' => esc_html__( 'Divider Space', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 10, ], 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-product-meta .abcbiz-meta-divider' => 'margin-top: {{SIZE}}{{UNIT}}; margin-bottom: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'abcbiz_elementor_wc_product_meta_div_switch' => 'yes', ], ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'renderview.php'; } }