PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
class
/
elements
/
views
<?php /** * Progress Bar View Class * * @package jeg-elementor-kit * @author Jegtheme * @since 1.0.0 */ namespace Jeg\Elementor_Kit\Elements\Views; /** * Class Progress_Bar_View * * @package Jeg\Elementor_Kit\Elements\Views */ class Progress_Bar_View extends View_Abstract { /** * Build block content */ public function build_content() { $output = null; $progress_bar = null; $title = esc_attr( $this->attribute['sg_progress_title'] ); $percentage = esc_attr( $this->attribute['sg_progress_percentage']['size'] ); $animation_duration = esc_attr( $this->attribute['sg_progress_duration']['size'] ); if ( 'switch' === $this->attribute['sg_progress_style'] ) { $progress_bar = '<div class="content-group"> <div class="skill-bar-content"><span class="skill-title">' . $title . '</span></div> <div class="skill-bar"><div class="skill-track"></div></div> </div> <div class="number-percentage-wrapper"> <span class="number-percentage" data-value="' . $percentage . '" data-animation-duration="' . $animation_duration . '">' . $percentage . '%</span> </div>'; } else { $progress_bar = '<div class="skill-bar-content"><span class="skill-title">' . $title . '</span></div> <div class="skill-bar"> <div class="skill-track"> ' . $this->render_icon() . ' <div class="number-percentage-wrapper"> <span class="number-percentage" data-value="' . $percentage . '" data-animation-duration="' . $animation_duration . '">' . $percentage . '%</span> </div> </div> </div>'; } $output = '<div class="progress-group ' . esc_attr( $this->attribute['sg_progress_style'] ) . '"> <div class="progress-skill-bar">' . $progress_bar . '</div> </div>'; return $this->render_wrapper( 'progress-bar', $output ); } /** * Render Icon */ private function render_icon() { $icon = null; $icon_html = $this->render_icon_element( $this->attribute['sg_progress_icon'] ); if ( 'inner-content' === $this->attribute['sg_progress_style'] && ! empty( $icon_html ) ) { $icon = '<span class="skill-track-icon">' . $icon_html . '</span>'; } return $icon; } }
[-] class-view-abstract.php
[edit]
[-] class-post-terms-view.php
[edit]
[-] class-post-title-view.php
[edit]
[-] class-pie-chart-view.php
[edit]
[-] class-product-carousel-view.php
[edit]
[-] class-image-box-view.php
[edit]
[-] class-animated-text-view.php
[edit]
[-] class-feature-list-view.php
[edit]
[-] class-post-date-view.php
[edit]
[-] class-contact-form-7-view.php
[edit]
[-] class-post-featured-image-view.php
[edit]
[-] class-post-list-view.php
[edit]
[-] class-icon-box-view.php
[edit]
[-] class-post-comment-view.php
[edit]
[-] class-view-woocommerce-abstract.php
[edit]
[-] class-post-content-view.php
[edit]
[-] class-accordion-view.php
[edit]
[+]
..
[-] class-post-block-view.php
[edit]
[-] class-social-share-view.php
[edit]
[-] class-nav-menu-view.php
[edit]
[-] class-mailchimp-view.php
[edit]
[-] class-dual-button-view.php
[edit]
[-] class-client-logo-view.php
[edit]
[-] class-product-categories-view.php
[edit]
[-] class-banner-view.php
[edit]
[-] class-fun-fact-view.php
[edit]
[-] class-portfolio-gallery-view.php
[edit]
[-] class-post-excerpt-view.php
[edit]
[-] class-button-view.php
[edit]
[-] class-product-grid-view.php
[edit]
[-] class-post-author-view.php
[edit]
[-] class-progress-bar-view.php
[edit]
[-] class-video-button-view.php
[edit]
[-] class-gallery-view.php
[edit]
[-] class-tabs-view.php
[edit]
[-] class-countdown-view.php
[edit]
[-] class-team-view.php
[edit]
[-] class-testimonials-view.php
[edit]
[-] class-search-view.php
[edit]
[-] class-heading-view.php
[edit]
[-] class-off-canvas-view.php
[edit]
[-] class-category-list-view.php
[edit]