<?php



use Elementor\Widget_Base;
use Elementor\Controls_Manager;

if (!defined('ABSPATH')) exit; // Exit if accessed directly


class Slidersecondkaveh extends Widget_Base{

  public function get_name(){
    return 'slidersecondkaveh';
  }

  public function get_title(){
    return esc_html__( 'Second Style Slider', 'kavehTheme' );
  }

  public function get_icon(){
    return 'eicon-archive-posts';
  }

  public function get_categories(){
    return ['kavehelements'];
  }
 
  protected function register_controls(){
    
    $this->start_controls_section(
        'contentslidersecondkaveh',
        [
          'label' => esc_html__( 'Slider Content', 'kavehTheme' ),
                  'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
        ]
      );
      $this->add_control(
        'styleslidersecondkaveh',
        [
          'label' => esc_html__( 'Select Layout', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::SELECT,
          'default' => 'one',
          'options' => [
            'one'  => esc_html__( 'Layout One', 'kavehTheme' ),
					'two'  => esc_html__( 'Layout Two', 'kavehTheme' ),    
          ],
        ]
        ); 
      $repeater = new \Elementor\Repeater();
      $repeater->add_control(
        'titlelidersecondkaveh',
        [
            'label' => esc_html__( 'Main Title', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'Latest', 'kavehTheme' ),
    
        ]
    );
    $repeater->add_control(
      'tagheading1slidersecondkaveh',
      [
        'label' => esc_html__( 'Title Tag', 'kavehTheme' ),
        'type' => \Elementor\Controls_Manager::SELECT,
        'default' => 'H5',
        'options' => [
          'H1'  => esc_html__( 'H1', 'kavehTheme' ),
           'H2' => esc_html__( 'H2', 'kavehTheme' ),
           'H3' => esc_html__( 'H3', 'kavehTheme' ),
           'H4' => esc_html__( 'H4', 'kavehTheme' ),
           'H5' => esc_html__( 'H5', 'kavehTheme' ),
           'H6' => esc_html__( 'H6', 'kavehTheme' ),
           'p' => esc_html__( 'p', 'kavehTheme' ),
           'div' => esc_html__( 'div', 'kavehTheme' ),
           'span' => esc_html__( 'span', 'kavehTheme' ),
        ],
      ]
    );
    $repeater->add_control(
      'title2lidersecondkaveh',
      [
          'label' => esc_html__( 'Subtitle', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'Our Products', 'kavehTheme' ),
  
      ]
  );
  $repeater->add_control(
    'tagheading2slidersecondkaveh',
    [
      'label' => esc_html__( 'Main Title Tag', 'kavehTheme' ),
      'type' => \Elementor\Controls_Manager::SELECT,
      'default' => 'H2',
      'options' => [
        'H1'  => esc_html__( 'H1', 'kavehTheme' ),
           'H2' => esc_html__( 'H2', 'kavehTheme' ),
           'H3' => esc_html__( 'H3', 'kavehTheme' ),
           'H4' => esc_html__( 'H4', 'kavehTheme' ),
           'H5' => esc_html__( 'H5', 'kavehTheme' ),
           'H6' => esc_html__( 'H6', 'kavehTheme' ),
           'p' => esc_html__( 'p', 'kavehTheme' ),
           'div' => esc_html__( 'div', 'kavehTheme' ),
           'span' => esc_html__( 'span', 'kavehTheme' ),
      ],
    ]
  );
      $repeater->add_control(
        'buttonslidersecondkaveh',
        [
            'label' => esc_html__( 'Button Text', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'More', 'kavehTheme' ),
    
        ]
    );
    $repeater->add_control(
      'linkbuttonslidersecondkaveh',
      [
          'label' => esc_html__( 'Button Link', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::TEXT,
          'default' => esc_html__( '#', 'kavehTheme' ),
  
      ]
  );
  $repeater->add_control(
    'backslidersecondkaveh',
    [
      'label' => esc_html__( 'Select Your Image', 'kavehTheme' ),
      'type' => \Elementor\Controls_Manager::MEDIA,
      'default' => [
        'url' => \Elementor\Utils::get_placeholder_image_src(),
      ],
    ]
  );
  $repeater->add_control(
    'backjslidersecondkaveh',
    [
      'label' => esc_html__( 'Background Image', 'kavehTheme' ),
      'type' => \Elementor\Controls_Manager::MEDIA,            
      'condition' => [
        'styleslidersecondkaveh' => 'three',
      ],
      'default' => [
        'url' => \Elementor\Utils::get_placeholder_image_src(),
      ],
    ]
  );
      $this->add_control(
        'slidesslidersecondkaveh',
        [
          'label' => esc_html__( 'Slides', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::REPEATER,
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
          'default' => [
            [
              'titlelidersecondkaveh' => esc_html__( 'Latest', 'kavehTheme' ),
           'title2lidersecondkaveh' => esc_html__( 'Our Products', 'kavehTheme' ),
           'buttonslidersecondkaveh' => esc_html__( 'More', 'kavehTheme' ),
           'linkbuttonslidersecondkaveh' => esc_html__( '#', 'kavehTheme' ),
            ],
          ],
          'fields' => $repeater->get_controls()
          ],
      );
      $repeater = new \Elementor\Repeater();
      $repeater->add_control(
        'titlelidersecondkaveh',
        [
            'label' => esc_html__( 'Main Title', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'Latest', 'kavehTheme' ),
    
        ]
    );
    $repeater->add_control(
      'tagheading1slidersecondkaveh',
      [
        'label' => esc_html__( 'Title Tag', 'kavehTheme' ),
        'type' => \Elementor\Controls_Manager::SELECT,
        'default' => 'H5',
        'options' => [
          'H1'  => esc_html__( 'H1', 'kavehTheme' ),
           'H2' => esc_html__( 'H2', 'kavehTheme' ),
           'H3' => esc_html__( 'H3', 'kavehTheme' ),
           'H4' => esc_html__( 'H4', 'kavehTheme' ),
           'H5' => esc_html__( 'H5', 'kavehTheme' ),
           'H6' => esc_html__( 'H6', 'kavehTheme' ),
           'p' => esc_html__( 'p', 'kavehTheme' ),
           'div' => esc_html__( 'div', 'kavehTheme' ),
           'span' => esc_html__( 'span', 'kavehTheme' ),
        ],
      ]
    );
    $repeater->add_control(
      'title2lidersecondkaveh',
      [
          'label' => esc_html__( 'Subtitle', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'Our Products', 'kavehTheme' ),
  
      ]
  );
      $repeater->add_control(
        'buttonslidersecondkaveh',
        [
            'label' => esc_html__( 'Button Text', 'kavehTheme' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'default' => esc_html__( 'More', 'kavehTheme' ),
    
        ]
    );
    $repeater->add_control(
      'linkbuttonslidersecondkaveh',
      [
          'label' => esc_html__( 'Button Link', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::TEXT,
          'default' => esc_html__( '#', 'kavehTheme' ),
  
      ]
  );
  $repeater->add_control(
    'backslidersecondkaveh',
    [
      'label' => esc_html__( 'Select Your Image', 'kavehTheme' ),
      'type' => \Elementor\Controls_Manager::MEDIA,
      'default' => [
        'url' => \Elementor\Utils::get_placeholder_image_src(),
      ],
    ]
  );
  $repeater->add_control(
    'backjslidersecondkaveh',
    [
      'label' => esc_html__( 'Background Image', 'kavehTheme' ),
      'type' => \Elementor\Controls_Manager::MEDIA,            
      'condition' => [
        'styleslidersecondkaveh' => 'three',
      ],
      'default' => [
        'url' => \Elementor\Utils::get_placeholder_image_src(),
      ],
    ]
  );
      $this->add_control(
        'slides2slidersecondkaveh',
        [
          'label' => esc_html__( 'Slides', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::REPEATER,
          'condition' => [
            'styleslidersecondkaveh' => 'two',
          ],
          'default' => [
            [
              'titlelidersecondkaveh' => esc_html__( 'Latest', 'kavehTheme' ),
           'title2lidersecondkaveh' => esc_html__( 'Our Products', 'kavehTheme' ),
           'buttonslidersecondkaveh' => esc_html__( 'More', 'kavehTheme' ),
           'linkbuttonslidersecondkaveh' => esc_html__( '#', 'kavehTheme' ),
            ],
          ],
          'fields' => $repeater->get_controls()
          ],
      );
       $this->end_controls_section();
       $this->start_controls_section(
        'style1_slidersecondkaveh',
        [
          'label' => esc_html__( 'Title Style', 'kavehTheme' ),
          'tab' => \Elementor\Controls_Manager::TAB_STYLE,
        ]
      );
      $this->add_control(
        'titlestslidersecondkaveh',
        [
          'label' => esc_html__( 'Subtitle Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .sslo' => 'color: {{VALUE}}',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name' => 'title_slidersecondkaveh',
          'label' => esc_html__( 'Subtitle Typography', 'kavehTheme' ),
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
          'selector' => '{{WRAPPER}} .landing-item .detail .sslo',
        ]
      );
      $this->add_control(
        'titlepstslidersecondkaveh',
        [
          'label' => esc_html__( 'Main Title Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .sub-s2 .sslotwo' => 'color: {{VALUE}}',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name' => 'p_slidersecondkaveh',
          'label' => esc_html__( 'Subtitle Typography', 'kavehTheme' ),
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
          'selector' => '{{WRAPPER}} .landing-item .detail .sub-s2 .sslotwo',
        ]
      );
      $this->add_control(
        'title2stslidersecondkaveh',
        [
          'label' => esc_html__( 'Title Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'condition' => [
            'styleslidersecondkaveh' => 'two',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .title .sltsth' => 'color: {{VALUE}}',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name' => 'title2_slidersecondkaveh',
          'label' => esc_html__( 'Title Typography', 'kavehTheme' ),
          'condition' => [
            'styleslidersecondkaveh' => 'two',
          ],
          'selector' => '{{WRAPPER}} .landing-tow .title .sltsth',
        ]
      );

      $this->end_controls_section();
      $this->start_controls_section(
        'style2_slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Style', 'kavehTheme' ),
          'tab' => \Elementor\Controls_Manager::TAB_STYLE,
          'condition' => [
            'styleslidersecondkaveh' => 'one',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name' => 'button_slidersecondkaveh',
          'label' => esc_html__( 'Button Text Typography', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-item .detail .btn ',
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Text_Shadow::get_type(),
        [
          'name' => 'text_shadowslidersecondkaveh',
          'label' => esc_html__( 'Text Shadow', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-item .detail .btn ',
        ]
      );
      $this->start_controls_tabs(
        'style_tabsslidersecondkaveh'
      );
      
      $this->start_controls_tab(
        'style_normal_tabslidersecondkaveh',
        [
          'label' => esc_html__( 'Normal', 'kavehTheme' ),
        ]
      );
      $this->add_control(
        'textbuttoncolorslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Text Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn ' => 'color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttoncolorslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Background Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn ' => 'background-color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttonradiusslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Border Radius', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn ' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Border::get_type(),
        [
          'name' => 'borderslidersecondkaveh',
          'label' => esc_html__( 'Border', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-item .detail .btn ',
        ]
      );
      $this->add_control(
        'buttonbordersslidersecondkaveh',
        [
          'label' => esc_html__( 'Border Width', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'condition' => [
            'borderslidersecondkaveh!' => '',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn ' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
          ],
        ]
      );
      $this->end_controls_tab();
      $this->start_controls_tab(
        'style_hove_tabslidersecondkaveh',
        [
          'label' => esc_html__( 'Hover', 'kavehTheme' ),
        ]
      );
      $this->add_control(
        'textbuttoncolorhoverslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Text Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn :hover' => 'color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttoncolorhoverslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Background Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn :hover' => 'background-color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttonradiushoverslidersecondkaveh',
        [
          'label' => esc_html__( 'Button Border Radius', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn :hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Border::get_type(),
        [
          'name' => 'borderhoverslidersecondkaveh',
          'label' => esc_html__( 'Border', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-item .detail .btn :hover',
        ]
      );
      $this->add_control(
        'buttonbordershoverslidersecondkaveh',
        [
          'label' => esc_html__( 'Border Width', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'condition' => [
            'borderhoverslidersecondkaveh!' => '',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn :hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
          ],
        ]
      );
      $this->end_controls_tab();
      $this->end_controls_tabs();
      $this->add_group_control(
        \Elementor\Group_Control_Box_Shadow::get_type(),
        [
          'name' => 'box_shadowslidersecondkavehh',
          'label' => esc_html__( 'Button Shadow', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-item .detail .btn ',
        ]
      );
      $this->add_control(
        'hr1slidersecondkaveh',
        [
          'type' => \Elementor\Controls_Manager::DIVIDER,
        ]
      );
      $this->add_control(
        'buttonpaddingslidersecondkaveh',
        [
          'label' => esc_html__( 'Padding', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-item .detail .btn ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      $this->end_controls_section();
      $this->start_controls_section(
        'style2_2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Style', 'kavehTheme' ),
          'tab' => \Elementor\Controls_Manager::TAB_STYLE,
          'condition' => [
            'styleslidersecondkaveh' => 'two',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Typography::get_type(),
        [
          'name' => 'button_2slidersecondkaveh',
          'label' => esc_html__( 'Button Text Typography', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-tow .link a  ',
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Text_Shadow::get_type(),
        [
          'name' => 'text_shadow2slidersecondkaveh',
          'label' => esc_html__( 'Text Shadow', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-tow .link a  ',
        ]
      );
      $this->start_controls_tabs(
        'style_tabs2slidersecondkaveh'
      );
      
      $this->start_controls_tab(
        'style_normal_tab2slidersecondkaveh',
        [
          'label' => esc_html__( 'Normal', 'kavehTheme' ),
        ]
      );
      $this->add_control(
        'textbuttoncolor2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Text Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  ' => 'color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttoncolor2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Background Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  ' => 'background-color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttonradius2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Border Radius', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  ' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Border::get_type(),
        [
          'name' => 'border2slidersecondkaveh',
          'label' => esc_html__( 'Border', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-tow .link a  ',
        ]
      );
      $this->add_control(
        'buttonborders2slidersecondkaveh',
        [
          'label' => esc_html__( 'Border Width', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'condition' => [
            'border2slidersecondkaveh!' => '',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  ' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
          ],
        ]
      );
      $this->end_controls_tab();
      $this->start_controls_tab(
        'style_hove_tab2slidersecondkaveh',
        [
          'label' => esc_html__( 'Hover', 'kavehTheme' ),
        ]
      );
      $this->add_control(
        'textbuttoncolorhover2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Text Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  :hover' => 'color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttoncolorhover2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Background Color', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::COLOR,
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  :hover' => 'background-color: {{VALUE}}',
          ],
        ]
      ); 
      $this->add_control(
        'buttonradiushover2slidersecondkaveh',
        [
          'label' => esc_html__( 'Button Border Radius', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  :hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      $this->add_group_control(
        \Elementor\Group_Control_Border::get_type(),
        [
          'name' => 'borderhover2slidersecondkaveh',
          'label' => esc_html__( 'Border', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-tow .link a  :hover',
        ]
      );
      $this->add_control(
        'buttonbordershover2slidersecondkaveh',
        [
          'label' => esc_html__( 'Border Width', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'condition' => [
            'borderhover2slidersecondkaveh!' => '',
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  :hover' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
          ],
        ]
      );
      $this->end_controls_tab();
      $this->end_controls_tabs();
      $this->add_group_control(
        \Elementor\Group_Control_Box_Shadow::get_type(),
        [
          'name' => 'box_shadow2slidersecondkavehh',
          'label' => esc_html__( 'Button Shadow', 'kavehTheme' ),
          'selector' => '{{WRAPPER}} .landing-tow .link a  ',
        ]
      );
      $this->add_control(
        'hr12slidersecondkaveh',
        [
          'type' => \Elementor\Controls_Manager::DIVIDER,
        ]
      );
      $this->add_control(
        'buttonpadding2slidersecondkaveh',
        [
          'label' => esc_html__( 'Padding', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::DIMENSIONS,
          'size_units' => [ 'px' ],
          'selectors' => [
            '{{WRAPPER}} .landing-tow .link a  ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
          ],
        ]
      );
      
      $this->end_controls_section();

      $this->start_controls_section(
        'style3_slidersecondkaveh',
        [
          'label' => esc_html__( 'Image Style', 'kavehTheme' ),
          'tab' => \Elementor\Controls_Manager::TAB_STYLE,
        ]
      );

      $this->add_control(
        'widthbg7slidersecondkaveh',
        [
          'label' => esc_html__( 'Image Width', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::SLIDER,
          'size_units' => [ 'px', '%' ],
          'range' => [
            'px' => [
              'min' => 0,
              'max' => 2000,
              'step' => 5,
            ],
            '%' => [
              'min' => 0,
              'max' => 100,
            ],
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item img,.landing-tow img' => 'width: {{SIZE}}{{UNIT}};',
          ],
        ]
      );
      $this->add_control(
        'heigthbg7slidersecondkaveh',
        [
          'label' => esc_html__( 'Image Height', 'kavehTheme' ),
          'type' => \Elementor\Controls_Manager::SLIDER,
          'size_units' => [ 'px', '%' ],
          'range' => [
            'px' => [
              'min' => 0,
              'max' => 2000,
              'step' => 5,
            ],
            '%' => [
              'min' => 0,
              'max' => 100,
            ],
          ],
          'selectors' => [
            '{{WRAPPER}} .landing-item img,.landing-tow img' => 'height: {{SIZE}}{{UNIT}};',
          ],
        ]
      );
      $this->end_controls_section();

          
        }


  protected function render(){
    $settings = $this->get_settings_for_display();
    $clsid = $this->get_id();
    ?>
  <?php if('one'===$settings['styleslidersecondkaveh']){ ?>
  <section class="landing position-relative">
    <div class="container">
      <div class="swiper swiper-landing position-relative" data-swiper='{"slidesPerView":1,"spaceBetween":0,"navigation":{"nextEl":".swiper-button-next","prevEl":".swiper-button-prev"},"pagination":{"el":".swiper-pagination","type":"bullets","clickable":true},"autoplay":{"delay":5000,"disableOnInteraction":false,"pauseOnMouseEnter":true},"effect":"fade","fadeEffect":{"crossFade":true},"loop":true}'>
        <div class="swiper-wrapper">
            <?php
            if ( $settings['slidesslidersecondkaveh'] ) {
            foreach (  $settings['slidesslidersecondkaveh'] as $item ) {
            ?>
          <div class="swiper-slide">
            <div
              class="landing-item mx-auto d-flex align-items-lg-center justify-content-lg-between flex-column flex-lg-row">
              <img src="<?php echo esc_url($item['backslidersecondkaveh']['url']); ?>" alt="<?php echo esc_attr(\Elementor\Control_Media::get_image_alt( $item['backslidersecondkaveh'] )); ?>" />
              <div class="detail">
                <<?php echo  esc_html($item['tagheading1slidersecondkaveh']); ?> class="sslo">
                  <span> <?php echo  esc_html($item['titlelidersecondkaveh']); ?> </span>
                </<?php echo  esc_html($item['tagheading1slidersecondkaveh']); ?>>
                <<?php echo  esc_html($item['tagheading2slidersecondkaveh']); ?> class="sub-s2">
                  <span class="sslotwo"> <?php echo  esc_html($item['title2lidersecondkaveh']); ?> </span>
                </<?php echo  esc_html($item['tagheading2slidersecondkaveh']); ?>>
                <a href="<?php echo  esc_url($item['linkbuttonslidersecondkaveh']); ?>" class="btn btn-primary">
                    <?php echo  esc_html($item['buttonslidersecondkaveh']); ?>
                  <i class="icon-arrow-left"></i>
                </a>
              </div>
            </div>
          </div>
          <?php
          }
        }
          ?>
        </div>
        <div class="swiper-pagination"></div>
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
      </div>
    </div>
  </section>
  <?php }elseif('two'===$settings['styleslidersecondkaveh']){ ?>
    <div class="landing-tow position-relative">
      <div class="container position-relative">
        <div class="swiper swiper-landing-tow overflow-hidden" data-swiper='{"slidesPerView":1,"spaceBetween":0,"navigation":{"nextEl":".swiper-button-next","prevEl":".swiper-button-prev"},"autoplay":{"delay":5000},"effect":"fade","fadeEffect":{"crossFade":true},"loop":true}'>
          <div class="swiper-wrapper">
          <?php
            if ( $settings['slides2slidersecondkaveh'] ) {
            foreach (  $settings['slides2slidersecondkaveh'] as $item ) {
            ?>
            <div class="swiper-slide">
              <div class="row align-items-center">
                <div class="col-lg-8">
                  <img src="<?php echo esc_url($item['backslidersecondkaveh']['url']); ?>" alt="cate" class="d-block" />
                </div>
                <div class="col-lg-4 mt-4 mt-lg-0">
                  <div class="title overflow-hidden">
                    <<?php echo  esc_html($item['tagheading1slidersecondkaveh']); ?> class="sltsth">
                    <?php echo  esc_html($item['titlelidersecondkaveh']); ?>
                      <span class="d-block"> <?php echo  esc_html($item['title2lidersecondkaveh']); ?> </span>
                    </<?php echo  esc_html($item['tagheading1slidersecondkaveh']); ?>>
                  </div>
                  <div class="link overflow-hidden">
                    <a href="<?php echo  esc_url($item['linkbuttonslidersecondkaveh']); ?>" class="btn btn-primary">
                    <?php echo  esc_html($item['buttonslidersecondkaveh']); ?>
                      <i class="icon-arrow-left"></i>
                    </a>
                  </div>
                </div>
              </div>
            </div>
            <?php
          }
        }
          ?>
          </div>
          <div class="swiper-button-next"></div>
          <div class="swiper-button-prev"></div>
        </div>
      </div>
    </div>
  <?php } ?>
  
    <?php
  }


}
