start_controls_section( 'give_login_settings', [ 'label' => __('GiveWP Goal Widget', 'give'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'form_id', [ 'label' => __('Form ID', 'give'), 'type' => \Elementor\Controls_Manager::TEXT, 'input_type' => 'number' ] ); $this->add_control( 'show_text', [ 'label' => __('Show Text', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide the goal text.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'show_bar', [ 'label' => __('Show Progress Bar', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide progress bar.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'give_goal_info', [ 'label' => '', 'type' => \Elementor\Controls_Manager::RAW_HTML, 'content_classes' => 'give-info', 'raw' => '
' . __('GIVEWP GOAL WIDGET', 'give') . '
' . __('Visit the GiveWP Docs for more info on the GiveWP Goal.', 'give') . '