<?php
namespace EcafeAddons\Widgets;

use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Group_Control_Typography;
use Elementor\Group_Control_Border;
use Elementor\Core\Schemes\Typography;
use Elementor\Group_Control_Background;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Group_Control_Text_Shadow;

use EcafeAddons\EcafeElementLoad;

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

class Ecafe_Post_Meta extends Widget_Base {

	public function get_name() {
		return 'ecafe-post-meta';
	}

	public function get_title() {
		return esc_html__( 'Post Meta', 'essential-classy-addons-for-elementor' );
	}

	public function get_icon() {
		return 'ecafe-ele-back-icon ecafe-post-meta-icon';
	}

	public function get_categories() {
		return array( 'essential' );
	}

	public function get_keywords() {
		return array( 'post', 'meta', 'post meta', 'date', 'time', 'taxonomies', 'author', 'comment' );
	}

	public function get_custom_help_url() {
		return 'https://store.kapasias.com/helpdesk/';
	}

	public function has_widget_inner_wrapper(): bool {
		return ! \Elementor\Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
	}

	protected function register_controls() {

		$this->start_controls_section(
			'contentSection',
			array(
				'label' => esc_html__( 'Post Meta', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_CONTENT,
			)
		);
		$this->add_control(
			'metaLayout',
			array(
				'label'   => esc_html__( 'Layout', 'essential-classy-addons-for-elementor' ),
				'type'    => Controls_Manager::SELECT,
				'default' => 'ecvertical',
				'options' => array(
					'ecvertical'   => esc_html__( 'Vertical', 'essential-classy-addons-for-elementor' ),
					'echorizontal' => esc_html__( 'Horizontal', 'essential-classy-addons-for-elementor' ),
				),
			)
		);
		$repeater = new \Elementor\Repeater();
		$repeater->add_control(
			'metaGet',
			array(
				'label'   => esc_html__( 'Get', 'essential-classy-addons-for-elementor' ),
				'type'    => Controls_Manager::SELECT,
				'default' => 'Author',
				'options' => array(
					'Author'     => esc_html__( 'Author', 'essential-classy-addons-for-elementor' ),
					'Date'       => esc_html__( 'Date', 'essential-classy-addons-for-elementor' ),
					'Time'       => esc_html__( 'Time', 'essential-classy-addons-for-elementor' ),
					'Taxonomies' => esc_html__( 'Taxonomies', 'essential-classy-addons-for-elementor' ),
					'Comment'    => esc_html__( 'Comment', 'essential-classy-addons-for-elementor' ),
				),
			)
		);
		$repeater->add_control(
			'metaText',
			array(
				'label' => esc_html__( 'Text', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::TEXT,
				'dynamic'     => array( 'active' => true ),
			)
		);
		$repeater->add_control(
			'metaGetAuthorAvatar',
			array(
				'label'     => esc_html__( 'Avatar', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'essential-classy-addons-for-elementor' ),
				'label_off' => esc_html__( 'Disable', 'essential-classy-addons-for-elementor' ),
				'default'   => 'yes',
				'condition' => array(
					'metaGet' => 'Author',
				),
			)
		);
		$repeater->add_control(
			'metaGetAuthorName',
			array(
				'label'     => esc_html__( 'Author Name', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Enable', 'essential-classy-addons-for-elementor' ),
				'label_off' => esc_html__( 'Disable', 'essential-classy-addons-for-elementor' ),
				'default'   => 'yes',
				'condition' => array(
					'metaGet' => 'Author',
				),
			)
		);
		$repeater->add_control(
			'metaGetAuthorLink',
			array(
				'label'     => esc_html__( 'Link', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Show', 'essential-classy-addons-for-elementor' ),
				'label_off' => esc_html__( 'Hide', 'essential-classy-addons-for-elementor' ),
				'default'   => 'no',
				'condition' => array(
					'metaGet' => 'Author',
				),
			)
		);
		$repeater->add_control(
			'dateLastUpdate',
			array(
				'label'     => esc_html__( 'Last Update', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Show', 'essential-classy-addons-for-elementor' ),
				'label_off' => esc_html__( 'Hide', 'essential-classy-addons-for-elementor' ),
				'default'   => 'no',
				'condition' => array(
					'metaGet' => 'Date',
				),
			)
		);
		$repeater->add_control(
			'timeLastUpdate',
			array(
				'label'     => esc_html__( 'Last Update', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SWITCHER,
				'label_on'  => esc_html__( 'Show', 'essential-classy-addons-for-elementor' ),
				'label_off' => esc_html__( 'Hide', 'essential-classy-addons-for-elementor' ),
				'default'   => 'no',
				'condition' => array(
					'metaGet' => 'Time',
				),
			)
		);
		$repeater->add_control(
			'metaGetTaxonomy',
			array(
				'label'     => esc_html__( 'Taxonomy', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::SELECT,
				'default'   => 'category',
				'options'   => \EcafeHelper::getTaxonomiesList(),
				'condition' => array(
					'metaGet' => 'Taxonomies',
				),
			)
		);
		$repeater->add_control(
			'metaGetTaxonomySep',
			array(
				'label'     => esc_html__( 'Seprator', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::TEXT,
				'default'   => esc_html__( ',', 'essential-classy-addons-for-elementor' ),
				'dynamic'     => array( 'active' => true ),
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-taxonomie:not(:last-child):after' => 'content:"{{VALUE}}";',
				),
				'condition' => array(
					'metaGet' => 'Taxonomies',
				),
			)
		);
		$repeater->add_control(
			'metaGetTaxonomySepColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-taxonomie:not(:last-child):after' => 'color: {{VALUE}};',
				),
				'condition' => array(
					'metaGet' => 'Taxonomies',
				),
			)
		);
		$repeater->add_control(
			'metaGetTaxonomyLimit',
			array(
				'label'     => esc_html__( 'Max.', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::NUMBER,
				'min'       => 1,
				'max'       => 10,
				'step'      => 1,
				'default'   => 2,
				'condition' => array(
					'metaGet' => 'Taxonomies',
				),
			)
		);
		$repeater->add_control(
			'metaGetc1',
			array(
				'label'     => esc_html__( 'No Comments', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::TEXT,
				'default'   => esc_html__( 'No Comments', 'essential-classy-addons-for-elementor' ),
				'dynamic'     => array( 'active' => true ),
				'condition' => array(
					'metaGet' => 'Comment',
				),
			)
		);
		$repeater->add_control(
			'metaGetc2',
			array(
				'label'     => esc_html__( '1 Comment', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::TEXT,
				'dynamic'     => array( 'active' => true ),
				'default'   => esc_html__( 'Comment', 'essential-classy-addons-for-elementor' ),
				'condition' => array(
					'metaGet' => 'Comment',
				),
			)
		);
		$repeater->add_control(
			'metaGetc3',
			array(
				'label'     => esc_html__( 'Multi Comments', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::TEXT,
				'dynamic'     => array( 'active' => true ),
				'default'   => esc_html__( 'Comments', 'essential-classy-addons-for-elementor' ),
				'condition' => array(
					'metaGet' => 'Comment',
				),
			)
		);
		$this->add_control(
			'metaGetList',
			array(
				'label'       => esc_html__( 'List', 'essential-classy-addons-for-elementor' ),
				'type'        => Controls_Manager::REPEATER,
				'default'     => array(
					array(
						'metaGet' => 'Author',
					),
					array(
						'metaGet' => 'Date',
					),
					array(
						'metaGet' => 'Time',
					),
					array(
						'metaGet' => 'Taxonomies',
					),
					array(
						'metaGet' => 'Comment',
					),
				),
				'fields'      => $repeater->get_controls(),
				'title_field' => '{{{ metaGet }}}',
			)
		);
		$this->add_control(
			'boxAlign',
			array(
				'label'       => esc_html__( 'Box Alignment', 'essential-classy-addons-for-elementor' ),
				'type'        => Controls_Manager::CHOOSE,
				'options'     => array(
					'flex-start' => array(
						'title' => esc_html__( 'Left', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-left',
					),
					'center'     => array(
						'title' => esc_html__( 'Center', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-center',
					),
					'flex-end'   => array(
						'title' => esc_html__( 'Right', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-right',
					),
				),
				'selectors'   => array(
					'{{WRAPPER}} .ec-post-meta-wrapper' => 'justify-content: {{VALUE}};',
				),
				'separator'   => 'before',
				'label_block' => false,
			)
		);
		$this->add_control(
			'textAlign',
			array(
				'label'       => esc_html__( 'Text Alignment', 'essential-classy-addons-for-elementor' ),
				'type'        => Controls_Manager::CHOOSE,
				'options'     => array(
					'flex-start' => array(
						'title' => esc_html__( 'Left', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-left',
					),
					'center'     => array(
						'title' => esc_html__( 'Center', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-center',
					),
					'flex-end'   => array(
						'title' => esc_html__( 'Right', 'essential-classy-addons-for-elementor' ),
						'icon'  => 'eicon-text-align-right',
					),
				),
				'selectors'   => array(
					'{{WRAPPER}} .ec-post-meta-wrapper > div,{{WRAPPER}} .ec-post-meta-wrapper.ecvertical > div.ec-post-meta-author a' => 'align-items: {{VALUE}};',
				),
				'condition'   => array(
					'metaLayout' => 'ecvertical',
				),
				'label_block' => false,
			)
		);
		$this->end_controls_section();

		/*Notice panel*/
		$ecwidgetdoclink = esc_url( 'https://ecaddons.com/docs/post-meta-blog-builder-tutorial/' );
		include ECAFE_PATH . 'element/widgets/ecafe-widgetpanel-help.php';

		/*general start*/
		$this->start_controls_section(
			'generalStyling',
			array(
				'label' => esc_html__( 'General', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'generalTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper,{{WRAPPER}}  .ec-post-meta-wrapper a',
			)
		);
		$this->add_control(
			'generalColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper,{{WRAPPER}}  .ec-post-meta-wrapper a' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_control(
			'metaItemHeading',
			array(
				'label'     => esc_html__( 'Meta Item', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'metaIPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper > div' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'metaIMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper > div' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->start_controls_tabs( 'tabsmetaI' );
		$this->start_controls_tab(
			'metaIN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'metaIBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'metaIBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div',
			)
		);
		$this->add_responsive_control(
			'metaIBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper > div' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'metaIShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'metaIH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'metaIBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div:hover',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'metaIBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div:hover',
			)
		);
		$this->add_responsive_control(
			'metaIBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper > div:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'metaIShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper > div:hover',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*general end*/

		/*author start*/
		$this->start_controls_section(
			'authorStyling',
			array(
				'label' => esc_html__( 'Author', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'aLabelHeading',
			array(
				'label' => esc_html__( 'Label', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->add_responsive_control(
			'aLabelMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'aLabelPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'aLabelTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label',
			)
		);
		$this->start_controls_tabs( 'tabsaLabel' );
		$this->start_controls_tab(
			'aLabelN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'aLabelColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label' => 'color: {{VALUE}}',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'aLabelBg',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'aLabelBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'aLabelBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'aLabelShadow',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'aLabelTextShadow',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'aLabelH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'aLabelColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label' => 'color: {{VALUE}}',
				),

			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'aLabelBgH',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'aLabelBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'aLabelBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'aLabelShadowH',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'aLabelTextShadowH',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'aAvatarHeading',
			array(
				'label'     => esc_html__( 'Avatar', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'avatarMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'avatarPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'avatarSize',
			array(
				'label'      => esc_html__( 'Size', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::SLIDER,
				'size_units' => array( 'px', '%' ),
				'range'      => array(
					'px' => array(
						'min' => 1,
						'max' => 200,
					),
					'%'  => array(
						'min'  => 1,
						'max'  => 100,
						'step' => 1,
					),
				),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img' => 'width:{{SIZE}}{{UNIT}};',
				),
			)
		);
		$this->start_controls_tabs( 'tabsAvatarStyle' );
		$this->start_controls_tab(
			'tabAvatarN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'avatarBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'avatarBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img',
			)
		);
		$this->add_responsive_control(
			'avatarBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'avatarShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author img',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabAvatarHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'avatarBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover img',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'avatarBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover img',
			)
		);
		$this->add_responsive_control(
			'avatarBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'avatarShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover img',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'aUsernameHeading',
			array(
				'label'     => esc_html__( 'Username', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'aUsernameMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'aUsernamePadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'aUsernameTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname',
			)
		);
		$this->start_controls_tabs( 'tabsaUsernameStyle' );
		$this->start_controls_tab(
			'tabaUsernameN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'aUsernameColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'aUsernameBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'aUsernameBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname',
			)
		);
		$this->add_responsive_control(
			'aUsernameBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'aUsernameShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author .ec-post-meta-authorname',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabaUsernameHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'aUsernameColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-authorname' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'aUsernameBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-authorname',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'aUsernameBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-authorname',
			)
		);
		$this->add_responsive_control(
			'aUsernameBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-authorname' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'aUsernameShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-author:hover .ec-post-meta-authorname',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*author end*/

		/*date start*/
		$this->start_controls_section(
			'dateStyling',
			array(
				'label' => esc_html__( 'Date', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'dLabelHeading',
			array(
				'label' => esc_html__( 'Label', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->add_responsive_control(
			'dLabelMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'dLabelPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'dLabelTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label',
			)
		);
		$this->start_controls_tabs( 'tabsdLabel' );
		$this->start_controls_tab(
			'dLabelN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'dLabelColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label' => 'color: {{VALUE}}',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'dLabelBg',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'dLabelBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'dLabelBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'dLabelShadow',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'dLabelTextShadow',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'dLabelH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'dLabelColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label' => 'color: {{VALUE}}',
				),

			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'dLabelBgH',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'dLabelBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'dLabelBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'dLabelShadowH',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'dLabelTextShadowH',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'dateHeading',
			array(
				'label'     => esc_html__( 'Date', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'dateMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'datePadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'dateTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get',
			)
		);
		$this->start_controls_tabs( 'tabsdateStyle' );
		$this->start_controls_tab(
			'tabdateN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'dateColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'dateBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'dateBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get',
			)
		);
		$this->add_responsive_control(
			'dateBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'dateShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date .ec-post-meta-date-get',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabdateHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'dateColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-date-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'dateBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-date-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'dateBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-date-get',
			)
		);
		$this->add_responsive_control(
			'dateBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-date-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'dateShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-date:hover .ec-post-meta-date-get',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*date end*/

		/*time start*/
		$this->start_controls_section(
			'timeStyling',
			array(
				'label' => esc_html__( 'Time', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'tLabelHeading',
			array(
				'label' => esc_html__( 'Label', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->add_responsive_control(
			'tLabelMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'tLabelPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'tLabelTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label',
			)
		);
		$this->start_controls_tabs( 'tabstLabel' );
		$this->start_controls_tab(
			'tLabelN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'tLabelColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label' => 'color: {{VALUE}}',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'tLabelBg',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'tLabelBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'tLabelBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'tLabelShadow',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'tLabelTextShadow',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tLabelH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'tLabelColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label' => 'color: {{VALUE}}',
				),

			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'tLabelBgH',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'tLabelBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'tLabelBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'tLabelShadowH',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'tLabelTextShadowH',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'timeHeading',
			array(
				'label'     => esc_html__( 'Time', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'timeMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'timePadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'timeTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get',
			)
		);
		$this->start_controls_tabs( 'tabstimeStyle' );
		$this->start_controls_tab(
			'tabtimeN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'timeColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'timeBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'timeBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get',
			)
		);
		$this->add_responsive_control(
			'timeBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'timeShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time .ec-post-meta-time-get',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabtimeHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'timeColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-time-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'timeBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-time-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'timeBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-time-get',
			)
		);
		$this->add_responsive_control(
			'timeBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-time-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'timeShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-time:hover .ec-post-meta-time-get',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*time end*/

		/*taxonomie start*/
		$this->start_controls_section(
			'taxonomieStyling',
			array(
				'label' => esc_html__( 'Taxonomie', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'taLabelHeading',
			array(
				'label' => esc_html__( 'Label', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->add_responsive_control(
			'taLabelMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'taLabelPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'taLabelTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label',
			)
		);
		$this->start_controls_tabs( 'tabstaLabel' );
		$this->start_controls_tab(
			'taLabelN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'taLabelColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label' => 'color: {{VALUE}}',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'taLabelBg',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'taLabelBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'taLabelBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'taLabelShadow',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'taLabelTextShadow',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'taLabelH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'taLabelColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label' => 'color: {{VALUE}}',
				),

			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'taLabelBgH',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'taLabelBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'taLabelBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'taLabelShadowH',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'taLabelTextShadowH',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'taxonomieHeading',
			array(
				'label'     => esc_html__( 'Taxonomie', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'taxonomiesMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'taxonomiesPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'taxonomiesTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie',
			)
		);
		$this->start_controls_tabs( 'tabstaxonomiesStyle' );
		$this->start_controls_tab(
			'tabtaxonomiesN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'taxonomiesColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'taxonomiesBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'taxonomiesBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie',
			)
		);
		$this->add_responsive_control(
			'taxonomiesBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'taxonomiesShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies .ec-post-meta-taxonomie',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabtaxonomiesHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'taxonomiesColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-taxonomie' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'taxonomiesBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-taxonomie',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'taxonomiesBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-taxonomie',
			)
		);
		$this->add_responsive_control(
			'taxonomiesBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-taxonomie' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'taxonomiesShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-taxonomies:hover .ec-post-meta-taxonomie',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*taxonomie end*/

		/*comment start*/
		$this->start_controls_section(
			'commentStyling',
			array(
				'label' => esc_html__( 'Comment', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_control(
			'cLabelHeading',
			array(
				'label' => esc_html__( 'Label', 'essential-classy-addons-for-elementor' ),
				'type'  => Controls_Manager::HEADING,
			)
		);
		$this->add_responsive_control(
			'cLabelMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'cLabelPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'cLabelTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label',
			)
		);
		$this->start_controls_tabs( 'tabscLabel' );
		$this->start_controls_tab(
			'cLabelN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'cLabelColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label' => 'color: {{VALUE}}',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'cLabelBg',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'cLabelBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'cLabelBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'cLabelShadow',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'cLabelTextShadow',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'cLabelH',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'cLabelColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label' => 'color: {{VALUE}}',
				),

			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'cLabelBgH',
				'label'    => esc_html__( 'Background', 'essential-classy-addons-for-elementor' ),
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'cLabelBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label',
			)
		);
		$this->add_responsive_control(
			'cLabelBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'cLabelShadowH',
				'label'    => esc_html__( 'Box Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label',
			)
		);
		$this->add_group_control(
			Group_Control_Text_Shadow::get_type(),
			array(
				'name'     => 'cLabelTextShadowH',
				'label'    => esc_html__( 'Text Shadow', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-label',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();

		$this->add_control(
			'cCountHeading',
			array(
				'label'     => esc_html__( 'Count', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'commentNumberMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'commentNumberPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'commentNumberTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number',
			)
		);
		$this->start_controls_tabs( 'tabscommentNumberStyle' );
		$this->start_controls_tab(
			'tabcommentNumberN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'commentNumberColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'commentNumberBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'commentNumberBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number',
			)
		);
		$this->add_responsive_control(
			'commentNumberBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'commentNumberShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-number',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabcommentNumberHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'commentNumberColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-number' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'commentNumberBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-number',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'commentNumberBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-number',
			)
		);
		$this->add_responsive_control(
			'commentNumberBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-number' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'commentNumberShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-number',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->add_control(
			'commentHeading',
			array(
				'label'     => esc_html__( 'Comment', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::HEADING,
				'separator' => 'before',
			)
		);
		$this->add_responsive_control(
			'commentTextMargin',
			array(
				'label'      => esc_html__( 'Margin', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_responsive_control(
			'commentTextPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			array(
				'name'     => 'commentTextTypo',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get',
			)
		);
		$this->start_controls_tabs( 'tabscommentTextStyle' );
		$this->start_controls_tab(
			'tabcommentTextN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'commentTextColor',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'commentTextBg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'commentTextBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get',
			)
		);
		$this->add_responsive_control(
			'commentTextBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'commentTextShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment .ec-post-meta-comment-get',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabcommentTextHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_control(
			'commentTextColorH',
			array(
				'label'     => esc_html__( 'Color', 'essential-classy-addons-for-elementor' ),
				'type'      => Controls_Manager::COLOR,
				'selectors' => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-get' => 'color: {{VALUE}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'commentTextBgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-get',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'commentTextBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-get',
			)
		);
		$this->add_responsive_control(
			'commentTextBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-get' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'commentTextShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper .ec-post-meta-comment:hover .ec-post-meta-comment-get',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*comment end*/

		/*box start*/
		$this->start_controls_section(
			'metaBoxStyling',
			array(
				'label' => esc_html__( 'Box', 'essential-classy-addons-for-elementor' ),
				'tab'   => Controls_Manager::TAB_STYLE,
			)
		);
		$this->add_responsive_control(
			'metaBoxPadding',
			array(
				'label'      => esc_html__( 'Padding', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%', 'em' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->start_controls_tabs( 'tabsmetaBoxStyle' );
		$this->start_controls_tab(
			'tabmetaBoxN',
			array(
				'label' => esc_html__( 'Normal', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'metaBoxbg',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'metaBoxBorder',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper',
			)
		);
		$this->add_responsive_control(
			'metaBoxBr',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'metaboxShadow',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper',
			)
		);
		$this->end_controls_tab();
		$this->start_controls_tab(
			'tabmetaBoxHover',
			array(
				'label' => esc_html__( 'Hover', 'essential-classy-addons-for-elementor' ),
			)
		);
		$this->add_group_control(
			Group_Control_Background::get_type(),
			array(
				'name'     => 'metaBoxbgH',
				'types'    => array( 'classic', 'gradient' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper:hover',
			)
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			array(
				'name'     => 'metaBoxBorderH',
				'label'    => esc_html__( 'Border', 'essential-classy-addons-for-elementor' ),
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper:hover',
			)
		);
		$this->add_responsive_control(
			'metaBoxBrH',
			array(
				'label'      => esc_html__( 'Border Radius', 'essential-classy-addons-for-elementor' ),
				'type'       => Controls_Manager::DIMENSIONS,
				'size_units' => array( 'px', '%' ),
				'selectors'  => array(
					'{{WRAPPER}} .ec-post-meta-wrapper:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				),
			)
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			array(
				'name'     => 'metaboxShadowH',
				'selector' => '{{WRAPPER}} .ec-post-meta-wrapper:hover',
			)
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->end_controls_section();
		/*box end*/
	}

	protected function render() {
		$settings    = $this->get_settings_for_display();
		$metaGetList = ! empty( $settings['metaGetList'] ) ? $settings['metaGetList'] : '';
		$metaLayout  = ! empty( $settings['metaLayout'] ) ? $settings['metaLayout'] : '';

		$output = '';
		if ( ! empty( $metaGetList ) ) {
			$output .= '<div class="ec-post-meta-wrapper ' . esc_attr( $metaLayout ) . '">';
			$i       = 0;
			foreach ( $metaGetList as $index => $item ) {

				$metaText = ! empty( $item['metaText'] ) ? $item['metaText'] : '';

				if ( ! empty( $item['metaGet'] ) && $item['metaGet'] == 'Author' ) {
					$output       .= '<div class="ec-post-meta-author">';
					$getAuthorInfo = get_post_field( 'post_author' );

					$metaGetAuthorLink   = ! empty( $item['metaGetAuthorLink'] ) ? $item['metaGetAuthorLink'] : 'no';
					$metaGetAuthorAvatar = ! empty( $item['metaGetAuthorAvatar'] ) ? $item['metaGetAuthorAvatar'] : 'no';
					$metaGetAuthorName   = ! empty( $item['metaGetAuthorName'] ) ? $item['metaGetAuthorName'] : 'no';

					if ( ! empty( $metaGetAuthorLink ) && $metaGetAuthorLink == 'yes' ) {
						$output .= '<a href="' . esc_url( get_author_posts_url( $getAuthorInfo ) ) . '">';
					}
					if ( ! empty( $metaText ) ) {
						$output .= '<span class="ec-post-meta-label">' . esc_html( $metaText ) . '</span>';
					}

					if ( ! empty( $metaGetAuthorAvatar ) && $metaGetAuthorAvatar == 'yes' ) {
						$output .= get_avatar( $getAuthorInfo, 'full' );
					}

					if ( ! empty( $metaGetAuthorName ) && $metaGetAuthorName == 'yes' ) {
						$output .= '<span class="ec-post-meta-authorname">' . esc_html( get_the_author_meta( 'display_name', $getAuthorInfo ) ) . '</span>';
					}

					if ( ! empty( $metaGetAuthorLink ) && $metaGetAuthorLink == 'yes' ) {
						$output .= '</a>';
					}
					$output .= '</div>';
				}

				if ( ! empty( $item['metaGet'] ) && $item['metaGet'] == 'Date' ) {
					$output        .= '<div class="ec-post-meta-date">';
					$dateLastUpdate = ! empty( $item['dateLastUpdate'] ) ? $item['dateLastUpdate'] : 'no';

					if ( ! empty( $metaText ) ) {
						$output .= '<span class="ec-post-meta-label">' . esc_html( $metaText ) . '</span>';
					}

					if ( ! empty( $dateLastUpdate ) && $dateLastUpdate == 'yes' ) {
						$output .= '<span class="ec-post-meta-date-get">' . esc_html( get_the_modified_time( get_option( 'date_format' ) ) ) . '</span>';
					} else {
						$output .= '<span class="ec-post-meta-date-get">' . esc_html( apply_filters( 'the_date', get_the_date( '' ), get_option( 'date_format' ), '', '' ) ) . '</span>';
					}
					$output .= '</div>';
				}

				if ( ! empty( $item['metaGet'] ) && $item['metaGet'] == 'Time' ) {
					$output .= '<div class="ec-post-meta-time">';
					if ( ! empty( $metaText ) ) {
						$output .= '<span class="ec-post-meta-label">' . esc_html( $metaText ) . '</span>';
					}

					$timeLastUpdate = ! empty( $item['timeLastUpdate'] ) ? $item['timeLastUpdate'] : 'no';
					if ( ! empty( $timeLastUpdate ) && $timeLastUpdate == 'yes' ) {
						$output .= '<span class="ec-post-meta-time-get">' . esc_html( get_the_modified_time() ) . '</span>';
					} else {
						$output .= '<span class="ec-post-meta-time-get">' . esc_html( get_the_time( '' ) ) . '</span>';
					}

					$output .= '</div>';
				}

				if ( ! empty( $item['metaGet'] ) && $item['metaGet'] == 'Taxonomies' ) {
					$output .= '<div class="ec-post-meta-taxonomies">';
					if ( ! empty( $metaText ) ) {
						$output .= '<span class="ec-post-meta-label">' . esc_html( $metaText ) . '</span>';
					}

					$metaGetTaxonomy      = ! empty( $item['metaGetTaxonomy'] ) ? $item['metaGetTaxonomy'] : '';
					$metaGetTaxonomyLimit = ! empty( $item['metaGetTaxonomyLimit'] ) ? $item['metaGetTaxonomyLimit'] : 2;
					$getData              = wp_get_post_terms( get_the_ID(), $metaGetTaxonomy );

					if ( ! empty( $metaLayout ) && $metaLayout == 'ecvertical' ) {
						$output .= '<div class="ec-post-meta-taxonomie-wrap">';
					}

					$j = 1;
					foreach ( $getData as $data ) {
						if ( $metaGetTaxonomyLimit >= $j ) {
							$output .= '<a class="ec-post-meta-taxonomie" href="' . esc_url( get_term_link( $data->term_id ) ) . '">';
							$output .= esc_html( $data->name );
							$output .= '</a>';
							++$j;
						}
					}
					if ( ! empty( $metaLayout ) && $metaLayout == 'ecvertical' ) {
						$output .= '</div>';
					}

					$output .= '</div>';
				}

				if ( ! empty( $item['metaGet'] ) && $item['metaGet'] == 'Comment' ) {
					$output .= '<div class="ec-post-meta-comment">';
					if ( ! empty( $metaText ) ) {
						$output .= '<span class="ec-post-meta-label">' . esc_html( $metaText ) . '</span>';
					}

					$getCommentNumber = get_comments_number();
					$metaGetc1        = ! empty( $item['metaGetc1'] ) ? $item['metaGetc1'] : 'No Comments';
					$metaGetc2        = ! empty( $item['metaGetc2'] ) ? $item['metaGetc2'] : 'Comment';
					$metaGetc3        = ! empty( $item['metaGetc3'] ) ? $item['metaGetc3'] : 'Comments';

					if ( comments_open() ) {
						$commentInfo = $metaGetc1;
						if ( $getCommentNumber == 1 ) {
							$commentInfo = '<span class="ec-post-meta-comment-number">' . $getCommentNumber . '</span>' . $metaGetc2;
						} elseif ( $getCommentNumber > 1 ) {
							$commentInfo = '<span class="ec-post-meta-comment-number">' . $getCommentNumber . '</span>' . $metaGetc3;
						}

						$output .= '<span class="ec-post-meta-comment-get">' . $commentInfo . '</span>';
					}
					$output .= '</div>';
				}
				++$i;
			}
			$output .= '</div>';
		}

		echo wp_kses_normalize_entities( $output );
	}
}
