| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/administrator/components/com_jlexreview/models/fields/ |
Upload File : |
<?php
/**
* @package JLex Review
* @version 4.2.3
* @copyright Copyright (c) 2013-2018 JLexArt. All rights reserved
* @license GNU General Public License version 2 or later;
* @author www.jlexart.com
*/
defined('_JEXEC') or die;
use \Joomla\Filesystem\Folder;
class JFormFieldJTheme extends JFormField
{
/**
* The form field type.
*
* @var string
* @since 1.6
*/
public $type = 'JTheme';
/**
* Method to get the user field input markup.
*
* @return string The field input markup.
*
* @since 1.6
*/
protected function getInput()
{
$path = JPATH_SITE."/components/com_jlexreview/templates";
if(!is_dir($path)){
return '<span style="color:red">No theme found.</span>';
}
$folders = Folder::folders( $path );
$themes = array ();
if(count($folders)>0)
{
foreach ( $folders as $f ) {
$themes[] = JHTML::_("select.option", $f, ucfirst ($f));
}
} else {
return '<span style="color:red">No theme found.</span>';
}
$html = JHtml::_('select.genericlist',
$themes ,
$this->name,
' class="input-medium custom-select" ',
'value', 'text',
$this->value);
return $html;
}
}