start_controls_section( 'abcbiz_elementor_author_bio_setting', [ 'label' => esc_html__('Setting', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); //Author bio text $this->add_control( 'abcbiz_elementor_author_bio_text', [ 'label' => esc_html__('Author Bio Text', 'abcbiz-addons'), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('About Author', 'abcbiz-addons'), ] ); //Author bio link $this->add_control( 'abcbiz_elementor_author_bio_link_switch', [ 'label' => esc_html__('View All Posts Link', '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', ] ); $this->end_controls_section(); // blog info style section $this->start_controls_section( 'abcbiz_elementor_author_bio_style_section', [ 'label' => esc_html__('Author Style', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); // Background color $this->add_control( 'abcbiz_elementor_author_bio_bg_color', [ 'label' => esc_html__('Background Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#ececec', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-author-bio-area' => 'background-color: {{VALUE}};', ], ] ); // Title color $this->add_control( 'abcbiz_elementor_author_bio_title_color', [ 'label' => esc_html__('Title Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#444444', 'selectors' => [ '{{WRAPPER}} .abc-author-bio-title' => 'color: {{VALUE}};', ], ] ); //Author Title Typography $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_author_bio_typography', 'label' => esc_html__('Title Typography', 'abcbiz-addons'), 'selector' => '{{WRAPPER}} .abc-author-bio-title', ] ); // text color $this->add_control( 'abcbiz_elementor_author_bio_text_color', [ 'label' => esc_html__('Text Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#444444', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-authorright' => 'color: {{VALUE}};', ], ] ); //Author Text Typography $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_author_bio_text_typography', 'label' => esc_html__('Text Typography', 'abcbiz-addons'), 'selector' => '{{WRAPPER}} .abcbiz-ele-authorright', ] ); // link color $this->add_control( 'abcbiz_elementor_author_bio_link_color', [ 'label' => esc_html__('Link Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#0dbad1', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-authorright a' => 'color: {{VALUE}};', ], ] ); // link hover color $this->add_control( 'abcbiz_elementor_author_bio_link_hover_color', [ 'label' => esc_html__('Link Hover Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#02363d', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-authorright a:hover' => 'color: {{VALUE}};', ], ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'RenderView.php'; } }