| 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 |
|