| 1 |
<?php |
| 2 |
/** |
| 3 |
* Multi-Form Goals block/shortcode template |
| 4 |
* Styles for this template are defined in 'blocks/multi-form-goals/common.scss' |
| 5 |
* @var Give\MultiFormGoals\MultiFormGoal\Model $this |
| 6 |
*/ |
| 7 |
?> |
| 8 |
|
| 9 |
|
| 10 |
<?php |
| 11 |
if ( ! empty($this->getInnerBlocks())) { |
| 12 |
echo $this->getInnerBlocks(); |
| 13 |
} else { |
| 14 |
?> |
| 15 |
<div class="give-multi-form-goal-block"> |
| 16 |
<div class="give-multi-form-goal-block__content"> |
| 17 |
<div class="give-multi-form-goal-block__image"> |
| 18 |
<img src="<?= esc_url($this->getImageSrc()) ?>" alt="goal image"/> |
| 19 |
</div> |
| 20 |
<div class="give-multi-form-goal-block__text"> |
| 21 |
<h2> |
| 22 |
<?= esc_html($this->getHeading()) ?> |
| 23 |
</h2> |
| 24 |
<p> |
| 25 |
<?= esc_html($this->getSummary()) ?> |
| 26 |
</p> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
<?php |
| 30 |
echo $this->getProgressBarOutput(); ?> |
| 31 |
</div> |
| 32 |
<?php |
| 33 |
} ?> |
| 34 |
|