HEX
Server: LiteSpeed
System: Linux da4 4.18.0-553.74.1.lve.el8.x86_64 #1 SMP Tue Sep 9 14:25:24 UTC 2025 x86_64
User: wwwprimemarka (2294)
PHP: 5.6.40
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wwwprimemarka/public_html/wp-content/themes/Zephyr/framework/shortcodes/us_progbar.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Shortcode: us_separator
 *
 * Dev note: if you want to change some of the default values or acceptable attributes, overload the shortcodes config.
 *
 * @var   $shortcode      string Current shortcode name
 * @var   $shortcode_base string The original called shortcode name (differs if called an alias)
 * @var   $content        string Shortcode's inner content
 * @var   $atts           array Shortcode attributes
 *
 * @param $atts           ['title'] string Progress Bar title
 * @param $atts           ['count'] int Pregress Bar length in percents: '0' - '100'
 * @param $atts           ['style'] string Style: '1' / '2' / '3' / '4' / '5'
 * @param $atts           ['size'] string Height
 * @param $atts           ['color'] string Color style: 'primary' / 'secondary' / 'heading' / 'text' / 'custom'
 * @param $atts           ['bar_color'] string
 * @param $atts           ['hide_count'] bool Hide progress value counter?
 */

$atts = us_shortcode_atts( $atts, 'us_progbar' );
$color_css = '';

if ( $atts['color'] == 'custom' ) {
	if ( $atts['bar_color'] != '' ) {
		$color_css .= 'background-color:' . $atts['bar_color'] . ';';
	}
}

$atts['count'] = max( 0, min( 100, $atts['count'] ) );

$el_class = '';
if ( ! empty( $atts['el_class'] ) ) {
	$el_class .= ' ' . $atts['el_class'];
}

if ( $atts['title'] != '' ) {
	$title_tag = '<span class="w-progbar-title-text">' . $atts['title'] . '</span>';
} else {
	$title_tag = '';
	$el_class .= ' title_none';
}

if ( $atts['hide_count'] ) {
	$el_class .= ' hide_count';
}

$bar_inner_css = '';
if ( $atts['size'] != '' ) {
	$bar_inner_css = ' style="height:' . $atts['size'] . '"';
}

$output = '<div class="w-progbar initial style_' . $atts['style'] . ' color_' . $atts['color'] . $el_class . ' initial" data-count="' . $atts['count'] . '">
	<h6 class="w-progbar-title">
		' . $title_tag . '
		<span class="w-progbar-title-count">' . $atts['count'] . '%</span>
	</h6>
	<div class="w-progbar-bar"' . $bar_inner_css . '>
		<div class="w-progbar-bar-h" style="width: ' . $atts['count'] . '%;' . $color_css . '">
			<span class="w-progbar-bar-count">' . $atts['count'] . '%</span>
		</div>
	</div>
</div>';
echo $output;