HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/retoti4c1e1s/www/izzlongevity.com/wp-content/plugins/noile-addon/includes/Widgets/Counter.php
<?php

namespace Layerdrops\Noile\Widgets;


class Counter extends \Elementor\Widget_Base
{
    public function get_name()
    {
        return 'noile-counter';
    }

    public function get_title()
    {
        return __('Counter', 'noile-addon');
    }

    public function get_icon()
    {
        return 'eicon-cogs';
    }

    public function get_categories()
    {
        return ['noile-category'];
    }

    protected function register_controls()
    {

        $this->start_controls_section(
            'layout_section',
            [
                'label' => __('Layout', 'noile-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
            ]
        );

        $this->add_control(
            'layout_type',
            [
                'label' => __('Select Layout', 'noile-addon'),
                'type' => \Elementor\Controls_Manager::SELECT2,
                'default' => 'layout_one',
                'options' => [
                    'layout_one' => __('Layout One', 'noile-addon'),
                    'layout_two' => __('Layout Two', 'noile-addon'),
                    // 'layout_three' => __('Layout Three', 'noile-addon'),
                ]
            ]
        );

        $this->end_controls_section();

        include noile_get_elementor_option('counter-one-option.php');
        include noile_get_elementor_option('counter-two-option.php');

        //General style
        $this->start_controls_section(
            'general_style',
            [
                'label' => esc_html__('Content Style', 'noile-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_STYLE,
            ]
        );

        noile_elementor_general_style_options($this, 'Section Title', '{{WRAPPER}} .section-title__title', ['layout_two']);
        noile_elementor_general_style_options($this, 'Section Sub Title', '{{WRAPPER}} .section-title__tagline', ['layout_two']);

        noile_elementor_general_style_options($this, 'Title', '{{WRAPPER}} .fact-one__item__title,{{WRAPPER}} .fact-two__item__title', ['layout_one', 'layout_two']);
        noile_elementor_general_style_options($this, 'Number', '{{WRAPPER}} .fact-one__item__count,{{WRAPPER}} .fact-two__item__count', ['layout_one', 'layout_two']);
        noile_elementor_general_style_options($this, 'Symbol', '{{WRAPPER}} .fact-one__item__icon span', ['layout_one']);

        $this->end_controls_section();
    }

    protected function render()
    {
        $settings = $this->get_settings_for_display();
        include noile_get_template('counter-one.php');
        include noile_get_template('counter-two.php');
        // include noile_get_template('counter-three.php');
    }
}