primo commit
This commit is contained in:
55
administrator/components/com_jem/classes/admin.class.php
Normal file
55
administrator/components/com_jem/classes/admin.class.php
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
1
administrator/components/com_jem/classes/index.html
Normal file
1
administrator/components/com_jem/classes/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
Reference in New Issue
Block a user