Default progress bar.
<?php
$progress = new Barebone\Bootstrap\Progress(60);
echo $progress;
<div class="progress"> <div class="progress-bar" style="width:60%" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"> <span class="sr-only">60% Complete</span> </div> </div>
$progress->show_label();
Removes the .sr-only class from within the progress bar to show a visible percentage.
<?php
$progress2 = new Barebone\Bootstrap\Progress(80, 0, 100);
echo $progress2->show_label();
<div class="progress"> <div class="progress-bar" style="width:80%" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"> <span>80% Complete</span> </div> </div>
Progress bars use some of the same button and alert classes for consistent styles.
<?php
$progress2 = new Barebone\Bootstrap\Progress(20, 0, 100, 'success');
echo $progress2->show_label();
$progress2 = new Barebone\Bootstrap\Progress(40, 0, 100, 'Warning');
echo $progress2->show_label();
$progress2 = new Barebone\Bootstrap\Progress(60, 0, 100, 'Danger');
echo $progress2->show_label();
$progress2 = new Barebone\Bootstrap\Progress(80, 0, 100, 'Info');
echo $progress2->show_label();
Uses a gradient to create a striped effect. Not available in IE8.
<?php
$progress = new Barebone\Bootstrap\Progress(20, 0, 100, 'success');
echo $progress->striped();
$progress = new Barebone\Bootstrap\Progress(40, 0, 100, 'warning');
echo $progress->striped();
$progress = new Barebone\Bootstrap\Progress(60, 0, 100, 'danger');
echo $progress->striped();
$progress = new Barebone\Bootstrap\Progress(80, 0, 100, 'info');
echo $progress->striped()->show_label(); // with label mixed
Adds .active to .progress-striped to animate the stripes right to left. Not available in IE9 and below.
<?php
$progress = new Barebone\Bootstrap\Progress(20, 0, 100, 'success');
echo $progress->animated();
$progress = new Barebone\Bootstrap\Progress(40, 0, 100, 'warning');
echo $progress->animated();
$progress = new Barebone\Bootstrap\Progress(60, 0, 100, 'danger');
echo $progress->animated();
$progress = new Barebone\Bootstrap\Progress(80, 0, 100, 'info');
echo $progress->animated()->show_label(); // with label mixed