primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,55 @@
<?php
/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
/**
* Holds helpfull administration related stuff
*
*/
class JemAdmin
{
/**
* Writes footer.
*
*/
static public function footer()
{
}
/**
* Retrieves settings.
*
*/
static public function config()
{
$jemConfig = JemConfig::getInstance();
return $jemConfig->toObject();
}
static public function buildtimeselect($max, $name, $selected, $class = array('class'=>'inputbox'))
{
$timelist = array();
$timelist[0] = HTMLHelper::_('select.option', '', '');
foreach(range(0, $max) as $value) {
if($value >= 10) {
$timelist[] = HTMLHelper::_('select.option', $value, $value);
} else {
$timelist[] = HTMLHelper::_('select.option', '0'.$value, '0'.$value);
}
}
return HTMLHelper::_('select.genericlist', $timelist, $name, $class, 'value', 'text', $selected);
}
}
?>

View File

@ -0,0 +1,30 @@
<?php
/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView;
/**
* JemView class with JEM specific extensions
*
* @package JEM
*/
class JemAdminView extends HtmlView
{
/**
* Display the view
*/
public function display($tpl = null)
{
if (JemSidebarHelper::getEntries()) {
$this->sidebar = JemSidebarHelper::render();
}
parent::display($tpl);
}
}

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>