Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
exclusive-addons-elementor-pro
/
elements
/
woo-cart
/
Editing: woo-cart.php
<?php namespace ExclusiveAddons\Elements; if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort. use \Elementor\Controls_Manager; use \Elementor\Group_Control_Image_Size; use \Elementor\Group_Control_Border; use \Elementor\Group_Control_Box_Shadow; use \Elementor\Group_Control_Typography; use \Elementor\Widget_Base; use \Elementor\Group_Control_Background; use \Elementor\Icons_Manager; class Woo_Cart extends Widget_Base { public function get_name() { return 'exad-woo-cart'; } public function get_title() { return esc_html__( 'Woo Cart', 'exclusive-addons-elementor' ); } public function get_icon() { return 'exad exad-logo exad-woo-cart'; } public function get_categories() { return [ 'exclusive-addons-elementor' ]; } protected function _register_controls() { $exad_primary_color = get_option( 'exad_primary_color_option', '#7a56ff' ); if( ! class_exists( 'woocommerce' ) ) { $this->start_controls_section( 'exad_panel_notice', [ 'label' => __('Notice!', 'exclusive-addons-elementor'), ] ); $this->add_control( 'exad_panel_notice_text', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => __('<strong>WooCommerce</strong> is not installed/activated on your site. Please install and activate <a href="plugin-install.php?s=wpcf7&tab=search&type=term" target="_blank">WooCommerce</a> first.', 'exclusive-addons-elementor'), 'content_classes' => 'exad-panel-notice', ] ); $this->end_controls_section(); return; } /** * Content Section */ $this->start_controls_section( 'exad_woo_content_section', [ 'label' => esc_html__( 'Content', 'exclusive-addons-elementor' ), ] ); $this->add_control( 'exad_woo_content_layout', [ 'label' => __( 'Layout', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'exad-cart-layout-1', 'options' => [ 'exad-cart-layout-1' => __( 'Layout 1', 'exclusive-addons-elementor' ), 'exad-cart-layout-2' => __( 'Layout 2', 'exclusive-addons-elementor' ), ], ] ); $this->end_controls_section(); /** * Container Section */ $this->start_controls_section( 'exad_woo_cart_style_section', [ 'label' => esc_html__( 'Container', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_container_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_woo_cart_container_background', 'label' => __( 'Background', 'exclusive-addons-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-woo-cart', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_container_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart', ] ); $this->add_control( 'exad_woo_cart_container_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_container_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart', ] ); $this->end_controls_section(); /** * Cart Table Section */ $this->start_controls_section( 'exad_woo_cart_product_table_section', [ 'label' => esc_html__( 'Cart Table', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'exad_woo_cart_product_table_width', [ 'label' => __( 'Cart Table Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%' ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => '%', 'size' => 70, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart.exad-cart-layout-2 .woocommerce .woocommerce-cart-form' => 'width: {{SIZE}}%;', '{{WRAPPER}} .exad-woo-cart.exad-cart-layout-2 .woocommerce .cart-collaterals' => 'width: calc( 100% - {{SIZE}}% );', ], 'condition' => [ 'exad_woo_content_layout' => 'exad-cart-layout-2' ] ] ); $this->add_responsive_control( 'exad_woo_cart_product_table_gap', [ 'label' => __( 'Cart Table Gap', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 20, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart.exad-cart-layout-2 .woocommerce .woocommerce-cart-form' => 'margin-right: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'exad_woo_content_layout' => 'exad-cart-layout-2' ] ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_woo_cart_product_table_background', 'label' => __( 'Background', 'exclusive-addons-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_table_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'fields_options' => [ 'border' => [ 'default' => 'solid' ], 'width' => [ 'default' => [ 'top' => '1', 'right' => '1', 'bottom' => '1', 'left' => '1' ] ], 'color' => [ 'default' => '#dddddd' ] ], 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents', ] ); $this->add_control( 'exad_woo_cart_product_table_border_collapse', [ 'label' => __( 'Border Collapse', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'collapse', 'options' => [ 'collapse' => __( 'Collapse', 'exclusive-addons-elementor' ), 'separate' => __( 'Separate', 'exclusive-addons-elementor' ), ], 'description' => __( 'If Border Collapse is collapse then the border of table do not work.', 'exclusive-addons-elementor' ), 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents' => 'border-collapse: {{VALUE}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'left' => '0', 'bottom' => '0', 'right' => '0', 'unit' => 'px', 'isLinked' => true ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_product_table_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents', ] ); $this->end_controls_section(); /** * Cart Table Heading Section */ $this->start_controls_section( 'exad_woo_cart_product_table_heading_section', [ 'label' => esc_html__( 'Cart Table Heading', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'exad_woo_cart_product_table_heading_alignment', [ 'label' => __( 'Alignment', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'left', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th' => 'text-align: {{VALUE}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_heading_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '20', 'bottom' => '15', 'left' => '15', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_heading_background', [ 'label' => __( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th' => 'background: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_product_table_heading_typograpgy', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th', ] ); $this->add_control( 'exad_woo_cart_product_table_heading_text_color', [ 'label' => __( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_table_heading_text_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'fields_options' => [ 'border' => [ 'default' => 'solid' ], 'width' => [ 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '1', 'left' => '0' ] ], 'color' => [ 'default' => '#dddddd' ] ], 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents thead tr th', ] ); $this->end_controls_section(); /** * Cart Table Item Section */ $this->start_controls_section( 'exad_woo_cart_product_table_item_section', [ 'label' => esc_html__( 'Cart Table Item', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'exad_woo_cart_product_table_item_alignment', [ 'label' => __( 'Alignment', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'left', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td' => 'text-align: {{VALUE}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '20', 'bottom' => '15', 'left' => '15', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'fields_options' => [ 'border' => [ 'default' => 'solid' ], 'width' => [ 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '1', 'left' => '0' ] ], 'color' => [ 'default' => '#dddddd' ] ], 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item td', ] ); $this->start_controls_tabs( 'exad_woo_cart_product_table_item_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_product_table_item_odd', [ 'label' => esc_html__( 'ODD ITEM', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_table_item_odd_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(odd) td' => 'background: {{VALUE}};' ] ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_product_table_item_even', [ 'label' => esc_html__( 'EVEN ITEM', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_table_item_even_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr.woocommerce-cart-form__cart-item:nth-child(even) td' => 'background: {{VALUE}};' ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_control( 'exad_woo_cart_product_table_item_image_heading', [ 'label' => __( 'Image', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'exad_woo_cart_product_table_item_image_width', [ 'label' => __( 'Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 5, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-thumbnail img' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_image_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-thumbnail img', ] ); $this->add_control( 'exad_woo_cart_product_table_item_image_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-thumbnail img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_image_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-thumbnail img', ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_name_heading', [ 'label' => __( 'Product Name', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_product_name_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-name a', ] ); $this->start_controls_tabs( 'exad_woo_cart_product_table_item_product_name_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_product_table_item_product_name_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_name_normal_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-name a' => 'color: {{VALUE}};' ] ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_product_table_item_product_name_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_name_hover_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-name a:hover' => 'color: {{VALUE}};' ] ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_control( 'exad_woo_cart_product_table_item_product_price_heading', [ 'label' => __( 'Product Price', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_product_price_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-price', ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_heading', [ 'label' => __( 'Product Quantity', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_width', [ 'label' => __( 'Input Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 5, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_height', [ 'label' => __( 'Input Height', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 5, ], ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_padding', [ 'label' => __( 'Input Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_background', [ 'label' => esc_html__( 'Input Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_text_color', [ 'label' => esc_html__( 'Input Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_product_quantity_input_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'fields_options' => [ 'border' => [ 'default' => 'solid' ], 'width' => [ 'default' => [ 'top' => '1', 'right' => '1', 'bottom' => '1', 'left' => '1' ] ], 'color' => [ 'default' => '#dddddd' ] ], 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input', ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_input_border_radius', [ 'label' => __( 'Input Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity input' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-minus-btn' => 'border-radius: {{TOP}}{{UNIT}} 0 0 {{LEFT}}{{UNIT}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn' => 'border-radius: 0 {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} 0;', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_icon_color', [ 'label' => esc_html__( 'Input Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-minus-btn::before' => 'background: {{VALUE}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn::before' => 'background: {{VALUE}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn::after' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_icon_width', [ 'label' => __( 'Input Icon Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-minus-btn' => 'width: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_icon_background', [ 'label' => esc_html__( 'Input Icon Background', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-minus-btn' => 'background: {{VALUE}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_table_item_product_quantity_icon_left_border', [ 'label' => esc_html__( 'Input Icon Left/Right Border Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-minus-btn' => 'border-right: 1px solid {{VALUE}};', '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-quantity .quantity .exad-quantity-plus-btn' => 'border-left: 1px solid {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_table_item_subtotal_heading', [ 'label' => __( 'Product Subtotal', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_product_table_item_subtotal_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-subtotal', ] ); $this->add_control( 'exad_woo_cart_product_table_item_subtotal_color', [ 'label' => esc_html__( 'Product Subtotal Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-subtotal' => 'color: {{VALUE}};' ] ] ); $this->end_controls_section(); /** * Cart Table Item Remove Section */ $this->start_controls_section( 'exad_woo_cart_product_table_item_remove_section', [ 'label' => esc_html__( 'Cart Item Remove Icon', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_product_table_item_remove_icon_size', [ 'label' => __( 'Remove Icon Size', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, ], ], 'default' => [ 'unit' => 'px', 'size' => 20, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_remove_icon_box_size', [ 'label' => __( 'Remove Icon Box Size', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, ], ], 'default' => [ 'unit' => 'px', 'size' => 20, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a' => 'height: {{SIZE}}{{UNIT}}; width: {{SIZE}}{{UNIT}}; line-height: calc( {{SIZE}}{{UNIT}} - 4px );', ], ] ); $this->add_control( 'exad_woo_cart_product_table_item_remove_icon_box_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '50', 'right' => '50', 'bottom' => '50', 'left' => '50', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'exad_woo_cart_product_table_item_remove_icon_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_product_item_remove_icon_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_item_remove_icon_normal_background', [ 'label' => esc_html__( 'Icon Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_item_remove_icon_normal_color', [ 'label' => esc_html__( 'Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a' => 'color: {{VALUE}} !important;' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_item_remove_icon_normal_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_product_item_remove_icon_normal_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a', ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_product_item_remove_icon_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_product_item_remove_icon_hover_background', [ 'label' => esc_html__( 'Icon Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a:hover' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_product_item_remove_icon_hover_color', [ 'label' => esc_html__( 'Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a:hover' => 'color: {{VALUE}} !important;' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_product_item_remove_icon_hover_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_product_item_remove_icon_hover_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.product-remove a:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * Cart Table Coupon Section */ $this->start_controls_section( 'exad_woo_cart_coupon_section', [ 'label' => esc_html__( 'Cart Coupon', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_coupon_section_background', [ 'label' => esc_html__( 'Coupon Section Background', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.actions' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_coupon_section_padding', [ 'label' => __( 'Coupon Section Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.actions' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_coupon_section_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr td.actions', ] ); $this->add_control( 'exad_woo_cart_coupon_input_heading', [ 'label' => __( 'Cart Coupon Input', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'exad_woo_cart_coupon_input_width', [ 'label' => __( 'Input Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 5, ], ], 'default' => [ 'unit' => 'px', 'size' => 200, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_coupon_input_height', [ 'label' => __( 'Input Height', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 5, ], ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_coupon_input_padding', [ 'label' => __( 'Input Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_coupon_input_background', [ 'label' => esc_html__( 'Input Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'background: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_coupon_input_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code', ] ); $this->add_control( 'exad_woo_cart_coupon_input_text_color', [ 'label' => esc_html__( 'Input Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_coupon_input_placeholder_text_color', [ 'label' => esc_html__( 'Input Placeholder Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code::placeholder' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_coupon_input_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code', ] ); $this->add_control( 'exad_woo_cart_coupon_input_border_radius', [ 'label' => __( 'Input Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '5', 'right' => '5', 'bottom' => '5', 'left' => '5', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon input#coupon_code' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_coupon_button_heading', [ 'label' => __( 'Cart Coupon Button', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'exad_woo_cart_coupon_button_padding', [ 'label' => __( 'Coupon Button Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '30', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_coupon_button_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button', ] ); $this->add_control( 'exad_woo_cart_coupon_button_border_radius', [ 'label' => __( 'Coupon Button Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '5', 'right' => '5', 'bottom' => '5', 'left' => '5', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'exad_woo_cart_coupon_button_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_coupon_button_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_coupon_button_normal_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_coupon_button_normal_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_coupon_button_normal_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_coupon_button_normal_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button', ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_coupon_button_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_coupon_button_hover_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button:hover' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_coupon_button_hover_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button:hover' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_coupon_button_hover_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_coupon_button_hover_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr .coupon button.button:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * Cart Table Item Section */ $this->start_controls_section( 'exad_woo_cart_update_button_section', [ 'label' => esc_html__( 'Update Cart Button', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_update_button_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '30', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_update_button_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button', ] ); $this->add_control( 'exad_woo_cart_update_button_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '5', 'right' => '5', 'bottom' => '5', 'left' => '5', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'exad_woo_cart_update_button_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_update_button_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_update_button_normal_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_update_button_normal_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_update_button_normal_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_update_button_normal_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button', ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_update_button_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_update_button_hover_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button:hover' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_update_button_hover_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button:hover' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_update_button_hover_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_update_button_hover_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .woocommerce-cart-form__contents tbody tr button.button:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * Cart Total Section */ $this->start_controls_section( 'exad_woo_cart_total_section', [ 'label' => esc_html__( 'Cart Total Box', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'exad_woo_cart_total_box_width', [ 'label' => __( 'Cart Total Box Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ '%' ], 'range' => [ '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals' => 'width: {{SIZE}}%;', ], 'condition' => [ 'exad_woo_content_layout' => 'exad-cart-layout-1' ] ] ); $this->add_responsive_control( 'exad_woo_cart_total_box_top_spacing', [ 'label' => __( 'Top Spacing', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals' => 'margin-top: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_woo_cart_total_box_background', 'label' => __( 'Background', 'exclusive-addons-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals', ] ); $this->add_control( 'exad_woo_cart_total_box_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '20', 'right' => '20', 'bottom' => '20', 'left' => '20', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_total_box_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'fields_options' => [ 'border' => [ 'default' => 'solid' ], 'width' => [ 'default' => [ 'top' => '1', 'right' => '1', 'bottom' => '1', 'left' => '1' ] ], 'color' => [ 'default' => '#dddddd' ] ], 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals', ] ); $this->add_control( 'exad_woo_cart_total_box_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_total_box_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals', ] ); $this->end_controls_section(); /** * Cart Total Heading Section */ $this->start_controls_section( 'exad_woo_cart_total_heading_section', [ 'label' => esc_html__( 'Cart Total Heading', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_woo_cart_total_heading_background', 'label' => __( 'Background', 'exclusive-addons-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals h2', ] ); $this->add_control( 'exad_woo_cart_total_heading_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals h2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_total_heading_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '10', 'left' => '0', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals h2' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_total_heading_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals h2', ] ); $this->add_control( 'exad_woo_cart_total_heading_text_color', [ 'label' => __( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals h2' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_total_heading_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals h2', ] ); $this->add_control( 'exad_woo_cart_total_heading_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals h2' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); /** * Cart Total Table Section */ $this->start_controls_section( 'exad_woo_cart_total_table_section', [ 'label' => esc_html__( 'Cart Total Table', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_total_table_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '20', 'bottom' => '15', 'left' => '20', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr th' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .exad-woo-cart .cart_totals tr td' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_total_table_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals tr th, {{WRAPPER}} .exad-woo-cart .cart_totals tr td, {{WRAPPER}} .exad-woo-cart .cart_totals table', ] ); $this->add_control( 'exad_woo_cart_total_table_heading', [ 'label' => __( 'Heading', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'exad_woo_cart_total_table_heading_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr th' => 'background: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_total_table_heading_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals tr th', ] ); $this->add_control( 'exad_woo_cart_total_table_heading_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr th' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_total_table_price_heading', [ 'label' => __( 'Price', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_responsive_control( 'exad_woo_cart_total_table_price_alignment', [ 'label' => __( 'Alignment', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-left', ], 'right' => [ 'title' => __( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'left', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr td' => 'text-align: {{VALUE}};', ], ] ); $this->add_control( 'exad_woo_cart_total_table_price_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr td' => 'background: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_total_table_price_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals tr td', ] ); $this->add_control( 'exad_woo_cart_total_table_price_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals tr td' => 'color: {{VALUE}};' ] ] ); $this->end_controls_section(); /** * Cart Checkout Button Section */ $this->start_controls_section( 'exad_woo_cart_checkout_button_section', [ 'label' => esc_html__( 'Checkout Button', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_responsive_control( 'exad_woo_cart_checkout_button_alignment', [ 'label' => __( 'Alignment', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'exad-checkout-button-left' => [ 'title' => __( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-left', ], 'exad-checkout-button-center' => [ 'title' => __( 'Center', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-center', ], 'exad-checkout-button-right' => [ 'title' => __( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-right', ], 'exad-checkout-button-justify' => [ 'title' => __( 'Justify', 'exclusive-addons-elementor' ), 'icon' => 'fa fa-align-justify', ], ], 'default' => 'exad-checkout-button-left', 'toggle' => true, ] ); $this->add_control( 'exad_woo_cart_checkout_button_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '30', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_checkout_button_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '20', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_checkout_button_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button', ] ); $this->add_control( 'exad_woo_cart_checkout_button_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '5', 'right' => '5', 'bottom' => '5', 'left' => '5', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'exad_woo_cart_checkout_button_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_checkout_button_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_checkout_button_normal_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_checkout_button_normal_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_checkout_button_normal_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_checkout_button_normal_border', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button', ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_checkout_button_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_checkout_button_hover_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_checkout_button_hover_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_checkout_button_hover_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_checkout_button_hover_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * Cart Empty Section */ $this->start_controls_section( 'exad_woo_cart_empty_section', [ 'label' => esc_html__( 'Cart Empty', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_empty_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '50', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart-empty' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_empty_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart-empty' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_woo_cart_empty_background', 'label' => __( 'Background', 'exclusive-addons-elementor' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-woo-cart .cart-empty', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_empty_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart-empty', ] ); $this->add_control( 'exad_woo_cart_empty_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart-empty' => 'color: {{VALUE}};', ] ] ); $this->add_control( 'exad_woo_cart_empty_icon_color', [ 'label' => esc_html__( 'Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart-empty::before' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_empty_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart-empty', ] ); $this->add_control( 'exad_woo_cart_empty_border_radius', [ 'label' => __( 'Border Radous', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .cart-empty' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_empty_box_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .cart-empty', ] ); $this->end_controls_section(); /** * Cart Return To shop Button Section */ $this->start_controls_section( 'exad_woo_cart_return_shop_button_section', [ 'label' => esc_html__( 'Return to Shop Button', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_woo_cart_return_shop_button_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '30', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'exad_woo_cart_return_shop_button_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '20', 'right' => '0', 'bottom' => '0', 'left' => '0', 'unit' => 'px', 'isLinked' => false, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_woo_cart_return_shop_button_typography', 'label' => __( 'Typography', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button', ] ); $this->add_control( 'exad_woo_cart_return_shop_button_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '5', 'right' => '5', 'bottom' => '5', 'left' => '5', 'unit' => 'px', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->start_controls_tabs( 'exad_woo_cart_return_shop_button_tabs' ); // Normal State Tab $this->start_controls_tab( 'exad_woo_cart_return_shop_button_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_return_shop_button_normal_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_return_shop_button_normal_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_return_shop_button_normal_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_return_shop_button_normal_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button', ] ); $this->end_controls_tab(); // Hover State Tab $this->start_controls_tab( 'exad_woo_cart_return_shop_button_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_woo_cart_return_shop_button_hover_background', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button:hover' => 'background: {{VALUE}};' ] ] ); $this->add_control( 'exad_woo_cart_return_shop_button_hover_text_color', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button:hover' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_woo_cart_return_shop_button_hover_border', 'label' => __( 'Border', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button:hover', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_woo_cart_return_shop_button_hover_shadow', 'label' => __( 'Box Shadow', 'exclusive-addons-elementor' ), 'selector' => '{{WRAPPER}} .exad-woo-cart .return-to-shop a.button:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } protected function render() { if( ! class_exists('woocommerce') ) { return; } $settings = $this->get_settings_for_display(); ?> <div class="exad-woo-cart <?php echo $settings['exad_woo_cart_checkout_button_alignment']; ?> <?php echo $settings['exad_woo_content_layout']; ?>"> <?php echo do_shortcode( '[woocommerce_cart]' ); ?> </div> <?php } }
Save
Cancel