PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.1
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 / Sequoia / sections / progress-bar.php

progress-bar.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.1, at src/Views/Form/Templates/Sequoia/sections/progress-bar.php

25 lines 772 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @var int $formId
5 */
6 if ($form->has_goal()) : ?>
7 <?php
8 $color = give_get_meta($formId, '_give_goal_color', true);
9 $goalStats = give_goal_progress_stats($formId);
10
11 $style = "width:{$goalStats['progress']}%;";
12 if ( ! empty($color)) {
13 $style .= ";background: linear-gradient(180deg, {$color} 0%, {$color} 100%), linear-gradient(180deg, #fff 0%, #ccc 100%); background-blend-mode: multiply;";
14 }
15 ?>
16 <div class="progress-bar">
17 <div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php
18 echo $goalStats['progress']; ?>">
19 <span style="<?php
20 echo $style; ?>"></span>
21 </div><!-- /.give-progress-bar -->
22 </div>
23 <?php
24 endif; ?>
25