PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
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.18.0, at src/Views/Form/Templates/Sequoia/sections/introduction.php

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