PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.1
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 2.3.2 All 256 releases
give / src / Views / Form / Templates / Sequoia / sections / introduction.php

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

43 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Give\Helpers\Form\Template\Utils\Frontend as FrontendFormTemplateUtils;
4
5 $formInfo = get_post(FrontendFormTemplateUtils::getFormId());
6
7 /* @var \Give\Form\Template $formTemplate */
8 $formTemplate = Give()->templates->getTemplate();
9
10 // Get headline and description
11 $headline = $formTemplate->getFormHeading($formInfo->ID);
12 $description = $formTemplate->getFormExcerpt($formInfo->ID);
13 $image = $formTemplate->getFormFeaturedImage($formInfo->ID);
14 ?>
15
16 <div class="give-section introduction">
17 <h2 class="headline">
18 <?php
19 echo $headline; ?>
20 </h2>
21 <?php
22 if ( ! empty($description)) : ?>
23 <div class="seperator"></div>
24 <p class="description">
25 <?php
26 echo $description; ?>
27 </p>
28 <?php
29 endif; ?>
30 <?php
31 if ( ! empty($image)) : ?>
32 <div class="image">
33 <img src="<?php
34 echo $image; ?>" />
35 </div>
36 <?php
37 endif; ?>
38
39 <?php
40 require 'income-stats.php';
41 require 'progress-bar.php';
42 ?>
43