<?php
namespace Elementor;

class tabsingle extends Widget_Base {
	
	public function get_name() {
		return 'tabsingle';
	}
	
	public function get_title() {
		return 'تب ها';
	}
	
 public function get_icon() {
		return 'eicon eicon-product-tabs';
    }
    
    public function get_categories() {
        return [ 'farnamproduct' ];
    }

	
	protected function register_controls() {


		
		
  $this->start_controls_section(
            'farnam_product_style_2',
            [
                'label' => esc_html__( 'تنظیمات استایل و ظاهر', 'woolentor' ),
            ]
        );


		    $this->add_control(
'sepidcolor-2',
			[
				'label' => __( 'رنگ پس زمینه تب ', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li a' => 'background: {{VALUE}} !important',
				],
			]
           );
		      $this->add_control(
'sepidcolor-3',
			[
				'label' => __( 'رنگ متن تب', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li a' => 'color: {{VALUE}} !important',
				],
			]
           );
		   
		   $this->add_control(
                        'titr-mehr-4',
                        [
                            'label' => __( 'سایه تب ها', 'woolentor' ),
                            'type' => Controls_Manager::HEADING,
                                              ]
                    );

			$this->add_group_control(
			\Elementor\Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'box_shadow',
				'selector' => '{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li a',
			]
		);
			
