| 1 |
<?php |
| 2 |
/** |
| 3 |
* "In Loving Memory" campaign template. |
| 4 |
* |
| 5 |
* @package SureDonation |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
return [ |
| 13 |
'id' => 'in-memory', |
| 14 |
'name' => __( 'In Loving Memory', 'suredonation' ), |
| 15 |
'category' => __( 'Memorial', 'suredonation' ), |
| 16 |
'description' => __( 'A tribute campaign to honor a loved one.', 'suredonation' ), |
| 17 |
/* translators: [Name] is a literal placeholder the site owner replaces after creating the campaign; keep it as-is. */ |
| 18 |
'campaign_title' => __( 'In loving memory of [Name]', 'suredonation' ), |
| 19 |
'campaign_description' => __( 'Celebrate their life and invite friends and family to give in their memory.', 'suredonation' ), |
| 20 |
'goal_type' => 'raised_amount', |
| 21 |
'goal_amount' => 5000, |
| 22 |
'get_form_blocks' => static function () { |
| 23 |
return \SureDonation\Inc\Campaign_Templates\Campaign_Templates::build_form_blocks( |
| 24 |
[ |
| 25 |
'amounts' => [ 20, 50, 100, 250 ], |
| 26 |
'button_text' => __( 'Give in their memory', 'suredonation' ), |
| 27 |
] |
| 28 |
); |
| 29 |
}, |
| 30 |
'get_page_blocks' => static function ( $ctx ) { |
| 31 |
return \SureDonation\Inc\Campaigns\Campaign_Page::get_default_layout( (int) ( $ctx['campaign_id'] ?? 0 ) ); |
| 32 |
}, |
| 33 |
]; |
| 34 |
|