<?php 
/*****************************************************************************************************************************************************
******************************************************************************************************************************************************

															Blog Post Style
																		
*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 	
$this->start_controls_section(
	'post_style',
	[
		'label'			=> __('Post Style','reza'),
		'tab'			=> \Elementor\Controls_Manager::TAB_STYLE,
				
 	]
);
$this->add_control(
	'primary_color_background',
	[
		'label'			=>__('Primary Color - Background Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-primary-bg: {{VALUE}}',
			),	
 	]
); 	

$this->add_control(
	'primary_color_text',
	[
		'label'			=>__('Primary Color - Text Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-primary-txt: {{VALUE}}',
			),	
		
 	]	
);
	
	
$this->add_control(
	'background_color',
	[
		'label'			=>__('Background Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-post-bg: {{VALUE}}',
			),	
 	]
);


$this->add_control(
	'title_color_link',
	[
		'label'			=>__('Title Color - Link Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-post-tl-lk: {{VALUE}}',
			),	
 	]
); 	

$this->add_control(
	'title_color_hover',
	[
		'label'			=>__('Title Color - Hover Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-post-tl-hv-lk: {{VALUE}}',
			),	
		
 	]
); 	


$this->add_control(
	'excerpt_color',
	[
		'label'			=>__('Excerpt Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-expt-txt: {{VALUE}}',
			),	
 	]
); 	


$this->add_control(
	'meta_color',
	[
		'label'			=>__('Meta Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-meta-txt: {{VALUE}}',
			),	
 	]
); 	
	  
	
$this->add_control(
	'border_color',
	[
		'label'			=>__('Border Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-main-br-cr: {{VALUE}}',
			),	
 	]
); 	

$this->add_control(
	'box_border_color',
	[
		'label'			=>__('Box Shadow Color','reza'),
		'type'			=> \Elementor\Controls_Manager::COLOR,
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-post-sd: {{VALUE}};--rd-post-hv-sd: {{VALUE}};',
			),	
 	]
); 	

if(!empty($box_layout) || !empty($box_layout_text)){			
	$this->add_control(
		'between_border',
		[
			'label'			=>__('Between Border','reza'),
			'type'			=> \Elementor\Controls_Manager::SELECT,
 			'options' 	=>  reza_array_options('between_border',true)
		]
	); 	 
}
		
$this->add_control(
	'radius',
	[
		'label'			=>__('Border Radius','reza'),
		'type'			=> \Elementor\Controls_Manager::SELECT,
		"options"		=>   reza_array_options('radius_mini',true),
		'selectors' 	=> array(
					'{{WRAPPER}} [class*="rd-el-"]' => '--rd-main-rd: {{VALUE}}',
			),
 	]
); 	 
 	
 
	
 $this->end_controls_section();
	
