PluginProbe
Easy Bootstrap Shortcode / 4.5
Easy Bootstrap Shortcode v4.5
trunk 2.4.0 2.5 3.4 3.5 3.6 3.7 4.0.0 4.4 4.5 4.5.4 5.0.0 5.0.1 5.0.2
easy-bootstrap-shortcodes / shortcode / progressbar / plugin_shortcode.php

plugin_shortcode.php in Easy Bootstrap Shortcode 4.5, at shortcode/progressbar/plugin_shortcode.php

25 lines 1012 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /* * *********************************************************
4 * BUTTONS
5 * ********************************************************* */
6
7 function osc_theme_progressbar($params, $content = null) {
8 extract(shortcode_atts(array(
9 'value' => '50',
10 'barstyle' => '',
11 'bartype' => '',
12 'class' => '',
13 'label' => ''
14 ), $params));
15 $out = $label != '' ? '<div class="osc_bar_outer"><label class="osc-progressbar-label'.EBS_CONTAINER_CLASS.'">' . $label . '</label>' : '';
16 $out.='<div class="progress ' . $barstyle . ' ' . $class . ' osc-progressbar'.EBS_CONTAINER_CLASS.'">
17 <div class="progress-bar ' . $bartype . EBS_CONTAINER_CLASS.'" role="progressbar" aria-valuenow="' . $value . '" aria-valuemin="0" aria-valuemax="100" style="width: ' . $value . '%">
18 <span class="sr-only'.EBS_CONTAINER_CLASS.'">' . $value . '% Complete</span>
19 </div>
20 </div>';
21 $out .= $label != '' ?'</div>':'';
22 return $out;
23 }
24
25 ebs_backward_compatibility_callback('progressbar', 'osc_theme_progressbar');