' . (!empty($font_size) ? 'font-size: ' . $font_size . ';' : '') . '
			' . (!empty($height) ? 'line-height: ' . $height . ';' : '') . '
			' . (!empty($color) ? 'background-color: ' . $color . ';' : '') . '
		}

		.' . $rnd . ' .progress-bar-value{
			' . (!empty($color) ? 'background-color: ' . $color . ';' : '') . '
			' . (!empty($label_color) ? 'color: ' . $label_color . ';' : '') . '
		}

		.' . $rnd . ' .progress-bar-value:after{
			' . (!empty($color) ? 'border-color: ' . $color . ' transparent;' : '') . '
		}
	</style>
	';
    return boston_shortcode_style($style_css) . '
	<div class="progress ' . $rnd . '">
	  <div class="progress-bar ' . $style . '" style="width: ' . esc_attr($value) . '%" role="progressbar" aria-valuenow="' . $value . '" aria-valuemin="0" aria-valuemax="100">
	  		<div class="progress-bar-value">' . $value . '%</div>
	  		' . (!empty($icon) ? '<i class="fa fa-' . $icon . '"></i>' : '') . '' . $label . '
	  </div>
	</div>';
}
add_shortcode('progressbar', 'boston_progressbar_func');
function boston_progressbar_params()
{
    return array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Label", "boston"), "param_name" => "label", "value" => '', "description" => __("Input progress bar label.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Label Font Size", "boston"), "param_name" => "font_size", "value" => '', "description" => __("Input label font size.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Value", "boston"), "param_name" => "value", "value" => '', "description" => __("Input progress bar value. Input number only unit is in percentage.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Color", "boston"), "param_name" => "color", "value" => '', "description" => __("Select progress bar color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Background Color", "boston"), "param_name" => "bgcolor", "value" => '', "description" => __("Select progress bar background color.", "boston")), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => __("Progress Bar Label Color", "boston"), "param_name" => "label_color", "value" => '', "description" => __("Select progress bar label color.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Progress Bar Height", "boston"), "param_name" => "height", "value" => '', "description" => __("Input progress bar height.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Progress Bar Label Icon", "boston"), "param_name" => "icon", "value" => boston_awesome_icons_list(), "description" => __("Select icon for the label.", "boston")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Progress Bar Border Radius", "boston"), "param_name" => "border_radius", "value" => '', "description" => __("Input progress bar border radius.", "boston")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Progress Bar Style", "boston"), "param_name" => "style", "value" => array(__('Normal', 'boston') => '', __('Stripes', 'boston') => 'progress-bar-striped', __('Active Stripes', 'boston') => 'progress-bar-striped active'), "description" => __("Select progress bar style.", "boston")));
}
if (function_exists('vc_map')) {
    vc_map(array("name" => __("Progress Bar", 'boston'), "base" => "progressbar", "category" => __('Content', 'boston'), "params" => boston_progressbar_params()));
}
 function progress_bar()
 {
     $fields = $this->render_options(boston_progressbar_params());
 }