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