<?php if (!defined('WORDFENCE_VERSION')) { exit; } /** * Expects $id, $diameter (in pixels), $percentage (as decimal value), $inactiveColor, and $activeColor to be defined. * $animateIn is optional and defaults to true. * $strokeWidth is option and defaults to 3 (pixels). * * @var string $id */ if (!isset($animateIn)) { $animateIn = true; } if (!isset($strokeWidth)) { $strokeWidth = 3; } $strokeWidth = intval($strokeWidth); $diameter = intval($diameter); ?> <div id="<?php echo esc_attr($id); ?>" class="wf-status-circular"></div> <script type="application/javascript"> (function($) { $('#<?php echo esc_attr($id); ?>').wfCircularProgress({ endPercent: <?php echo $percentage; ?>, color: '<?php echo esc_attr($activeColor); ?>', inactiveColor: '<?php echo esc_attr($inactiveColor); ?>', strokeWidth: <?php echo $strokeWidth; ?>, diameter: <?php echo $diameter; ?>, }); })(jQuery); </script>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
block-navigation-option.php | File | 1.44 KB | 0644 |
|
indeterminate-progress.php | File | 2.8 KB | 0644 |
|
license.php | File | 3.38 KB | 0644 |
|
modal-prompt.php | File | 3.29 KB | 0644 |
|
page-fixed-tabbar.php | File | 1.63 KB | 0644 |
|
page-help.php | File | 382 B | 0644 |
|
page-tabbar.php | File | 785 B | 0644 |
|
page-title.php | File | 2.08 KB | 0644 |
|
section-subtitle.php | File | 1.31 KB | 0644 |
|
section-title.php | File | 1.3 KB | 0644 |
|
status-circular.php | File | 927 B | 0644 |
|
status-critical.php | File | 1.68 KB | 0644 |
|
status-detail.php | File | 1.7 KB | 0644 |
|
status-tooltip.php | File | 1.89 KB | 0644 |
|
status-warning.php | File | 1.65 KB | 0644 |
|
unsubscribe.php | File | 4.01 KB | 0644 |
|