NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/libraries/regularlabs/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/libraries/regularlabs/fields/icons.php
<?php
/**
 * @package         Regular Labs Library
 * @version         23.9.3039
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2023 Regular Labs All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text as JText;
use RegularLabs\Library\Field;

if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php'))
{
    return;
}

require_once JPATH_LIBRARIES . '/regularlabs/autoload.php';

class JFormFieldRL_Icons extends Field
{
    public $type = 'Icons';

    protected function getInput()
    {
        $value = $this->value;

        if ( ! is_array($value))
        {
            $value = explode(',', $value);
        }

        $classes = [
            'reglab icon-contenttemplater',
            'home',
            'user',
            'locked',
            'comments',
            'comments-2',
            'out',
            'plus',
            'pencil',
            'pencil-2',
            'file',
            'file-add',
            'file-remove',
            'copy',
            'folder',
            'folder-2',
            'picture',
            'pictures',
            'list-view',
            'power-cord',
            'cube',
            'puzzle',
            'flag',
            'tools',
            'cogs',
            'cog',
            'equalizer',
            'wrench',
            'brush',
            'eye',
            'star',
            'calendar',
            'calendar-2',
            'help',
            'support',
            'warning',
            'checkmark',
            'mail',
            'mail-2',
            'drawer',
            'drawer-2',
            'box-add',
            'box-remove',
            'search',
            'filter',
            'camera',
            'play',
            'music',
            'grid-view',
            'grid-view-2',
            'menu',
            'thumbs-up',
            'thumbs-down',
            'plus-2',
            'minus-2',
            'key',
            'quote',
            'quote-2',
            'database',
            'location',
            'zoom-in',
            'zoom-out',
            'health',
            'wand',
            'refresh',
            'vcard',
            'clock',
            'compass',
            'address',
            'feed',
            'flag-2',
            'pin',
            'lamp',
            'chart',
            'bars',
            'pie',
            'dashboard',
            'lightning',
            'move',
            'printer',
            'color-palette',
            'camera-2',
            'cart',
            'basket',
            'broadcast',
            'screen',
            'tablet',
            'mobile',
            'users',
            'briefcase',
            'download',
            'upload',
            'bookmark',
            'out-2',
        ];

        $html = [];

        if ($this->get('show_none'))
        {
            $checked = (in_array('0', $value) ? ' checked="checked"' : '');
            $html[]  = '<fieldset>';
            $html[]  = '<input type="radio" id="' . $this->id . '0" name="' . $this->name . '"' . ' value="0"' . $checked . '>';
            $html[]  = '<label for="' . $this->id . '0">' . JText::_('RL_NO_ICON') . '</label>';
            $html[]  = '</fieldset>';
        }

        foreach ($classes as $i => $class)
        {
            $id      = str_replace(' ', '_', $this->id . $class);
            $checked = (in_array($class, $value) ? ' checked="checked"' : '');

            $html[] = '<fieldset class="pull-left">';
            $html[] = '<input type="radio" id="' . $id . '" name="' . $this->name . '"'
                . ' value="' . htmlspecialchars($class, ENT_COMPAT, 'UTF-8') . '"' . $checked . '>';
            $html[] = '<label for="' . $id . '" class="btn btn-small hasTip" title="' . $class . '"><span class="icon-' . $class . '"></span></label>';
            $html[] = '</fieldset>';
        }

        return '<div id="' . $this->id . '" class="btn-group radio rl_icon_group">' . implode('', $html) . '</div>';
    }
}

NexusLeads