%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/19851/cwd/wp-content/themes/evenex/components/editor/elementor/widgets/pricing/
Upload File :
Create Path :
Current File : //proc/19851/cwd/wp-content/themes/evenex/components/editor/elementor/widgets/pricing/pricing.php

<?php
namespace Elementor;

if (! defined( 'ABSPATH' ) ) exit;

class Event_Widget_Pricing extends Widget_Base {
    public $base;

    public function get_name() {
        return 'evenex-pricing';
    }

    public function get_title() {
        return esc_html__( 'Evenex Pricing', 'evenex' );
    }

    public function get_icon() {
        return 'eicon-price-table';
    }

    public function get_categories() {
        return [ 'evenex-elements' ];
    }

    protected function _register_controls() {

        $this->start_controls_section(
            'ekit_pricing_pricing_plan',
            [
                'label' => esc_html__('Header', 'evenex'),
            ]
        );


        $this->add_control(
			'ekit_pricing_table_title', [
				'type' => Controls_Manager::TEXT,
                'label' => esc_html__('Table Title', 'evenex'),
                'default'   =>  esc_html__('Single day pass','evenex'),
				'label_block' => true,
			]
		);
		$this->add_control(
            'ekit_pricing_title_size',
            [
                'label' => esc_html__( 'Title HTML Tag', 'evenex' ),
                'type' => Controls_Manager::SELECT,
                'options' => [
                    'h1' => 'H1',
                    'h2' => 'H2',
                    'h3' => 'H3',
                    'h4' => 'H4',
                    'h5' => 'H5',
                    'h6' => 'H6',
                    'div' => 'div',
                    'span' => 'span',
                    'p' => 'p',
                ],
                'default' => 'h3',
                'separator' => 'after',
            ]
        );
        $this->add_control(
			'ekit_pricing_table_subtitle', [
				'type' => Controls_Manager::TEXT,
                'label' => esc_html__('Table Subtitle', 'evenex'),
                'default'   =>  esc_html__('$150','evenex'),
				'label_block' => true,
			]
		);
		$this->add_control(
            'ekit_pricing_icon_type',
            [
                'label' => esc_html__( 'Header Icon or Image? ', 'evenex' ),
                'type' => Controls_Manager::CHOOSE,
                'options' => [
                    'none' => [
                        'title' => esc_html__( 'None', 'evenex' ),
                        'icon' => 'fa fa-stop-circle',
					],
					'icon' => [
                        'title' => esc_html__( 'Icon', 'evenex' ),
                        'icon' => 'fa fa-star',
                    ],
                    'image' => [
                        'title' => esc_html__( 'Image', 'evenex' ),
                        'icon' => 'fa fa-image',
                    ],
                ],
				'default' => 'none',
				'separator' => 'before',
				'toggle' => true,
            ]
		);

		$this->add_control(
            'ekit_pricing_icons__switch',
            [
                'label' => esc_html__('Add icon? ', 'evenex'),
                'type' => Controls_Manager::SWITCHER,
                'default' => 'yes',
                'label_on' =>esc_html__( 'Yes', 'evenex' ),
				'label_off' =>esc_html__( 'No', 'evenex' ),
				'condition' => [
                    'ekit_pricing_icon_type' => 'icon',
                ]
            ]
		);

        $this->add_control(
            'ekit_pricing_icons',
            [
                'label' => esc_html__( 'Icon', 'evenex' ),
				'type' => Controls_Manager::ICONS,
				'fa4compatibility' => 'ekit_pricing_icon',
                'default' => [
                    'value' => 'fab fa-amazon',
                    'library' => 'brands',
                ],
                'condition' => [
					'ekit_pricing_icon_type' => 'icon',
					'ekit_pricing_icons__switch'	=> 'yes'
                ]
            ]
        );

        $this->add_control(
            'ekit_pricing_image',
            [
                'label' => esc_html__( 'Choose Image', 'evenex' ),
                'type' => Controls_Manager::MEDIA,
                'default' => [
                    'url' => Utils::get_placeholder_image_src(),
                ],
                'condition' => [
                    'ekit_pricing_icon_type' => 'image',
				],
            ]
        );

        $this->add_group_control(
            Group_Control_Image_Size::get_type(),
            [
                'name' => 'ekit_pricing_thumbnail',
                'default' => 'thumbnail',
                'separator' => 'none',
                'condition' => [
                    'ekit_pricing_icon_type' => 'image',
                ]
            ]
        );
		$this->end_controls_section();
        $this->start_controls_section(
            'ekit_pricing_pricing_tag',
            [
                'label' => esc_html__('Price Tag', 'evenex'),
            ]
        );

	    $this->add_control(
			'ekit_pricing_currency_icon', [
				'type' => Controls_Manager::TEXT,
                'label' => esc_html__('Currency', 'evenex'),
				'default'   => '$',
			]
		);
        $this->add_control(
			'ekit_pricing_table_price', [
				'type' => Controls_Manager::TEXT,
                'label' => esc_html__('Price', 'evenex'),
				'default'   => esc_html__('150', 'evenex'),
			]
		);
        $this->add_control(
			'ekit_pricing_table_duration', [
				'type' => Controls_Manager::TEXT,
                'label' => esc_html__('Duration', 'evenex'),
			]
		);
		$this->end_controls_section();
        $this->start_controls_section(
            'ekit_pricing_features_tab',
            [
                'label' =>esc_html__('Features', 'evenex'),
            ]
        );
        $this->add_control(
            'ekit_pricing_content_style',
            [
                'label' => esc_html__( 'Features style', 'evenex' ),
                'type' => Controls_Manager::SELECT,
                'default' => 'list',
                'options' => [
                    'paragraph'  => esc_html__( 'Paragraph', 'evenex' ),
                    'list' => esc_html__( 'List', 'evenex' ),
                ],
            ]
        );

        $this->add_control(
			'ekit_pricing_table_content', [
                'type' => Controls_Manager::TEXTAREA,
                'label' => esc_html__('Table Content', 'evenex'),
				'label_block' => true,
				'default' => esc_html__('Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam','evenex'),
                'condition' => [
                    'ekit_pricing_content_style' => 'paragraph',
				],
			]
        );
		$repeater = new Repeater();

        $repeater->add_control(
            'ekit_pricing_list', [
                'label' => esc_html__('List text', 'evenex'),
				'type' => Controls_Manager::TEXT,
				'label_block' => true,
            ]
        );

        $repeater->add_control(
            'ekit_pricing_check_icons', [
				'label' =>esc_html__( 'Icon', 'evenex' ),
				'type' => Controls_Manager::ICONS,
				'label_block' => true,
				'default' => [
					'value' => 'fas fa-circle',
					'library' => 'solid',
				],
            ]
        );

        $repeater->add_control(
            'ekit_pricing_list_icon_color', [
				'label' =>esc_html__( 'Icon Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists {{CURRENT_ITEM}} i' => 'color: {{VALUE}};',
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists {{CURRENT_ITEM}} svg path'	=> 'stroke: {{VALUE}}; fill: {{VALUE}};'
				],
            ]
		);

		$repeater->add_responsive_control(
            'ekit_pricing_list_content_typography_group',
            [
                'label' => esc_html__( 'Icon Size', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'size_units' => [ 'px', '%' ],
                'range' => [
                    'px' => [
                        'min' => 1,
                        'max' => 100,
                        'step' => 5,
                    ],
                    '%' => [
                        'min' => 1,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists {{CURRENT_ITEM}} i' => 'font-size: {{SIZE}}{{UNIT}};',
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists {{CURRENT_ITEM}} svg' => 'max-width: {{SIZE}}{{UNIT}};',
                ],
            ]
        );


        $this->add_control(
            'ekit_pricing_table_content_repeater',
            [
                'label' => esc_html__( 'Pricing Content List', 'evenex' ),
                'type' => Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'title_field' => '{{ekit_pricing_list}}',
                'default' => [
                    [
                        'ekit_pricing_list' => esc_html__( 'One catered lunch', 'evenex' ),
                        'ekit_pricing_check_icons' => 'fas fa-circle',
                    ],
                    [
						'ekit_pricing_list' => esc_html__( 'Afternoon snacks', 'evenex' ),
						'ekit_pricing_check_icons' => 'fas fa-circle',
                    ],
                    [
						'ekit_pricing_list' => esc_html__( 'Fun swag', 'evenex' ),
						'ekit_pricing_check_icons' => 'fas fa-circle',
                    ],
                    [
						'ekit_pricing_list' => esc_html__( 'Entrance Afterparty', 'evenex' ),
						'ekit_pricing_check_icons' => 'fas fa-circle',
                    ],
                ],
                'title_field' => '{{{ ekit_pricing_list }}}',
                'condition' => [
                    'ekit_pricing_content_style' => 'list',
				],
            ]
        );

        $this->end_controls_section();
        $this->start_controls_section(
            'ekit_pricing_button_style_tab',
            [
                'label' =>esc_html__('Button', 'evenex'),
            ]
        );
        $this->add_control(
			'ekit_pricing_btn_text',
			[
				'label' =>esc_html__( 'Label', 'evenex' ),
				'type' => Controls_Manager::TEXT,
				'default' =>esc_html__( 'Purchase Ticket', 'evenex' ),
				'placeholder' =>esc_html__( 'Purchase Ticket', 'evenex' ),
			]
		);

		$this->add_control(
			'ekit_pricing_btn_link',
			[
				'label' =>esc_html__( 'Link', 'evenex' ),
				'type' => Controls_Manager::URL,
				'placeholder' =>esc_url('http://your-link.com'),
				'default' => [
					'url' => '#',
				],
			]
		);

		$this->add_control(
            'ekit_pricing_btn_icons__switch',
            [
                'label' => esc_html__('Add icon? ', 'evenex'),
                'type' => Controls_Manager::SWITCHER,
                'default' => 'yes',
                'label_on' =>esc_html__( 'Yes', 'evenex' ),
                'label_off' =>esc_html__( 'No', 'evenex' ),
            ]
		);

		$this->add_control(
			'ekit_pricing_btn_icons',
			[
				'label' =>esc_html__( 'Icon', 'evenex' ),
				'type' => Controls_Manager::ICONS,
				'fa4compatibility' => 'ekit_pricing_btn_icon',
                'default' => [
					'value' => 'fas fa-chair',
					'library' => 'solid',
                ],
				'label_block' => true,
				'condition'		=> [
					'ekit_pricing_btn_icons__switch'	=> 'yes'
				]
			]
		);

		$this->add_control(
			'ekit_pricing_icon_align',
			[
				'label' =>esc_html__( 'Icon Position', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'default' => 'left',
				'options' => [
					'left' =>esc_html__( 'Before', 'evenex' ),
					'right' =>esc_html__( 'After', 'evenex' ),
				],
				'condition' => [
					'ekit_pricing_btn_icons__switch'	=> 'yes'
				],
			]
		);

		$this->add_responsive_control(
            'ekit_pricing_icon_spacing',
            [
                'label' => esc_html__( 'Icon Spacing', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'size_units' => ['px', '%'],
                'default' => [
                    'size' => 5,
                    'unit' => 'px',
                ],
                'range' => [
                    '%' => [
                        'min' => 0,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing a.ekit-pricing-btn-icon-pos-left i' => 'margin-right: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .elementskit-single-pricing a.ekit-pricing-btn-icon-pos-right i' => 'margin-left: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .elementskit-single-pricing a.ekit-pricing-btn-icon-pos-left svg' => 'margin-right: {{SIZE}}{{UNIT}};',
                    '{{WRAPPER}} .elementskit-single-pricing a.ekit-pricing-btn-icon-pos-right svg' => 'margin-left: {{SIZE}}{{UNIT}};',
                ],
                'condition' => [
                    'ekit_pricing_btn_icons__switch'	=> 'yes'
                ],
            ]
        );

	    $this->add_control(
		    'ekit_pricing_button_class',
		    [
			    'label' => esc_html__( 'Class', 'evenex' ),
			    'type' => Controls_Manager::TEXT,
			    'placeholder' => esc_html__( 'Class Name', 'evenex' ),
		    ]
	    );

	    $this->add_control(
		    'ekit_pricing_button_id',
		    [
			    'label' => esc_html__( 'id', 'evenex' ),
			    'type' => Controls_Manager::TEXT,
			    'placeholder' => esc_html__( 'ID', 'evenex' ),
		    ]
	    );


        $this->end_controls_section();


        //Body style start
        $this->start_controls_section(
			'ekit_pricing_section_body_style',
			[
				'label' =>esc_html__( 'Pricing Body', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
		);

		$this->add_control(
			'ekit_pricing_pricing_body_bg_sp', [
				'type' => Controls_Manager::COLOR,
                'label' => esc_html__('Background Color', 'evenex'),
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing' => 'background-color: {{VALUE}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_pricing_content_align',
			[
				'label' =>esc_html__( 'Alignment', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'options' => [
					'left'    => [
						'title' =>esc_html__( 'Left', 'evenex' ),
						'icon' => 'fa fa-align-left',
					],
					'center' => [
						'title' =>esc_html__( 'Center', 'evenex' ),
						'icon' => 'fa fa-align-center',
					],
					'right' => [
						'title' =>esc_html__( 'Right', 'evenex' ),
						'icon' => 'fa fa-align-right',
					],
				],
				'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing' => 'text-align: {{VALUE}};'
                ],
				'default' => 'center',
			]
		);

		$this->end_controls_section();



        //Price Title style start
        $this->start_controls_section(
			'sekit_pricing_ection_title_style',
			[
				'label' =>esc_html__( 'Table Title', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_title_align',
			[
				'label' =>esc_html__( 'Alignment', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'options' => [
					'left'    => [
						'title' =>esc_html__( 'Left', 'evenex' ),
						'icon' => 'fa fa-align-left',
					],
					'center' => [
						'title' =>esc_html__( 'Center', 'evenex' ),
						'icon' => 'fa fa-align-center',
					],
					'right' => [
						'title' =>esc_html__( 'Right', 'evenex' ),
						'icon' => 'fa fa-align-right',
					],
				],
				'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'text-align: {{VALUE}};'
                ],
				'default' => '',
			]
		);
        $this->start_controls_tabs( 'ekit_pricing_tabs_title_style' );

        $this->start_controls_tab(
            'ekit_pricing_tab_title_normal',
            [
                'label' =>esc_html__( 'Normal', 'evenex' ),
            ]
        );
        $this->add_control(
            'ekit_pricing_title_text_color',
            [
                'label' =>esc_html__( 'Title Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'color: {{VALUE}};',
                ],
            ]
        );
        $this->end_controls_tab();
        $this->start_controls_tab(
            'ekit_pricing_tab_title_hover',
            [
                'label' =>esc_html__( 'Hover', 'evenex' ),
            ]
        );
        $this->add_control(
            'ekit_pricing_title_hover_color',
            [
                'label' =>esc_html__( 'Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'selectors' => [
                    '{{WRAPPER}}:hover .elementskit-pricing-header .elementskit-pricing-title' => 'color: {{VALUE}};',
                ],
            ]
        );
        $this->end_controls_tab();
        $this->end_controls_tabs();
        $this->add_group_control(
            Group_Control_Typography::get_type(),
            [
                'name' => 'ekit_pricing_title_typography_group',
                'label' =>esc_html__( 'Title Typography', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title',
            ]
        );
		$this->add_responsive_control(
			'ekit_pricing_title_text_padding',
			[
				'label' =>esc_html__( 'Padding', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_title_wraper_margin',
			[
				'label' =>esc_html__( 'Margin', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
        $this->add_control(
			'ekit_pricing_titlehr12',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);

        $this->add_responsive_control(
			'ekit_pricing_title_border_style',
			[
				'label' => esc_html_x( 'Border Type', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'options' => [
					'' => esc_html__( 'None', 'evenex' ),
					'solid' => esc_html_x( 'Solid', 'Border Control', 'evenex' ),
					'double' => esc_html_x( 'Double', 'Border Control', 'evenex' ),
					'dotted' => esc_html_x( 'Dotted', 'Border Control', 'evenex' ),
					'dashed' => esc_html_x( 'Dashed', 'Border Control', 'evenex' ),
					'groove' => esc_html_x( 'Groove', 'Border Control', 'evenex' ),
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'border-style: {{VALUE}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_title_border_dimensions',
			[
				'label' => esc_html_x( 'Border Width', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
                'condition' => [
                    'ekit_pricing_title_border_style!' => '',
                ],

            ]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_title_border_style' );
		$this->start_controls_tab(
			'ekit_pricing_title_border_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
                'condition' => [
                    'ekit_pricing_title_border_style!' => '',
                ],

            ]
		);
		$this->add_control(
			'ekit_pricing_title_border_color',
			[
				'label' => esc_html_x( 'Border Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_title_border_style!' => '',
                ],

            ]
		);
		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_title_tab_border_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
                'condition' => [
                    'ekit_pricing_title_border_style!' => '',
                ],

            ]
		);
		$this->add_control(
			'ekit_pricing_title_hover_border_color',
			[
				'label' => esc_html_x( 'Border Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}}:hover .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_title_border_style!' => '',
                ],
            ]
		);
		$this->end_controls_tab();
        $this->end_controls_tabs();

        $this->add_responsive_control(
			'ekit_pricing_title_border_radius',
			[
				'label' =>esc_html__( 'Border Radius', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px'],
				'default' => [
					'top' => '',
					'right' => '',
					'bottom' => '' ,
					'left' => '',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title' =>  'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],

            ]
        );

        $this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_title_box_shadow_group',
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-title',
            ]
        );
		$this->end_controls_section();

        //Price Subtitle style start
        $this->start_controls_section(
			'ekit_pricing_section_subtitle_style',
			[
				'label' =>esc_html__( 'Table Subtitle', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
                'condition' => [
                    'ekit_pricing_table_subtitle!' => '',
                ]
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_subtitle_align',
			[
				'label' =>esc_html__( 'Alignment', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'options' => [
					'left'    => [
						'title' =>esc_html__( 'Left', 'evenex' ),
						'icon' => 'fa fa-align-left',
					],
					'center' => [
						'title' =>esc_html__( 'Center', 'evenex' ),
						'icon' => 'fa fa-align-center',
					],
					'right' => [
						'title' =>esc_html__( 'Right', 'evenex' ),
						'icon' => 'fa fa-align-right',
					],
				],
				'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'text-align: {{VALUE}};'
                ],
                'conditions' => [
                    'terms' => [
                        [
                            'name' => 'ekit_pricing_table_subtitle',
                            'operator' => '!in',
                            'value' => [''],
                        ],
                    ],
                ],
				'default' => '',
			]
		);
        $this->start_controls_tabs( 'ekit_pricing_tabs_subtitle_style' );

        $this->start_controls_tab(
            'ekit_pricing_tab_subtitle_normal',
            [
                'label' =>esc_html__( 'Normal', 'evenex' ),
            ]
        );
        $this->add_control(
            'ekit_pricing_subtitle_text_color',
            [
                'label' =>esc_html__( 'Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'color: {{VALUE}};',
                ],
            ]
        );
        $this->end_controls_tab();
        $this->start_controls_tab(
            'ekit_pricing_tab_subtitle_hover',
            [
                'label' =>esc_html__( 'Hover', 'evenex' ),
            ]
        );
        $this->add_control(
            'ekit_pricing_subtitle_hover_color',
            [
                'label' =>esc_html__( 'Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'selectors' => [
                    '{{WRAPPER}}:hover .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'color: {{VALUE}};',
                ],
            ]
        );
        $this->end_controls_tab();
        $this->end_controls_tabs();
        $this->add_group_control(
            Group_Control_Typography::get_type(),
            [
                'name' => 'ekit_pricing_subtitle_typography_group',
                'label' =>esc_html__( 'Typography', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle',
            ]
        );
		$this->add_responsive_control(
			'ekit_pricing_subtitle_text_padding',
			[
				'label' =>esc_html__( 'Padding', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);


        $this->add_responsive_control(
			'ekit_pricing_subtitlehr12',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);

        $this->add_responsive_control(
			'ekit_pricing_subtitle_border_style',
			[
				'label' => esc_html_x( 'Border Type', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'options' => [
					'' => esc_html__( 'None', 'evenex' ),
					'solid' => esc_html_x( 'Solid', 'Border Control', 'evenex' ),
					'double' => esc_html_x( 'Double', 'Border Control', 'evenex' ),
					'dotted' => esc_html_x( 'Dotted', 'Border Control', 'evenex' ),
					'dashed' => esc_html_x( 'Dashed', 'Border Control', 'evenex' ),
					'groove' => esc_html_x( 'Groove', 'Border Control', 'evenex' ),
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'border-style: {{VALUE}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_subtitle_border_dimensions',
			[
				'label' => esc_html_x( 'Width', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
                'condition' => [
                    'ekit_pricing_subtitle_border_style!' => '',
                ],
			]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_subtitle_border_style' );
		$this->start_controls_tab(
			'ekit_pricing_subtitle_border_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
                'condition' => [
                    'ekit_pricing_subtitle_border_style!' => '',
                ],
			]
		);

		$this->add_control(
			'ekit_pricing_subtitle_border_color',
			[
				'label' => esc_html_x( 'Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_subtitle_border_style!' => '',
                ],
			]
		);
		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_subtitle_tab_border_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
                'condition' => [
                    'ekit_pricing_subtitle_border_style!' => '',
                ],
			]
		);
		$this->add_control(
			'ekit_pricing_subtitle_hover_border_color',
			[
				'label' => esc_html_x( 'Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}}:hover .elementskit-pricing-header .elementskit-pricing-subtitle' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_subtitle_border_style!' => '',
                ],
			]
		);
		$this->end_controls_tab();
        $this->end_controls_tabs();



        $this->add_control(
			'ekit_pricing_subtitlehr13',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
        $this->add_responsive_control(
			'ekit_pricing_subtitle_border_radius',
			[
				'label' =>esc_html__( 'Border Radius', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px'],
				'default' => [
					'top' => '',
					'right' => '',
					'bottom' => '' ,
					'left' => '',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle' =>  'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
        );
        $this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_subtitle_box_shadow_group',
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-header .elementskit-pricing-subtitle',
            ]
        );
		$this->end_controls_section();

        //Image Style Start
        $this->start_controls_section(
            'ekit_pricing_style_image',
            [
                'label' => esc_html__( 'Header Image', 'evenex' ),
                'tab' => Controls_Manager::TAB_STYLE,
                'condition' => [
                    'ekit_pricing_icon_type' => 'image',

                ],
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_image_space',
            [
                'label' => esc_html__( 'Margin Bottom', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 0,
                        'max' => 100,
                    ],
                ],
                'default' => [
                    'size' => 10,
                    'unit' => 'px',
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementor-pricing-img img' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                ],
            ]
        );
        $this->start_controls_tabs(
            'ekit_pricing_style_tabs_image'
        );

        $this->start_controls_tab(
            'ekit_pricing_style_img_normal_tab',
            [
                'label' => esc_html__( 'Normal', 'evenex' ),
            ]
        );
        $this->add_group_control(
            Group_Control_Border::get_type(),
            [
                'name' => 'ekit_pricing_imge_border_group',
                'label' => esc_html__( 'Border', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementor-pricing-img img',
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_image_border_radius',
            [
                'label' => esc_html__( 'Border Radius', 'evenex' ),
                'type' => Controls_Manager::DIMENSIONS,
                'size_units' => [ 'px', '%' ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementor-pricing-img img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
            ]
        );
        $this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_iamge_box_shadow_group',
                'label' => esc_html__( 'Box Shadow', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementor-pricing-img img',
            ]
        );

        $this->end_controls_tab();

        $this->start_controls_tab(
            'ekit_pricing_style_img_hover_tab',
            [
                'label' => esc_html__( 'Hover', 'evenex' ),
            ]
        );

        $this->add_group_control(
            Group_Control_Border::get_type(),
            [
                'name' => 'ekit_pricing_imge_border_hover_group',
                'label' => esc_html__( 'Border', 'evenex' ),
                'selector' => '{{WRAPPER}}:hover .elementor-pricing-img img',
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_image_hover_border_radius',
            [
                'label' => esc_html__( 'Border Radius', 'evenex' ),
                'type' => Controls_Manager::DIMENSIONS,
                'size_units' => [ 'px', '%' ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementor-pricing-img img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
            ]
        );
        $this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_iamge_box_shadow_hv_group',
                'label' => esc_html__( 'Box Shadow', 'evenex' ),
                'selector' => '{{WRAPPER}}:hover .elementor-pricing-img img',
            ]
        );

        $this->add_control(
            'ekit_pricing_image_hover_animation',
            [
                'label' => esc_html__( 'Animation', 'evenex' ),
                'type' => Controls_Manager::HOVER_ANIMATION,
            ]
        );


        $this->end_controls_tab();

        $this->end_controls_tabs();

        $this->end_controls_section();

        //Icon Style Start
        $this->start_controls_section(
            'ekit_pricing_section_style_icon',
            [
                'label' => esc_html__( 'Header Icon', 'evenex' ),
                'tab'   => Controls_Manager::TAB_STYLE,
                'condition' => [
					'ekit_pricing_icons__switch'	=> 'yes',
                    'ekit_pricing_icon_type' => 'icon',

                ],
            ]
        );

        $this->start_controls_tabs( 'icon_colors' );

        $this->start_controls_tab(
            'ekit_pricing_icon_colors_normal',
            [
                'label' => esc_html__( 'Normal', 'evenex' ),
            ]
        );

        $this->add_control(
            'ekit_pricing_icon_primary_color',
            [
                'label' => esc_html__( 'Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementkit-pricing-icon' => 'color: {{VALUE}};',
					'{{WRAPPER}} .elementskit-pricing-header svg path'	=> 'stroke: {{VALUE}}; fill: {{VALUE}};',
                ],
            ]
        );

        $this->add_control(
            'ekit_pricing_icon_secondary_color_normal',
            [
                'label' => esc_html__( 'BG Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg' => 'background-color: {{VALUE}};',
                ],
            ]
        );

        $this->add_group_control(
            Group_Control_Border::get_type(),
            [
                'name' => 'ekit_pricing_border_group',
                'label' => esc_html__( 'Border', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg',
            ]
        );

        $this->add_responsive_control(
            'ekit_pricing_icon_border_radius',
            [
                'label' => esc_html__( 'Border Radius', 'evenex' ),
                'type' => Controls_Manager::DIMENSIONS,
                'size_units' => [ 'px', '%' ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
            ]
        );

        $this->end_controls_tab();

        $this->start_controls_tab(
            'ekit_pricing_icon_colors_hover',
            [
                'label' => esc_html__( 'Hover', 'evenex' ),
            ]
        );

        $this->add_control(
            'ekit_pricing_hover_primary_color',
            [
                'label' => esc_html__( 'Primary Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
					'{{WRAPPER}}:hover .elementkit-pricing-icon' => 'color: {{VALUE}};',
					'{{WRAPPER}}:hover .elementskit-pricing-header svg path' => 'stroke: {{VALUE}}; fill: {{VALUE}};',
                ],
            ]
        );

        $this->add_control(
            'ekit_pricing_hover_secondary_color',
            [
                'label' => esc_html__( 'Secondary Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'default' => '',
                'selectors' => [
					'{{WRAPPER}}:hover .elementkit-pricing-icon, {{WRAPPER}}:hover .elementskit-pricing-header svg' => 'background-color: {{VALUE}};',
                ],
            ]
        );

        $this->add_group_control(
            Group_Control_Border::get_type(),
            [
                'name' => 'ekit_pricing_border_icon_group',
                'label' => esc_html__( 'Border', 'evenex' ),
                'selector' => '{{WRAPPER}}:hover .elementkit-pricing-icon, {{WRAPPER}}:hover .elementskit-pricing-header svg',
                'condition' => [
                    'view!' => 'Stacked',
                ],
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_icon_hover_border_radius',
            [
                'label' => esc_html__( 'Border Radius', 'evenex' ),
                'type' => Controls_Manager::DIMENSIONS,
                'size_units' => [ 'px', '%' ],
                'selectors' => [
                    '{{WRAPPER}}:hover .elementkit-pricing-icon, {{WRAPPER}}:hover .elementskit-pricing-header svg' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
            ]
        );
        $this->add_control(
            'ekit_pricing_icons_hover_animation',
            [
                'label' => esc_html__( 'Hover Animation', 'evenex' ),
                'type' =>   Controls_Manager::HOVER_ANIMATION,
            ]
        );

        $this->end_controls_tab();

        $this->end_controls_tabs();
        $this->add_responsive_control(
            'ekit_pricing_icon_size',
            [
                'label' => esc_html__( 'Size', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 6,
                        'max' => 300,
                    ],
                ],
                'default' => [
                    'size' => 40,
                    'unit' => 'px',
                ],
                'selectors' => [
					'{{WRAPPER}} .elementkit-pricing-icon' => 'font-size: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .elementskit-pricing-header svg'	=> 'max-width: {{SIZE}}{{UNIT}};',
                ],
                'separator' => 'before',
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_icon_space',
            [
                'label' => esc_html__( 'Margin Bottom', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => -20,
                        'max' => 100,
                    ],
                ],
                'default' => [
                    'size' => 15,
                    'unit' => 'px',
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg' => 'margin-bottom: {{SIZE}}{{UNIT}};',
                ],
            ]
        );

        $this->add_responsive_control(
            'ekit_pricing_icon_padding',
            [
                'label' => esc_html__( 'Padding', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 0,
                        'max' => 100,
                    ],
                ],
                'default' => [
                    'size' => 15,
                    'unit' => 'px',
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg' => 'padding: {{SIZE}}{{UNIT}};',
                ],
            ]
        );
        $this->add_responsive_control(
            'ekit_pricing_rotate',
            [
                'label' => esc_html__( 'Rotate', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'default' => [
                    'size' => 0,
                    'unit' => 'deg',
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg' => 'transform: rotate({{SIZE}}{{UNIT}});',
                ],
            ]
        );

        $this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_icon_box_shadow_group',
                'selector' => '{{WRAPPER}} .elementkit-pricing-icon, {{WRAPPER}} .elementskit-pricing-header svg',
            ]
        );

        $this->end_controls_section();

        //Price Tag style start
        $this->start_controls_section(
			'ekit_pricing_section_tag_style',
			[
				'label' =>esc_html__( 'Price Tag', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_tag_right',
			[
				'label' => esc_html__( 'Right', 'evenex' ),
				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', '%' ],
				'range' => [
					'px' => [
						'min' => -200,
						'max' => 200,
						'step' => 1,
					],
					'%' => [
						'min' => -100,
						'max' => 100,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-pricing-tag' => 'right: {{SIZE}}{{UNIT}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_tag_width_width',
			[
				'label' => esc_html__( 'Width', 'evenex' ),
				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', '%' ],
				'range' => [
					'px' => [
						'min' => 0,
						'max' => 500,
						'step' => 1,
					],
					'%' => [
						'min' => 0,
						'max' => 200,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-pricing-tag' => 'width: {{SIZE}}{{UNIT}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_tag_text_padding',
			[
				'label' =>esc_html__( 'Padding', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'default' => 	[
					'top' => '8',
					'right' => '0',
					'bottom' => '8',
					'left' => '0',
					'unit' => 'px',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_tag_text_margin',
			[
				'label' =>esc_html__( 'Margin', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'default' => 	[
					'top' => '0',
					'right' => '0',
					'bottom' => '50',
					'left' => '0',
					'unit' => 'px',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);

        $this->add_group_control(
			Group_Control_Typography::get_type(),
			[
				'name' => 'ekit_pricing_price_typography_group',
				'label' =>esc_html__( 'Typography', 'evenex' ),
				'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price span',
			]
		);
		$this->add_control(
			'ekit_pricing_heading_period_style',
			[
				'label' => esc_html__( 'Period Options', 'evenex' ),
				'type' => Controls_Manager::HEADING,
				'separator' => 'before',
			]
		);
		$this->add_control(
			'ekit_pricing_period_text_color',
			[
				'label' =>esc_html__( 'Period Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price .period' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'ekit_pricing_period_text_color_hover',
			[
				'label' =>esc_html__( 'Period Hover Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}}:hover .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price .period' => 'color: {{VALUE}};',
				],
			]
		);

        $this->add_group_control(
            Group_Control_Typography::get_type(),
            [
                'name' => 'ekit_pricing_period_typography_group',
                'label' =>esc_html__( 'Period Typography', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price sub.period',
            ]
        );
		$this->add_responsive_control(
			'ekit_pricing_period_vertical_position',
			[
				'label' => esc_html__( 'Vertical Position', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'label_block' => false,
				'options' => [
					'top' => [
						'title' => esc_html__( 'Top', 'evenex' ),
						'icon' => 'eicon-v-align-top',
					],
					'middle' => [
						'title' => esc_html__( 'Middle', 'evenex' ),
						'icon' => 'eicon-v-align-middle',
					],
					'bottom' => [
						'title' => esc_html__( 'Bottom', 'evenex' ),
						'icon' => 'eicon-v-align-bottom',
					],
				],
				'default' => 'top',
				'selectors_dictionary' => [
					'top' => 'super',
					'middle' => 'baseline',
					'bottom' => 'sub',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price sub.period' => 'vertical-align: {{VALUE}}',
				],
			]
		);

		$this->add_control(
			'ekit_pricing_heading_currency_style',
			[
				'label' => esc_html__( 'Currency Symbol Options', 'evenex' ),
				'type' => Controls_Manager::HEADING,
				'separator' => 'before',
			]
		);

		$this->add_group_control(
            Group_Control_Typography::get_type(),
            [
                'name' => 'ekit_pricing_currency_size',
                'label' =>esc_html__( 'Period Typography', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price sup.currency',
            ]
        );

		$this->add_control(
			'ekit_pricing_currency_position',
			[
				'label' => esc_html__( 'Position', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'label_block' => false,
				'default' => 'before',
				'options' => [
					'before' => [
						'title' => esc_html__( 'Before', 'evenex' ),
						'icon' => 'eicon-h-align-left',
					],
					'after' => [
						'title' => esc_html__( 'After', 'evenex' ),
						'icon' => 'eicon-h-align-right',
					],
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_currency_vertical_position',
			[
				'label' => esc_html__( 'Vertical Position', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'label_block' => false,
				'options' => [
					'top' => [
						'title' => esc_html__( 'Top', 'evenex' ),
						'icon' => 'eicon-v-align-top',
					],
					'middle' => [
						'title' => esc_html__( 'Middle', 'evenex' ),
						'icon' => 'eicon-v-align-middle',
					],
					'bottom' => [
						'title' => esc_html__( 'Bottom', 'evenex' ),
						'icon' => 'eicon-v-align-bottom',
					],
				],
				'default' => 'top',
				'selectors_dictionary' => [
					'top' => 'super',
					'middle' => 'baseline',
					'bottom' => 'sub',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price sup.currency' => 'vertical-align: {{VALUE}}',
				],
			]
		);

        $this->add_control(
			'ekit_pricing_taghr1',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_price_style' );

		$this->start_controls_tab(
			'ekit_pricing_tab_tag_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
			]
		);

		$this->add_control(
			'ekit_pricing_tag_text_color',
			[
				'label' =>esc_html__( 'Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price' => 'color: {{VALUE}};',
				],
			]
		);
        $this->add_group_control(
            Group_Control_Background::get_type(),
            array(
				'name'     => 'ekit_pricing_tag_bg_color',
				'default' => '',
				'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag',
            )
        );

		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_tag_tab_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
			]
		);

		$this->add_control(
			'ekit_pricing_tag_hover_color',
			[
				'label' =>esc_html__( 'Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}}:hover .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-price' => 'color: {{VALUE}};',
				],
			]
		);

	    $this->add_group_control(
		    Group_Control_Background::get_type(),
		    array(
			    'name'     => 'ekit_pricing_tag_bg_hover_color_group',
			    'default' => '',
			    'selector' => '{{WRAPPER}}:hover .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag',
		    )
	    );

		$this->end_controls_tab();
        $this->end_controls_tabs();


        $this->add_control(
			'ekit_pricing_taghr2',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);

        $this->add_responsive_control(
			'ekit_pricing_tag_border_style',
			[
				'label' => esc_html_x( 'Border Type', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'options' => [
					'' => esc_html__( 'None', 'evenex' ),
					'solid' => esc_html_x( 'Solid', 'Border Control', 'evenex' ),
					'double' => esc_html_x( 'Double', 'Border Control', 'evenex' ),
					'dotted' => esc_html_x( 'Dotted', 'Border Control', 'evenex' ),
					'dashed' => esc_html_x( 'Dashed', 'Border Control', 'evenex' ),
					'groove' => esc_html_x( 'Groove', 'Border Control', 'evenex' ),
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag' => 'border-style: {{VALUE}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_tag_border_dimensions',
			[
				'label' => esc_html_x( 'Width', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_tag_border_style' );
		$this->start_controls_tab(
			'ekit_pricing_tag_border_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
			]
		);

		$this->add_control(
			'ekit_pricing_tag_border_color',
			[
				'label' => esc_html_x( 'Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag' => 'border-color: {{VALUE}};',
				],
			]
		);
		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_tag_tab_border_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
			]
		);
		$this->add_control(
			'ekit_pricing_tag_hover_border_color',
			[
				'label' => esc_html_x( 'Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}}:hover .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag' => 'border-color: {{VALUE}};',
				],
			]
		);
		$this->end_controls_tab();
        $this->end_controls_tabs();



        $this->add_control(
			'ekit_pricing_taghr3',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
        $this->add_responsive_control(
			'ekit_pricing_tag_border_radius',
			[
				'label' =>esc_html__( 'Border Radius', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px'],
				'default' => [
					'top' => '',
					'right' => '',
					'bottom' => '' ,
					'left' => '',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag' =>  'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
        );
		$this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_tag_box_shadow_group',
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-price-wraper.has-tag .elementskit-pricing-tag',
            ]
        );

		$this->end_controls_section();




        //Price Features style start
        $this->start_controls_section(
			'ekit_pricing_section_content_style',
			[
				'label' =>esc_html__( 'Features', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_btn_align',
			[
				'label' =>esc_html__( 'Content Alignment', 'evenex' ),
				'type' => Controls_Manager::CHOOSE,
				'options' => [
					'left'    => [
						'title' =>esc_html__( 'Left', 'evenex' ),
						'icon' => 'fa fa-align-left',
					],
					'center' => [
						'title' =>esc_html__( 'Center', 'evenex' ),
						'icon' => 'fa fa-align-center',
					],
					'right' => [
						'title' =>esc_html__( 'Right', 'evenex' ),
						'icon' => 'fa fa-align-right',
					],
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content' => 'text-align: {{VALUE}};',
				],
				'default' => 'left',

			]
		);
        $this->add_group_control(
			Group_Control_Typography::get_type(),
			[
				'name' => 'ekit_pricing_content_typography_group',
				'label' =>esc_html__( 'List Typography', 'evenex' ),
				'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content p,  {{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists > li',
			]
		);

        $this->add_control(
            'ekit_pricing_content_li_type',
            [
                'label'     => esc_html__( 'List Type', 'evenex' ),
                'type'      => \Elementor\Controls_Manager::SELECT,
                'default'   => 'none',
                'options'   => [
                    'none'          => esc_html__( 'None', 'evenex' ),
                    'disc'          => esc_html__( 'Disc', 'evenex' ),
                    'decimal'       => esc_html__( 'Number', 'evenex' ),
                    'lower-alpha'   => esc_html__( 'Alphabet', 'evenex' ),
                    'lower-roman'   => esc_html__( 'Roman', 'evenex' ),
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists > li' => 'list-style: {{VALUE}};',
                ],
                'condition' => [
                    'ekit_pricing_content_style' => 'list',
                ],
            ]
        );

        $this->add_control(
			'ekit_pricing_fhr1',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_content_style' );

		$this->start_controls_tab(
			'ekit_pricing_content_tab',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
			]
		);
			$this->add_control(
				'ekit_pricing_content_text_color',
				[
					'label' =>esc_html__( 'Color', 'evenex' ),
					'type' => Controls_Manager::COLOR,
					'default' => '',
					'selectors' => [
						'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content p' => 'color: {{VALUE}};',
						'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists > li' => 'color: {{VALUE}};',
					],
				]
			);
			$this->add_group_control(
				Group_Control_Border::get_type(),
				[
					'name' 		=> 'ekit_pricing_features_n_bd',
					'selector'	=> '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content',
				]
			);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'ekit_pricing_content_tab_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
			]
		);
        $this->add_control(
            'ekit_pricing_content_hover_color',
            [
                'label' =>esc_html__( 'Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'selectors' => [
                    '{{WRAPPER}}:hover .elementskit-pricing-content p' => 'color: {{VALUE}};',
                    '{{WRAPPER}}:hover .elementskit-pricing-lists li' => 'color: {{VALUE}};',
                ],
            ]
        );
        $this->add_group_control(
            Group_Control_Border::get_type(),
            [
                'name' 		=> 'ekit_pricing_features_h_bd',
                'selector'	=> '{{WRAPPER}}:hover .elementskit-single-pricing .elementskit-pricing-content',
            ]
        );
		$this->end_controls_tab();
		$this->end_controls_tabs();


		$this->add_control(
			'ekit_pricing_list_divider',
			[
				'label' => esc_html__( 'Divider', 'evenex' ),
				'type' => Controls_Manager::SWITCHER,
				'default' => 'no',
				'separator' => 'before',
				'condition' => [
                    'ekit_pricing_content_style' => 'list',
                ]
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_divider_style',
			[
				'label' => esc_html__( 'Style', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'options' => [
					'solid' => esc_html__( 'Solid', 'evenex' ),
					'double' => esc_html__( 'Double', 'evenex' ),
					'dotted' => esc_html__( 'Dotted', 'evenex' ),
					'dashed' => esc_html__( 'Dashed', 'evenex' ),
				],
				'default' => 'solid',
				'condition' => [
					'list_divider' => 'yes',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists li' => 'border-top-style: {{VALUE}};',
				],
			]
		);

		$this->add_control(
			'ekit_pricing_divider_color',
			[
				'label' => esc_html__( 'Color', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '#ddd',
				'condition' => [
					'ekit_pricing_list_divider' => 'yes',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists li' => 'border-top-color: {{VALUE}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_divider_weight',
			[
				'label' => esc_html__( 'Weight', 'evenex' ),
				'type' => Controls_Manager::SLIDER,
				'default' => [
					'size' => 2,
					'unit' => 'px',
				],
				'range' => [
					'px' => [
						'min' => 1,
						'max' => 10,
					],
				],
				'condition' => [
					'ekit_pricing_list_divider' => 'yes',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists li' => 'border-top-width: {{SIZE}}{{UNIT}};',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_divider_width',
			[
				'label' => esc_html__( 'Width', 'evenex' ),
				'type' => Controls_Manager::SLIDER,
				'condition' => [
					'ekit_pricing_list_divider' => 'yes',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists li:before' => 'margin-left: calc((100% - {{SIZE}}%)/2); margin-right: calc((100% - {{SIZE}}%)/2)',
				],
			]
		);

		$this->add_responsive_control(
			'ekit_pricing_divider_gap',
			[
				'label' => esc_html__( 'List Gap', 'evenex' ),
				'type' => Controls_Manager::SLIDER,
				'default' => [
					'size' => 15,
					'unit' => 'px',
				],
				'range' => [
					'px' => [
						'min' => 1,
						'max' => 50,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-lists li:before' => 'margin-top: {{SIZE}}{{UNIT}}; margin-bottom: {{SIZE}}{{UNIT}}',
				],
                'condition' => [
                    'ekit_pricing_content_style' => 'list',
                ]
			]
		);

        $this->add_control(
			'ekit_pricing_fhr5',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_features_body_margin',
			[
				'label' =>esc_html__( 'Margin', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'default' => [
					'top' => 0,
					'left' => 0,
					'right' => 0,
					'bottom' => 30,
					'unit' => 'px',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_features_body_padding',
			[
				'label' =>esc_html__( 'Padding', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);

		$this->add_control(
			'features_icon_heading',
			[
				'label'		=> esc_html__( 'Icon', 'evenex' ),
				'type'		=> Controls_Manager::HEADING,
				'separator'	=> 'before',
			]
		);

		$this->add_responsive_control(
			'features_icon_spacing',
			[
				'label'		=> esc_html__( 'Spacing', 'evenex' ),
				'type'		=> Controls_Manager::SLIDER,
				'selectors'	=> [
					'{{WRAPPER}} .elementskit-pricing-lists > li > i' => 'padding-right: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .elementskit-pricing-lists > li > svg' => 'margin-right: {{SIZE}}{{UNIT}};',
				]
			]
		);

		$this->add_responsive_control(
			'features_icon_align',
			[
				'label'		=> esc_html__( 'Vertical Align', 'evenex' ),
				'type'		=> Controls_Manager::NUMBER,
				'selectors'	=> [
					'{{WRAPPER}} .elementskit-pricing-lists > li > i, {{WRAPPER}} .elementskit-pricing-lists > li > svg' => 'vertical-align: {{SIZE}}px;',
				]
			]
		);

		$this->end_controls_section();


        //Button style start
        $this->start_controls_section(
			'ekit_pricing_section_btn_style',
			[
				'label' =>esc_html__( 'Button', 'evenex' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
		);

        $this->add_group_control(
            Group_Control_Typography::get_type(),
            [
                'name' => 'ekit_pricing_btn_typography_group',
                'label' =>esc_html__( 'Typography', 'evenex' ),
                'selector' => '{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn',
            ]
		);
		$this->add_responsive_control(
            'ekit_pricing_btn_icon_size',
            [
                'label' => esc_html__( 'Icon Size', 'evenex' ),
                'type' => Controls_Manager::SLIDER,
                'size_units' => [ 'px', '%' ],
                'range' => [
                    'px' => [
                        'min' => 1,
                        'max' => 100,
                        'step' => 5,
                    ],
                    '%' => [
                        'min' => 1,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-btn i' => 'font-size: {{SIZE}}{{UNIT}};',
                    '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-btn svg path' => 'max-width: {{SIZE}}{{UNIT}};',
                ],
            ]
		);

		$this->add_responsive_control(
			'pricing_btn_width',
			[
				'label'		=> esc_html__( 'Width (%)', 'evenex' ),
				'type'		=> Controls_Manager::SLIDER,
				'selectors'	=> [
					'{{WRAPPER}} .elementskit-pricing-btn' => 'width: {{SIZE}}%;',
				],
			]
		);

		$this->add_responsive_control(
			'pricing_btn_align',
			[
				'label'		=> esc_html__( 'Alignment', 'evenex' ),
				'type'		=> Controls_Manager::CHOOSE,
				'options'	=> [
					'left' => [
						'title' => esc_html__( 'Left', 'evenex' ),
						'icon'	=> 'eicon-text-align-left',
					],
					'center' => [
						'title' => esc_html__( 'Center', 'evenex' ),
						'icon'	=> 'eicon-text-align-center',
					],
					'right' => [
						'title' => esc_html__( 'Right', 'evenex' ),
						'icon'	=> 'eicon-text-align-right',
					],
				],
				'selectors'	=> [
					'{{WRAPPER}} .elementskit-pricing-btn-wraper' => 'text-align: {{VALUE}};',
				],
			]
		);

        $this->add_control(
            'ekit_pricing_hr1',
            [
                'type' => Controls_Manager::DIVIDER,
                'style' => 'thick',
            ]
        );
        $this->start_controls_tabs( 'ekit_pricing_tabs_button_style' );

        $this->start_controls_tab(
            'ekit_pricing_tab_button_normal',
            [
                'label' =>esc_html__( 'Normal', 'evenex' ),
            ]
        );

        $this->add_control(
            'ekit_pricing_btn_text_color',
            [
                'label' =>esc_html__( 'Text Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' => 'color: {{VALUE}};',
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn svg path'	=> 'stroke: {{VALUE}}; fill: {{VALUE}};',
                ],
            ]
        );
        $this->add_group_control(
            Group_Control_Background::get_type(),
            array(
                'name'     => 'ekit_pricing_btn_bg_color_group',
                'selector' => '{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn',
            )
        );

        $this->end_controls_tab();

        $this->start_controls_tab(
            'ekit_pricing_btn_tab_button_hover',
            [
                'label' =>esc_html__( 'Hover', 'evenex' ),
            ]
        );

        $this->add_control(
            'ekit_pricing_btn_hover_color',
            [
                'label' =>esc_html__( 'Text Color', 'evenex' ),
                'type' => Controls_Manager::COLOR,
                'selectors' => [
					'{{WRAPPER}}:hover a.elementskit-pricing-btn' => 'color: {{VALUE}};',
					'{{WRAPPER}}:hover a.elementskit-pricing-btn svg path'	=> 'stroke: {{VALUE}}; fill: {{VALUE}};',
                ],
            ]
        );

        $this->add_group_control(
            Group_Control_Background::get_type(),
            array(
                'name'     => 'ekit_pricing_btn_bg_hover_color_group',
                'selector' => '{{WRAPPER}}:hover a.elementskit-pricing-btn',
            )
        );

        $this->end_controls_tab();
        $this->end_controls_tabs();

		$this->add_responsive_control(
			'ekit_pricing_text_padding',
			[
				'label' =>esc_html__( 'Padding', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);

        $this->add_control(
			'ekit_pricing_hr2',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);

        $this->add_responsive_control(
			'ekit_pricing_btn_border_style',
			[
				'label' => esc_html_x( 'Border Type', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::SELECT,
				'options' => [
					'' => esc_html__( 'None', 'evenex' ),
					'solid' => esc_html_x( 'Solid', 'Border Control', 'evenex' ),
					'double' => esc_html_x( 'Double', 'Border Control', 'evenex' ),
					'dotted' => esc_html_x( 'Dotted', 'Border Control', 'evenex' ),
					'dashed' => esc_html_x( 'Dashed', 'Border Control', 'evenex' ),
					'groove' => esc_html_x( 'Groove', 'Border Control', 'evenex' ),
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' => 'border-style: {{VALUE}};',
				],
			]
		);
		$this->add_responsive_control(
			'ekit_pricing_btn_border_dimensions',
			[
				'label' => esc_html_x( 'Width', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
                'condition' => [
                    'ekit_pricing_btn_border_style!' => '',
                ]
			]
		);
		$this->start_controls_tabs( 'ekit_pricing_tabs_button_border_style' );
		$this->start_controls_tab(
			'ekit_pricing_tab_button_border_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),
                'condition' => [
                    'ekit_pricing_btn_border_style!' => '',
                ]
			]
		);

		$this->add_control(
			'ekit_pricing_btn_border_color',
			[
				'label' => esc_html_x( 'Border Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_btn_border_style!' => '',
                ]
			]
		);
		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_btn_tab_button_border_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),
                'condition' => [
                    'ekit_pricing_btn_border_style!' => '',
                ]
			]
		);
		$this->add_control(
			'ekit_pricing_btn_hover_border_color',
			[
				'label' => esc_html_x( 'Border Color', 'Border Control', 'evenex' ),
				'type' => Controls_Manager::COLOR,
				'default' => '',
				'selectors' => [
					'{{WRAPPER}}:hover a.elementskit-pricing-btn' => 'border-color: {{VALUE}};',
				],
                'condition' => [
                    'ekit_pricing_btn_border_style!' => '',
                ]
			]
		);
		$this->end_controls_tab();
        $this->end_controls_tabs();



        $this->add_control(
			'ekit_pricing_hr3',
			[
				'type' => Controls_Manager::DIVIDER,
				'style' => 'thick',
			]
		);
        $this->add_responsive_control(
			'ekit_pricing_btn_border_radius',
			[
				'label' =>esc_html__( 'Border Radius', 'evenex' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px'],
				'default' => [
					'top' => '',
					'right' => '',
					'bottom' => '' ,
					'left' => '',
				],
				'selectors' => [
					'{{WRAPPER}} .elementskit-single-pricing a.elementskit-pricing-btn' =>  'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],

			]
        );

		$this->start_controls_tabs( 'ekit_pricing_tabs_button_box_shadow_style' );

		$this->start_controls_tab(
			'ekit_pricing_tab_button_box_shadow_normal',
			[
				'label' =>esc_html__( 'Normal', 'evenex' ),

			]
		);
		$this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_button_box_shadow_group',
                'selector' => '{{WRAPPER}} .elementskit-single-pricing .elementskit-pricing-btn',

            ]
        );
		$this->end_controls_tab();

		$this->start_controls_tab(
			'ekit_pricing_tab_button_box_shadow_hover',
			[
				'label' =>esc_html__( 'Hover', 'evenex' ),

			]
		);
		$this->add_group_control(
            Group_Control_Box_Shadow::get_type(),
            [
                'name' => 'ekit_pricing_button_box_shadow_hover_group',
                'selector' => '{{WRAPPER}}:hover .elementskit-single-pricing .elementskit-pricing-btn',

            ]
        );
		$this->end_controls_tab();
        $this->end_controls_tabs();

		$this->end_controls_section();
    }

    protected function render( ) {
        $this->render_raw();
    }

    protected function render_raw( ) {

		$settings = $this->get_settings_for_display();
		extract($settings);

        $table_title = $settings[ 'ekit_pricing_table_title' ];
        $table_subtitle = $settings[ 'ekit_pricing_table_subtitle' ];
		$table_content = $settings[ 'ekit_pricing_table_content' ];
		$currency_icon = $settings[ 'ekit_pricing_currency_icon' ];
		$table_price = $settings[ 'ekit_pricing_table_price' ];
		$table_duration = $settings[ 'ekit_pricing_table_duration' ];
		$table_content_repeater = $settings[ 'ekit_pricing_table_content_repeater' ];
        $content_style = $settings[ 'ekit_pricing_content_style' ];

        //For button
        $btn_text = $settings['ekit_pricing_btn_text'];
        $btn_class = ($settings['ekit_pricing_button_class'] != '') ? $settings['ekit_pricing_button_class'] : '';
        $btn_id = ($settings['ekit_pricing_button_id'] != '') ? $settings['ekit_pricing_button_id'] : '';
        $icon_align = $settings['ekit_pricing_icon_align'];
		$btn_link = (! empty( $settings['ekit_pricing_btn_link']['url'])) ? $settings['ekit_pricing_btn_link']['url'] : '';
		$btn_target = ( $settings['ekit_pricing_btn_link']['is_external']) ? '_blank' : '_self';


		$currency_position = $settings['ekit_pricing_currency_position'];
		$this->add_render_attribute( 'icon-align', 'class', 'xs-button-icon xs-align-icon-' . $settings['ekit_pricing_icon_align'] );

		$image = '';
        if ( ! empty( $settings['ekit_pricing_image']['url'] ) ) {
            $this->add_render_attribute( 'image', 'src', $settings['ekit_pricing_image']['url'] );
            $this->add_render_attribute( 'image', 'alt', Control_Media::get_image_alt( $settings['ekit_pricing_image'] ) );

            $image_html = Group_Control_Image_Size::get_attachment_image_html( $settings, 'thumbnail', 'ekit_pricing_image' );


            $image = '<figure class="elementor-pricing-img">' . $image_html . '</figure>';
        }
		?>


        <div class="elementskit-single-pricing" >
            <div class="xs_pricing-table-inner-wrap-top">
                <div class="elementskit-pricing-header">
                    <?php if($settings['ekit_pricing_icon_type'] == 'image') : ?>
                        <?php echo \ElementsKit_Lite\Utils::render($image); ?>
                    <?php endif; ?>
                    <?php if($settings['ekit_pricing_icon_type'] == 'icon') : ?>
                        <?php
                            // new icon
                            $migrated = isset( $settings['__fa4_migrated']['ekit_pricing_icons'] );
                            // Check if its a new widget without previously selected icon using the old Icon control
                            $is_new = empty( $settings['ekit_pricing_icon'] );
                            if ( $is_new || $migrated ) {
                                // new icon
                                Icons_Manager::render_icon( $settings['ekit_pricing_icons'], [ 'aria-hidden' => 'true', 'class'    => [
                                    'elementkit-pricing-icon',
                                    'elementor-animation-'. esc_attr($settings['ekit_pricing_icons_hover_animation'])
                                ] ] );
                            } else {
                                ?>
                                <i class="<?php echo esc_attr($settings['ekit_pricing_icon']); ?> elementkit-pricing-icon <?php echo 'elementor-animation-'. esc_attr($settings['ekit_pricing_icons_hover_animation']); ?>" aria-hidden="true"></i>
                                <?php
                            }
                        ?>
                    <?php endif; ?>
                    <?php if($table_title != ''): ?>
                        <<?php echo \ElementsKit_Lite\Utils::render($settings['ekit_pricing_title_size']); ?>
                        class=" elementskit-pricing-title"><?php echo esc_html($table_title); ?>
                        </<?php echo \ElementsKit_Lite\Utils::render($settings['ekit_pricing_title_size']); ?>>
                    <?php endif; ?>
                    <?php if($table_subtitle != ''): ?>
                        <p class=" elementskit-pricing-subtitle"><?php echo esc_html($table_subtitle); ?></p>
                    <?php endif; ?>
                </div>
            </div>
			<div class="xs_pricing-table-inner-wrap-bottom">
                <?php if ($currency_icon != '' && $table_price !== '' && $table_duration !== '') { ?>
                <div class=" elementskit-pricing-price-wraper has-tag">
                    <div class="elementskit-pricing-tag"></div>
                    <span class="elementskit-pricing-price">
                        <?php if($currency_position == 'before'): ?>
                            <sup class="currency"><?php echo esc_html($currency_icon); ?></sup>
                        <?php endif; ?>
                        <span><?php echo esc_html($table_price); ?></span>
                        <?php if($currency_position == 'after'): ?>
                            <sup class="currency"><?php echo esc_html($currency_icon); ?></sup>
                        <?php endif; ?>
                        <sub class="period"> <?php echo esc_html($table_duration); ?></sub>
                    </span>
                </div>
                <?php } ?>
                <div class="elementskit-pricing-content">
                    <?php if($content_style == 'paragraph'){ ?>
                        <p> <?php echo \ElementsKit_Lite\Utils::kses($table_content); ?></p>
                    <?php } ?>
                    <?php if($content_style == 'list'){ ?>
                        <ul class="elementskit-pricing-lists">
                            <?php  foreach($table_content_repeater as $repeat){
								?>
                                <li class="elementor-repeater-item-<?php echo esc_attr( $repeat[ '_id' ] ); ?>">
                                    <?php Icons_Manager::render_icon( $repeat['ekit_pricing_check_icons'], [ 'aria-hidden' => 'true' ] ); ?>
                                    <?php echo esc_html($repeat['ekit_pricing_list']); ?>
								</li>
                            <?php } ?>
                        </ul>
                    <?php } ?>
                </div>
                <div class="elementskit-pricing-btn-wraper">
                    <a href="<?php echo esc_url( $btn_link ); ?>" class="elementskit-pricing-btn <?php echo esc_attr( $btn_class ); ?> ekit-pricing-btn-icon-pos-<?php echo esc_attr($icon_align); ?>" <?php if($settings['ekit_pricing_button_id'] != '') { ?> id="<?php echo esc_attr( $btn_id ); ?>" <?php } ?>>
                        <?php
                        if ( $settings['ekit_pricing_btn_icons'] != '' && $icon_align == 'left' ):
                            // new icon
                            $migrated = isset( $settings['__fa4_migrated']['ekit_pricing_btn_icons'] );
                            // Check if its a new widget without previously selected icon using the old Icon control
                            $is_new = empty( $settings['ekit_pricing_btn_icon'] );
                            if ( $is_new || $migrated ) {
                                // new icon
                                Icons_Manager::render_icon( $settings['ekit_pricing_btn_icons'], [ 'aria-hidden' => 'true' ] );
                            } else {
                                ?>
                                <i class="<?php echo esc_attr($settings['ekit_pricing_btn_icon']); ?>" aria-hidden="true"></i>
                                <?php
                            }
                        endif;

                        echo esc_html( $btn_text );

                        if ( $settings['ekit_pricing_btn_icons'] != '' && $icon_align == 'right' ):
                            // new icon
                            $migrated = isset( $settings['__fa4_migrated']['ekit_pricing_btn_icons'] );
                            // Check if its a new widget without previously selected icon using the old Icon control
                            $is_new = empty( $settings['ekit_pricing_btn_icon'] );
                            if ( $is_new || $migrated ) {
                                // new icon
                                Icons_Manager::render_icon( $settings['ekit_pricing_btn_icons'], [ 'aria-hidden' => 'true' ] );
                            } else {
                                ?>
                                <i class="<?php echo esc_attr($settings['ekit_pricing_btn_icon']); ?>" aria-hidden="true"></i>
                                <?php
                            }
                        endif;
                        ?>
                    </a>
                </div>
            </div>
        </div>

        <?php
    }

    protected function _content_template() { }
}

Zerion Mini Shell 1.0