Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
start_controls_section( 'section_content', [ 'label' => esc_html__( 'Button', 'animation-addons-for-elementor' ), ] ); $this->register_button_content_controls(); $this->add_responsive_control( 'btn_align', [ 'label' => esc_html__( 'Alignment', 'animation-addons-for-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'animation-addons-for-elementor' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'animation-addons-for-elementor' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'animation-addons-for-elementor' ), 'icon' => 'eicon-text-align-right', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}}' => 'text-align: {{VALUE}};', ], ] ); $this->end_controls_section(); //style controls $this->start_controls_section( 'section_style', [ 'label' => esc_html__( 'Button', 'animation-addons-for-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->register_button_style_controls(); $this->add_control( 'btn_stretch', [ 'label' => esc_html__( 'Button Stretch', 'animation-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => '', 'options' => [ '' => esc_html__( 'Default', 'animation-addons-for-elementor' ), 'stretch' => esc_html__( 'Enable', 'animation-addons-for-elementor' ), ], 'selectors' => [ '{{WRAPPER}} .wcf__btn a' => 'width: 100%;', ], 'condition' => [ 'btn_element_list' => [ 'default', 'underline' ], ], ] ); $this->add_control( 'btn_stretch_align', [ 'label' => esc_html__( 'Stretch Align', 'animation-addons-for-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'start', 'options' => [ 'start' => esc_html__( 'Start', 'animation-addons-for-elementor' ), 'center' => esc_html__( 'Center', 'animation-addons-for-elementor' ), 'end' => esc_html__( 'End', 'animation-addons-for-elementor' ), 'space-between' => esc_html__( 'Space Between', 'animation-addons-for-elementor' ), ], 'selectors' => [ '{{WRAPPER}} .wcf__btn a' => 'justify-content: {{VALUE}}', ], 'condition' => [ 'btn_stretch' => 'stretch', 'btn_element_list' => [ 'default', 'underline' ], ], ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); $this->render_button( $settings ); } }