start_controls_section( 'content_section', [ 'label' => __('GiveWP Donation Receipt Widget', 'give'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'error', [ 'label' => __('Error Message', 'give'), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'description' => __('Custom text to show if there is an error showing the receipt table.', 'give'), 'default' => __('You are missing the donation id to view this donation receipt.', 'give'), 'placeholder' => __('You are missing the donation id to view this donation receipt.', 'give'), ] ); $this->add_control( 'success', [ 'label' => __('Success Message', 'give'), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'description' => __('Custom text to show if the donation was successful.', 'give'), 'default' => __('Thank you for your donation.', 'give'), 'placeholder' => __('Thank you for your donation.', 'give'), ] ); $this->add_control( 'price', [ 'label' => __('Donation Total', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the total donation amount.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'donor', [ 'label' => __('Donor', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the donors full name.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'date', [ 'label' => __('Date', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the date of the donation.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'method', [ 'label' => __('Payment Method', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the name of the payment type (credit card, offline, etc).', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'payment_id', [ 'label' => __('Payment ID', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the ID of the donation.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'status', [ 'label' => __('Status', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the status of the payment.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'no' ] ); $this->add_control( 'company', [ 'label' => __('Company Name', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide a row with the company name the donor provided.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'no' ] ); $this->add_control( 'status_notice', [ 'label' => __('Payment Status Notice', 'give'), 'type' => \Elementor\Controls_Manager::SWITCHER, 'description' => __('Show or hide an alert above the receipt table showing the status of the donation payment.', 'give'), 'label_on' => __('Show', 'give'), 'label_off' => __('Hide', 'give'), 'default' => 'yes' ] ); $this->add_control( 'give_receipt_info', [ 'label' => '', 'type' => \Elementor\Controls_Manager::RAW_HTML, 'content_classes' => 'give-info', 'raw' => '
' . __('GIVEWP RECEIPT WIDGET', 'give') . '
' . __('Visit the GiveWP Docs for more info on the GiveWP Donation Receipt.', 'give') . '