uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
old
/
.trash
/
charitious
/
inc
/
shortcode
/
xs-funfacts.php
/
/
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) exit; class Xs_Funfacts_Widget extends Widget_Base { public function get_name() { return 'xs-funfacts'; } public function get_title() { return __( 'Charitious Funfacts', 'charitious' ); } public function get_icon() { return 'eicon-slider-push'; } public function get_categories() { return [ 'charitious-elements' ]; } protected function _register_controls() { $this->start_controls_section( 'section_tab', [ 'label' => __('Charitious Funfacts', 'charitious'), ] ); $this->add_control( 'funfacts', [ 'label' => __('Funfact', 'charitious'), 'type' => Controls_Manager::REPEATER, 'separator' => 'before', 'default' => [ [ 'title' => __('Add Title', 'charitious'), 'number_count' => __('Add Number Count', 'charitious'), 'duration' => __('Add Counter Duration', 'charitious'), ], [ 'title' => __('Add Title', 'charitious'), 'number_count' => __('Add Number Count', 'charitious'), 'duration' => __('Add Counter Duration', 'charitious'), ], [ 'title' => __('Add Title', 'charitious'), 'number_count' => __('Add Number Count', 'charitious'), 'duration' => __('Add Counter Duration', 'charitious'), ], ], 'fields' => [ [ 'name' => 'title', 'label' => __('Title', 'charitious'), 'type' => Controls_Manager::TEXT, ], [ 'name' => 'number_count', 'label' => __('Number Count', 'charitious'), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => '200', ], [ 'name' => 'duration', 'label' => __('Duration', 'charitious'), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => '3500', ], ], 'title_field' => '{{{ title }}}', ] ); $this->end_controls_section(); } protected function render( ) { $settings = $this->get_settings(); $funfacts = $settings['funfacts']; if(is_array($funfacts) && !empty($funfacts)): ?> <ul class="xs-funfact-list"> <?php foreach($funfacts as $funfact): ?> <li> <p> <span class="number-percentage-count number-percentage" data-value="<?php echo esc_html( $funfact['number_count'] ); ?>" data-animation-duration="<?php echo esc_html( $funfact['duration'] ); ?>">0</span><sup> + </sup> </p> <span><?php echo esc_html( $funfact['title'] ); ?></span> </li> <?php endforeach; ?> </ul> <?php endif; } protected function _content_template() { } } ?>
/home/batcwwjx/old/.trash/charitious/inc/shortcode/xs-funfacts.php