footer.php
4 years ago
form-navigator.php
4 years ago
income-stats.php
1 year ago
introduction.php
4 years ago
progress-bar.php
4 years ago
introduction.php
43 lines
| 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 |