PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / trunk
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management vtrunk
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 / templates / single-campaign.php

single-campaign.php in SureDonation – Donation Forms, Fundraising Campaigns & Donor Management trunk, at templates/single-campaign.php

37 lines 929 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Single campaign template (classic themes).
4 *
5 * Renders the campaign page — the title plus the seeded block content — without
6 * the theme's single-post chrome (author/category byline and the theme-injected
7 * featured image, which the page's own cover block already provides).
8 *
9 * Block themes are handled separately via register_block_template(); a PHP
10 * template cannot reproduce a block theme's header/footer/layout canvas.
11 *
12 * @package SureDonation
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit; // Exit if accessed directly.
17 }
18
19 // Ensure the campaign block styles are present even if the page has no blocks.
20 wp_enqueue_style( 'suredonation-campaign-blocks' );
21
22 get_header();
23 ?>
24
25 <main class="suredonation-campaign-page">
26 <?php
27 while ( have_posts() ) :
28 the_post();
29 the_title( '<h1 class="suredonation-campaign-page__title">', '</h1>' );
30 the_content();
31 endwhile;
32 ?>
33 </main>
34
35 <?php
36 get_footer();
37