footer.php
6 years ago
form-navigator.php
6 years ago
income-stats.php
6 years ago
introduction.php
6 years ago
progress-bar.php
6 years ago
introduction.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | use Give\Helpers\Form\Template; |
| 4 | use Give\Helpers\Form\Template\Utils\Frontend as FrontendFormTemplateUtils; |
| 5 | |
| 6 | $formInfo = get_post( FrontendFormTemplateUtils::getFormId() ); |
| 7 | |
| 8 | /* @var \Give\Form\Template $formTemplate */ |
| 9 | $formTemplate = Give()->templates->getTemplate(); |
| 10 | |
| 11 | // Get headline and description |
| 12 | $headline = $formTemplate->getFormHeading( $formInfo->ID ); |
| 13 | $description = $formTemplate->getFormExcerpt( $formInfo->ID ); |
| 14 | $image = $formTemplate->getFormFeaturedImage( $formInfo->ID ); |
| 15 | ?> |
| 16 | |
| 17 | <div class="give-section introduction"> |
| 18 | <h2 class="headline"> |
| 19 | <?php echo $headline; ?> |
| 20 | </h2> |
| 21 | <?php if ( ! empty( $description ) ) : ?> |
| 22 | <div class="seperator"></div> |
| 23 | <p class="description"> |
| 24 | <?php echo $description; ?> |
| 25 | </p> |
| 26 | <?php endif; ?> |
| 27 | <?php if ( ! empty( $image ) ) : ?> |
| 28 | <div class="image"> |
| 29 | <img src="<?php echo $image; ?>" /> |
| 30 | </div> |
| 31 | <?php endif; ?> |
| 32 | |
| 33 | <?php |
| 34 | require 'income-stats.php'; |
| 35 | require 'progress-bar.php'; |
| 36 | ?> |
| 37 |