start_controls_section( 'give_totals_settings', [ 'label' => __('GiveWP Totals Widget', 'give'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'forms', [ 'label' => __('Forms', 'give'), 'type' => \Elementor\Controls_Manager::SELECT2, 'description' => __('Choose the forms you want to combine in this total.', 'give'), 'separator' => 'after', 'options' => $this->getDonationForms(), 'multiple' => true, 'default' => '', ] ); $this->add_control( 'total_goal', [ 'label' => __('Goal Amount', 'give'), 'type' => \Elementor\Controls_Manager::TEXT, 'description' => __('Designate a goal amount.', 'give'), 'default' => '10000' ] ); $this->add_control( 'message', [ 'label' => __('Message:', 'give'), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'description' => __('(Optional) The total goal you want to reflect in your message.', 'give'), 'default' => __('Hey! We\'ve raised {total} of the {total_goal} we are trying to raise for this campaign!', 'give'), ] ); $this->add_control( 'link', [ 'label' => __('Link', 'give'), 'type' => \Elementor\Controls_Manager::URL, 'description' => __('The url of where you want to link donors to encourage them to donate toward the goal.', 'give'), 'show_external' => false, 'default' => [ 'url' => 'https://example.org', 'is_external' => false, 'nofollow' => false, ], ] ); $this->add_control( 'link_text', [ 'label' => __('Link Text', 'give'), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'description' => __('The text you want to hyperlink with your link.', 'give'), 'default' => __('Donate Now', 'give'), ] ); $this->add_control( 'show_progress', [ 'label' => __('Show Progress', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a the progress bar.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'cats', [ 'label' => __('Categories', 'give'), 'type' => \Elementor\Controls_Manager::TEXT, 'description' => __('Comma separated list of GiveWP category IDs you want to combine into this total.', 'give'), ] ); $this->add_control( 'tags', [ 'label' => __('Tags', 'give'), 'type' => \Elementor\Controls_Manager::TEXT, 'description' => __('Comma separated list of GiveWP tag IDs you want to combine into this total.', 'give'), ] ); $this->add_control( 'give_totals_info', [ 'label' => '', 'type' => \Elementor\Controls_Manager::RAW_HTML, 'content_classes' => 'give-info', 'raw' => '
' . __('GIVEWP TOTALS WIDGET', 'give') . '
' . __('Visit the GiveWP Docs for more info on the GiveWP Totals.', 'give') . '