Your IP : 216.73.216.240
<?php
/**
* @package Helix Framework
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2014 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
//no direct accees
defined ('_JEXEC') or die('resticted aceess');
//[Progressbar]
if(!function_exists('progressbar_sc'))
{
function progressbar_sc($atts, $content='')
{
extract(shortcode_atts(array(
"text"=>'',
"type"=>'',
"striped"=>'',
"active"=>'',
"bar"=>''
), $atts));
$striped = ( $striped === 'yes' ) ? 'progress-striped' : '';
$active = ( $active === 'yes' ) ? 'active' : '';
$output = '<div class="progress progress-' . $type . ' ' . $striped . ' ' . $active . '">';
$output .= '<div class="bar" style="width: ' . $bar . ';">' . do_shortcode( $text ) . '</div>';
$output .= '</div>';
return $output;
}
add_shortcode('progressbar', 'progressbar_sc');
}