				  $this->add_control(
                        'titr-mehr-2',
                        [
                            'label' => __( 'کادر تب', 'woolentor' ),
                            'type' => Controls_Manager::HEADING,
                                              ]
                    );
		$this->add_group_control(
			\Elementor\Group_Control_Border::get_type(),
			[
				'name' => 'border-mehr-2',
				'selector' => '{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li a',
			]
		);	
				$this->add_responsive_control(
			'title_padding',
			[
				'type' => \Elementor\Controls_Manager::DIMENSIONS,
				'label' => esc_html__( 'فاصله داخلی', 'textdomain' ),
				'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		
		
		  $this->add_control(
'sepidcolor-321e',
			[
				'label' => __( 'رنگ پس زمینه تب فعال', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li.active a' => 'background: {{VALUE}} !important',
				],
			]
           );
		
		
			  $this->add_control(
'sepidcolor-321e1',
			[
				'label' => __( 'رنگ متن تب فعال', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li.active a' => 'color: {{VALUE}} !important',
				],
			]
           );
		   
		   	   $this->add_control(
                        'titr-mehr-4qw',
                        [
                            'label' => __( 'سایه تب فعال', 'woolentor' ),
                            'type' => Controls_Manager::HEADING,
                                              ]
                    );

			$this->add_group_control(
			\Elementor\Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'box_shadowqw',
				'selector' => '{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li.active a',
			]
		);
			
				  $this->add_control(
                        'titr-mehr-2qw',
                        [
                            'label' => __( 'کادر تب فعال', 'woolentor' ),
                            'type' => Controls_Manager::HEADING,
                                              ]
                    );
		$this->add_group_control(
			\Elementor\Group_Control_Border::get_type(),
			[
				'name' => 'border-mehr-2qw',
				'selector' => '{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li.active a',
			]
		);	
		   
		   
		   

		
		  $this->add_control(
'sepidcolor-4',
			[
				'label' => __( 'رنگ ایکون عنوان تب ها', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}}  #single-product-tab-402-1 ul li a::before' => 'color: {{VALUE}} !important',
				],
			]
           );
		   
		   
		     $this->add_control(
'sepidcolor-455656',
			[
				'label' => __( 'رنگ ایکون عنوان تب فعال', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}}  #single-product-tab-402-1 ul li.active a::before' => 'color: {{VALUE}} !important',
				],
			]
           );
		   
		        $this->add_control(
'sepidcolor-45565688q89',
			[
				'label' => __( 'رنگ پس زمینه تب ها', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}}  #single-product-tab-402-1 .woocommerce-Tabs-panel' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		   
		   	      $this->add_control(
'sepidcolor-5',
			[
				'label' => __( 'رنگ المان کنار عنوان تب ها', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .woocommerce-Tabs-panel h2:first-child::after' => 'background: {{VALUE}} !important',
					'{{WRAPPER}} #tab-seller_enquiry_form h3::after' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		   
		        $this->add_control(
'sepidcolor-45565688q89555',
			[
				'label' => __( 'رنگ المان کنار لیست دیدگاه ها', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}}  #single-product-tab-402-1 .woocommerce-Tabs-panel .commentlist::after' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		   	        $this->add_control(
'sepidcolor-45565688q8955586ddf44',
			[
				'label' => __( 'رنگ دور تصویر کاربری', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}}  #single-product-tab-402-1 #reviews #comments ol.commentlist li img.avatar' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		   
	  	      $this->add_control(
'sepidcolor-5wedq',
			[
				'label' => __( 'رنگ پس زمینه دکمه ثبت دیدگاه', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 #tab-reviews #submit' => 'background: {{VALUE}} !important',
				],
			]
           );
		
			   $this->add_control(
'sepidcolor-5wq12',
			[
				'label' => __( 'رنگ متن دکمه ثبت دیدگاه', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 #tab-reviews #submit' => 'background: {{VALUE}} !important',
				],
			]
           );

	  	      $this->add_control(
'sepidcolor-5wq2e',
			[
				'label' => __( 'رنگ هاور پس زمینه دکمه ثبت دیدگاه', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 #tab-reviews #submit:hover' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		     $this->add_control(
'sepidcolor-5wq3eee',
			[
				'label' => __( 'رنگ هاور متن دکمه ثبت دیدگاه', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 #tab-reviews #submit:hover' => 'color: {{VALUE}} !important',
				],
			]
           );
		   
		        $this->add_control(
'sepidcolor-5wq3eee7yu',
			[
				'label' => __( 'رنگ پس زمینه دکمه ثبت پرسش', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} .dokan-btn-theme' => 'background: {{VALUE}} !important',
				],
			]
           );
		   
		      $this->add_control(
'sepidcolor-5wq3eee7y3u',
			[
				'label' => __( 'رنگ کادر دکمه ثبت پرسش', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} .dokan-btn-theme' => 'border-color: {{VALUE}} !important',
				],
			]
           );
		      $this->add_control(
'sepidcolor-5wq3eee7yu44',
			[
				'label' => __( 'رنگ متن دکمه ثبت پرسش', 'plugin-domain' ),
				'type' => Controls_Manager::COLOR,
			
				'selectors' => [
					'{{WRAPPER}} .dokan-btn-theme' => 'color: {{VALUE}} !important',
				],
			]
           );
		
		   $this->add_responsive_control(
                        'sepidborder-2',
                        [
                            'label' => esc_html__( 'گردی عنوان تب ها', 'woolentor' ),
                            'type' => Controls_Manager::DIMENSIONS,
                            'selectors' => [
                                '{{WRAPPER}} #single-product-tab-402-1 ul li a' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px !important;',
                            ],
                        ]
                    );
					
					   $this->add_responsive_control(
                        'sepidborder-4tf',
                        [
                            'label' => esc_html__( 'گردی تب ها', 'woolentor' ),
                            'type' => Controls_Manager::DIMENSIONS,
                            'selectors' => [
                                '{{WRAPPER}} #single-product-tab-402-1 .woocommerce-Tabs-panel' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px !important;',
                            ],
                        ]
                    );
					
							$this->end_controls_section();
  $this->start_controls_section(
            'farnam_product_style_2qw',
            [
                'label' => esc_html__( 'استایل بیشتر', 'woolentor' ),
            ]
        );
		
		
		
	
							  $this->add_control(
                        'titr-mehr-2wq',
                        [
                            'label' => __( 'کادر محتوا تب', 'woolentor' ),
                            'type' => Controls_Manager::HEADING,
                                              ]
                    );
					
						$this->add_group_control(
			\Elementor\Group_Control_Border::get_type(),
			[
				'name' => 'border-mehr-2wq',
				'selector' => '{{WRAPPER}} #single-product-tab-402-1 .woocommerce-Tabs-panel',
			]
		);	
		
		
		$this->add_control(
			'border_style',
			[
				'label' => esc_html__( 'جهت عوان تب ها', 'textdomain' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'default' => 'right',
				'options' => [
					'right' => esc_html__( 'راست', 'textdomain' ),
					'left'  => esc_html__( 'چپ', 'textdomain' ),
					'unset' => esc_html__( 'وسط', 'textdomain' ),
				],
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs li' => 'float: {{VALUE}};',
				],
			]
		);
		
		
			$this->add_responsive_control(
			'title_padding1223',
			[
				'type' => \Elementor\Controls_Manager::DIMENSIONS,
				'label' => esc_html__( 'فاصله خارجی سربرگ تب ها', 'textdomain' ),
				'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .tabs.wc-tabs' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		
				$this->add_responsive_control(
			'title_padding122311333',
			[
				'type' => \Elementor\Controls_Manager::DIMENSIONS,
				'label' => esc_html__( 'فاصله داخلی باکس اصلی', 'textdomain' ),
				'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 ' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		
		$this->add_responsive_control(
			'title_padding122311',
			[
				'type' => \Elementor\Controls_Manager::DIMENSIONS,
				'label' => esc_html__( 'فاصله داخلی محتوا تب', 'textdomain' ),
				'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
				'selectors' => [
					'{{WRAPPER}} #single-product-tab-402-1 .woocommerce-Tabs-panel' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
				],
			]
		);
		
		$this->end_controls_section();
		
	}
	protected function render() {
		$settings = $this->get_settings_for_display();
defined( 'ABSPATH' ) || exit;

global $product;


				?>



<div class="first-sepid-product-box" id="single-product-tab-402-1">

<?php
	/**
	 * Hook: woocommerce_after_single_product_summary.
	 *
	 * @hooked woocommerce_output_product_data_tabs - 10
	 * @hooked woocommerce_upsell_display - 15
	 * @hooked woocommerce_output_related_products - 20
	 */
	do_action( 'woocommerce_after_single_product_summary' );
	?>
</div>
		<?php


	}


	
	protected function _content_template() {

    }
	
	
}