start_controls_section( 'abcbiz-elementor-post_title', [ 'label' => esc_html__( 'Alignment', 'abcbiz-addons' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); //Heading tag $this->add_control( 'abcbiz_elementor_post_title_tag', [ 'label' => esc_html__('Heading Tag', 'abcbiz-addons'), 'type' => Controls_Manager::SELECT, 'default' => 'h1', 'options' => [ 'h1' => esc_html__('H1', 'abcbiz-addons'), 'h2' => esc_html__('H2', 'abcbiz-addons'), 'h3' => esc_html__('H3', 'abcbiz-addons'), 'h4' => esc_html__('H4', 'abcbiz-addons'), 'h5' => esc_html__('H5', 'abcbiz-addons'), 'H6' => esc_html__('H6', 'abcbiz-addons'), ], ] ); //Alignment $this->add_responsive_control( 'abcbiz_elementor_post_title_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-elementor-post-title-area' => 'text-align: {{VALUE}}', ], ] ); $this->end_controls_section(); //Abc post title style $this->start_controls_section( 'abcbiz_elementor_post_title_style', [ 'label' => esc_html__('Style', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'abcbiz_elementor_post_title_color', [ 'label' => esc_html__( 'Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .abcbiz-post-title-tag' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_post_title_typography', 'label' => esc_html__( 'Typography', 'abcbiz-addons' ), 'selector' => '{{WRAPPER}} .abcbiz-post-title-tag', ] ); //end of divider bg style $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'renderview.php'; } }