# easy-bootstrap-shortcodes/3.6/shortcode/progressbar/plugin_shortcode.php

Easy Bootstrap Shortcode, version 3.6. 25 lines.

- Page: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.6/code/shortcode/progressbar/plugin_shortcode.php
- Raw: https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.6/raw/shortcode/progressbar/plugin_shortcode.php
- Modified: 2013-09-23T14:56:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-bootstrap-shortcodes/3.6/code/shortcode/progressbar/plugin_shortcode.php#L10-L20`.

```php
<?php

/* * *********************************************************
 * BUTTONS
 * ********************************************************* */

function osc_theme_progressbar($params, $content = null) {
    extract(shortcode_atts(array(
                'value' => '50',
                'barstyle' => '',
                'bartype' => '',
                'class' => ''
                    ), $params));
    $out = '<div class="progress ' . $barstyle . ' ' . $class . ' oscitas-progressbar">
  <div class="progress-bar ' . $bartype . '"  role="progressbar" aria-valuenow="' . $value . '" aria-valuemin="0" aria-valuemax="100" style="width: ' . $value . '%">
    <span class="sr-only">' . $value . '% Complete</span>
  </div>
</div>';

    return $out;
}

add_shortcode('progressbar', 'osc_theme_progressbar');


```
