PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.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 2.3.2 All 256 releases
give / src / Views / Form / Templates / Classic / resources / views / header.php

header.php in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at src/Views/Form/Templates/Classic/resources/views/header.php

60 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @var string $title
4 * @var string $description
5 * @var bool $isSecureBadgeEnabled
6 * @var bool $secureBadgeContent
7 * @var bool $hasGoal
8 * @var array $goalStats
9 */
10
11 ?>
12 <div class="give-form-header">
13 <div class="give-form-header-top-wrap">
14 <h1 class="give-form-title"><?= $title ?></h1>
15 <p class="give-form-description"><?= $description ?></p>
16 <?php if ($isSecureBadgeEnabled) : ?>
17 <aside class="give-form-secure-badge">
18 <svg class="give-form-secure-icon">
19 <use href="#give-icon-lock"/>
20 </svg>
21 <?= $secureBadgeContent ?>
22 </aside>
23 <?php endif; ?>
24 </div>
25 <?php if ($hasGoal) : ?>
26 <aside class="give-form-stats-panel">
27 <ul class="give-form-stats-panel-list">
28 <li class="give-form-stats-panel-stat">
29 <span class="give-form-stats-panel-stat-number">
30 <?= $goalStats[ 'raised' ]; ?>
31 </span> <?= __('Raised', 'give'); ?>
32 </li>
33 <li class="give-form-stats-panel-stat">
34 <span class="give-form-stats-panel-stat-number">
35 <?= $goalStats[ 'count' ]; ?>
36 </span> <?= $goalStats[ 'countLabel' ]; ?>
37 </li>
38 <li class="give-form-stats-panel-stat">
39 <span class="give-form-stats-panel-stat-number">
40 <?= $goalStats[ 'goal' ]; ?>
41 </span> <?= __('Goal', 'give'); ?>
42 </li>
43 <li class="give-form-goal-progress">
44 <div
45 role="meter"
46 class="give-form-goal-progress-meter"
47 style="--progress: <?= $goalStats[ 'progress' ]; ?>%"
48 aria-label="<?= sprintf(__('%s of %s goal', 'give'), $goalStats[ 'raised' ], $goalStats[ 'goal' ]); ?>"
49 aria-valuemin="0"
50 aria-valuemax="<?= $goalStats[ 'goalRaw' ]; ?>"
51 aria-valuenow="<?= $goalStats[ 'raisedRaw' ]; ?>"
52 aria-valuetext="<?= $goalStats[ 'progress' ]; ?>%"
53 >
54 </div>
55 </li>
56 </ul>
57 </aside>
58 <?php endif; ?>
59 </div>
60