PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.5.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.5.1
1.6.1 1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
suredonation / inc / campaign-templates / templates / faith / template.php

template.php in SureDonation – Donation Forms, Fundraising Campaigns & Donor Management 1.5.1, at inc/campaign-templates/templates/faith/template.php

33 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * "Faith / Place of Worship" campaign template.
4 *
5 * @package SureDonation
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 return [
13 'id' => 'faith',
14 'name' => __( 'Faith / Place of Worship', 'suredonation' ),
15 'category' => __( 'Faith', 'suredonation' ),
16 'description' => __( 'Collect offerings and donations for your congregation.', 'suredonation' ),
17 'campaign_title' => __( 'Support our congregation', 'suredonation' ),
18 'campaign_description' => __( 'Invite your community to give and share how contributions sustain your mission.', 'suredonation' ),
19 'goal_type' => 'raised_amount',
20 'goal_amount' => 10000,
21 'get_form_blocks' => static function () {
22 return \SureDonation\Inc\Campaign_Templates\Campaign_Templates::build_form_blocks(
23 [
24 'amounts' => [ 25, 50, 100, 250 ],
25 'button_text' => __( 'Give', 'suredonation' ),
26 ]
27 );
28 },
29 'get_page_blocks' => static function ( $ctx ) {
30 return \SureDonation\Inc\Campaigns\Campaign_Page::get_default_layout( (int) ( $ctx['campaign_id'] ?? 0 ) );
31 },
32 ];
33