PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
templates
/
elements
<?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 * * @param $title string Progress Bar title * @param $count int Progress Bar length in percents: '0' - '100' * @param $style string Style: '1' / '2' / '3' / '4' / '5' * @param $size string Height * @param $color string Color style: 'primary' / 'secondary' / 'heading' / 'text' / 'custom' * @param $bar_color string * @param $hide_count bool Hide progress value counter? */ $classes = ''; $classes .= ' style_' . $style; $classes .= ' color_' . $color; if ( $hide_count ) { $classes .= ' hide_count'; } if ( ! empty( $css ) AND function_exists( 'vc_shortcode_custom_css_class' ) ) { $classes .= ' ' . vc_shortcode_custom_css_class( $css ); } $classes .= ( ! empty( $el_class ) ) ? ( ' ' . $el_class ) : ''; $el_id = ( ! empty( $el_id ) ) ? ( ' id="' . esc_attr( $el_id ) . '"' ) : ''; if ( $title != '' ) { $title_tag = '<span class="w-progbar-title-text">' . $title . '</span>'; } else { $title_tag = ''; $classes .= ' title_none'; } $count = max( 0, min( 100, $count ) ); $bar_inline_css = us_prepare_inline_css( array( 'height' => $size, 'width' => $count . '%', 'background' => $bar_color, ) ); // Output the element $output = '<div class="w-progbar' . $classes . ' initial"' . $el_id . ' data-count="' . $count . '">'; $output .= '<h6 class="w-progbar-title">'; $output .= $title_tag; $output .= '<span class="w-progbar-title-count">' . $count . '%</span>'; $output .= '</h6>'; $output .= '<div class="w-progbar-bar"><div class="w-progbar-bar-h"' . $bar_inline_css . '>'; $output .= '<span class="w-progbar-bar-count">' . $count . '%</span>'; $output .= '</div></div></div>'; // If we are in front end editor mode, apply JS to logos if ( function_exists( 'vc_is_page_editable' ) AND vc_is_page_editable() ) { $output .= '<script> jQuery(function($){ if (typeof $.fn.wProgbar === "function") { jQuery(".w-progbar").wProgbar(); } }); </script>'; } echo $output;
[+]
..
[-] person.php
[edit]
[-] separator.php
[edit]
[-] post_custom_field.php
[edit]
[-] post_image.php
[edit]
[-] page_block.php
[edit]
[-] image_slider.php
[edit]
[-] cform.php
[edit]
[-] progbar.php
[edit]
[-] btn.php
[edit]
[-] product_field.php
[edit]
[-] socials.php
[edit]
[-] cta.php
[edit]
[-] message.php
[edit]
[-] vc_wp_custommenu.php
[edit]
[-] contacts.php
[edit]
[-] post_taxonomy.php
[edit]
[-] flipbox.php
[edit]
[-] grid.php
[edit]
[-] post_comments.php
[edit]
[-] gallery.php
[edit]
[-] sharing.php
[edit]
[-] post_date.php
[edit]
[-] product_ordering.php
[edit]
[-] post_navigation.php
[edit]
[-] add_to_cart.php
[edit]
[-] product_gallery.php
[edit]
[-] gmaps.php
[edit]
[-] vc_tta_tabs.php
[edit]
[-] breadcrumbs.php
[edit]
[-] page_title.php
[edit]
[-] counter.php
[edit]
[-] vc_video.php
[edit]
[-] cart.php
[edit]
[-] post_content.php
[edit]
[-] image.php
[edit]
[-] vc_row_inner.php
[edit]
[-] dropdown.php
[edit]
[-] iconbox.php
[edit]
[-] vc_column.php
[edit]
[-] post_title.php
[edit]
[-] hwrapper.php
[edit]
[-] .elements.php
[edit]
[-] vc_column_text.php
[edit]
[-] additional_menu.php
[edit]
[-] vc_tta_section.php
[edit]
[-] popup.php
[edit]
[-] scroller.php
[edit]
[-] menu.php
[edit]
[-] pricing.php
[edit]
[-] search.php
[edit]
[-] text.php
[edit]
[-] post_author.php
[edit]
[-] vc_row.php
[edit]
[-] itext.php
[edit]
[-] html.php
[edit]