PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.3
GiveWP – Donation Plugin and Fundraising Platform v4.16.3
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / src / Views / Form / Templates / Sequoia / sections / introduction.php

introduction.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.3, at src/Views/Form/Templates/Sequoia/sections/introduction.php

46 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 /**
4 * @since 4.16.2 Escape introduction image URL when rendering the template.
5 */
6
7 use Give\Helpers\Form\Template\Utils\Frontend as FrontendFormTemplateUtils;
8
9 $formInfo = get_post(FrontendFormTemplateUtils::getFormId());
10
11 /* @var \Give\Form\Template $formTemplate */
12 $formTemplate = Give()->templates->getTemplate();
13
14 // Get headline and description
15 $headline = $formTemplate->getFormHeading($formInfo->ID);
16 $description = $formTemplate->getFormExcerpt($formInfo->ID);
17 $image = $formTemplate->getFormFeaturedImage($formInfo->ID);
18 ?>
19
20 <div class="give-section introduction">
21 <h2 class="headline">
22 <?php
23 echo $headline; ?>
24 </h2>
25 <?php
26 if ( ! empty($description)) : ?>
27 <div class="seperator"></div>
28 <p class="description">
29 <?php
30 echo $description; ?>
31 </p>
32 <?php
33 endif; ?>
34 <?php
35 if ( ! empty($image)) : ?>
36 <div class="image">
37 <img src="<?php echo esc_url( $image ); ?>" />
38 </div>
39 <?php
40 endif; ?>
41
42 <?php
43 require 'income-stats.php';
44 require 'progress-bar.php';
45 ?>
46