start_controls_section( 'section_survey_maker', array( 'label' => esc_html__( 'Survey Maker', 'survey-maker' ), ) ); $this->add_control( 'important_note', array( 'label' => '', 'type' => \Elementor\Controls_Manager::RAW_HTML, 'raw' => ' '.esc_html__( 'Survey Maker', 'survey-maker' ), 'content_classes' => 'survey-elementor-widget-logo-wrap', ) ); $this->add_control( 'survey_title', array( 'label' => __( 'Survey Title', 'survey-maker' ), 'type' => Controls_Manager::TEXT, 'default' => '', 'title' => __( 'Enter the survey title', 'survey-maker' ), 'placeholder' => __( 'Enter the survey title', 'survey-maker' ), ) ); $this->add_control( 'survey_title_alignment', array( 'label' => __( 'Title Alignment', 'survey-maker' ), 'type' => Controls_Manager::SELECT, 'default' => 'left', 'options' => array( 'left' => 'Left', 'right' => 'Right', 'center' => 'Center' ) ) ); $this->add_control( 'survey_selector', array( 'label' => __( 'Select survey', 'survey-maker' ), 'type' => Controls_Manager::SELECT, 'default' => $this->get_default_survey(), 'options' => $this->get_active_surveys() ) ); $this->end_controls_section(); } protected function render( $instance = array() ) { if ( ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'elementor' ) || ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'elementor_ajax' ) ) { echo ''; } $settings = $this->get_settings_for_display(); $h_html = "