????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/cwd/wp-content/plugins/cherry-plugin-x/includes/shortcodes/ |
Upload File : |
<?php /** * Progressbar * */ if (!function_exists('shortcode_progressbar')) { function shortcode_progressbar( $atts, $content = null, $shortcodename = '' ) { extract(shortcode_atts( array( 'value' => '50', 'type' => '', 'grad_type' => '', 'animated' => '', 'custom_class' => '' ), $atts)); // check what type user selected switch ($type) { case 'info': $bar_type = 'progress-info'; break; case 'success': $bar_type = 'progress-success'; break; case 'warning': $bar_type = 'progress-warning'; break; case 'danger': $bar_type = 'progress-danger'; break; } // check what gradient type user selected switch ($grad_type) { case 'vertical': $g_type = ''; break; case 'striped': $g_type = 'progress-striped'; break; } // animated: yes or no switch ($animated) { case 'no': $bar_animated = ''; break; case 'yes': $bar_animated = 'active'; break; } $output = '<div class="progress '. $bar_type .' '. $bar_animated .' '. $g_type .' '.$custom_class.'">'; $output .= '<div class="bar" style="width: '. $value .'%;"></div>'; $output .= '</div><!-- .progressbar (end) -->'; $output = apply_filters( 'cherry_plugin_shortcode_output', $output, $atts, $shortcodename ); return $output; } add_shortcode('progressbar', 'shortcode_progressbar'); }?>