start_controls_section( 'abcbiz-elementor-block-quote', [ 'label' => esc_html__( 'Contents', 'abcbiz-addons' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); //Alignment $this->add_responsive_control( 'abcbiz_elementor_block_quote_align', [ 'label' => esc_html__( 'Alignment', 'abcbiz-addons'), 'type' => Controls_Manager::CHOOSE, 'default' => 'left', '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-block-quote-area' => 'text-align: {{VALUE}}', ], ] ); $this->add_control( 'abcbiz_elementor_block_quote_text', [ 'label' => esc_html__( 'Quote Text', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'rows' => 10, 'default' => esc_html__( 'Something is better than nothing!', 'abcbiz-addons' ), 'placeholder' => esc_html__( 'Type blockquote text here', 'abcbiz-addons' ), ] ); $this->end_controls_section(); //Abc Blockquote style $this->start_controls_section( 'abcbiz_elementor_block_quote_style', [ 'label' => esc_html__('Style', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'abcbiz_elementor_block_quote_icon_color', [ 'label' => esc_html__( 'Icon Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#cccccc', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-block-quote-area .abcbiz-quote-icon svg' => 'fill: {{VALUE}}', ], ] ); $this->add_control( 'abcbiz_elementor_block_quote_color', [ 'label' => esc_html__( 'Text Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#053d58', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-block-quote-area blockquote' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'abcbiz_elementor_block_quote_border_color', [ 'label' => esc_html__( 'Border Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#59a818', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-block-quote-area blockquote' => 'border-left-color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_block_quote_typography', 'label' => esc_html__( 'Typography', 'abcbiz-addons' ), 'selector' => '{{WRAPPER}} .abcbiz-elementor-block-quote-area blockquote', ] ); //end of blockquote $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'renderview.php'; } }