start_controls_section( 'abc_elementor_post_info_setting', [ 'label' => esc_html__('Post Info Setting', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); //blog date on/off switch $this->add_control( 'abc_elementor_post_info_date_switch', [ 'label' => esc_html__('Date', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //blog date on/off switch $this->add_control( 'abc_elementor_post_info_author_switch', [ 'label' => esc_html__('Author', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //blog comment on/off switch $this->add_control( 'abc_elementor_post_info_comment_switch', [ 'label' => esc_html__('Comments', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //Alignment $this->add_responsive_control( 'abc_elementor_post_info_align', [ 'label' => esc_html__( 'Alignment', 'abcbiz-addons'), 'type' => Controls_Manager::CHOOSE, 'default' => 'center', 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-post-info' => 'text-align: {{VALUE}}', ], ] ); $this->end_controls_section(); // blog info style section $this->start_controls_section( 'abc_elementor_post_info_content_style_section', [ 'label' => esc_html__('Blog Info Style', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); //blog info typography $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abc_elementor_post_info_info_typography', 'label' => esc_html__('Typography', 'abcbiz-addons'), 'selector' => '{{WRAPPER}} .abcbiz-ele-post-info', ] ); // blog info text color $this->add_control( 'abc_elementor_post_info_info_color', [ 'label' => esc_html__('Info Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#d6d6d6', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-post-info, .abcbiz-ele-post-info a' => 'color: {{VALUE}};', ], ] ); // blog info icon color $this->add_control( 'abc_elementor_post_info_info_icon_color', [ 'label' => esc_html__('Icon Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#d6d6d6', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-post-info i' => 'color: {{VALUE}};', ], ] ); // blog info icon size $this->add_responsive_control( 'abc_elementor_post_info_info_icon_size', [ 'label' => esc_html__('Icon Size', 'abcbiz-addons'), 'type' => Controls_Manager::SLIDER, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-post-info i' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'RenderView.php'; } }