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 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,80 @@
<?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\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive');
$canDo = JEMHelperBackend::getActions();
?>
<form action="<?php echo Route::_('index.php?option=com_jem&view=cssmanager'); ?>" method="post" name="adminForm" id="adminForm">
<?php if (isset($this->sidebar)) : ?>
<!-- <div id="j-sidebar-container" class="span2">
<?php //echo $this->sidebar; ?>
</div> -->
<?php endif; ?>
<div id="j-main-container" class="j-main-container">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_JEM_CSSMANAGER_DESCRIPTION_LEGEND');?></legend>
<p><?php echo Text::_('COM_JEM_CSSMANAGER_DESCRIPTION');?></p>
<div class="row">
<div class="col-md-6">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_JEM_CSSMANAGER_FILENAMES');?></legend>
<?php if (!empty($this->files['css'])) : ?>
<ul>
<?php foreach ($this->files['css'] as $file) : ?>
<li>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo Route::_('index.php?option=com_jem&task=source.edit&id='.$file->id);?>">
<?php endif; ?>
<?php echo Text::sprintf('COM_JEM_CSSMANAGER_EDIT_CSS', $file->name);?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div class="col-md-6">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_JEM_CSSMANAGER_FILENAMES_CUSTOM');?></legend>
<?php if (!empty($this->files['custom'])) : ?>
<ul>
<?php foreach ($this->files['custom'] as $file) : ?>
<li>
<?php if ($canDo->get('core.edit')) : ?>
<a href="<?php echo Route::_('index.php?option=com_jem&task=source.edit&id='.$file->id);?>">
<?php endif; ?>
<?php echo Text::sprintf('COM_JEM_CSSMANAGER_EDIT_CSS', $file->name);?>
<?php if ($canDo->get('core.edit')) : ?>
</a>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</fieldset>
<div class="clr"></div>
<input type="hidden" name="task" value="" />
</div>
</div>
</fieldset>
</div>
<?php //if (isset($this->sidebar)) : ?>
<?php //endif; ?>
<?php echo HTMLHelper::_('form.token'); ?>
</form>

View File

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

View File

@ -0,0 +1,66 @@
<?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;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Toolbar\ToolbarHelper;
/**
* View class for the Css-manager screen
*/
class JemViewCssmanager extends JemAdminView
{
protected $files;
public function display($tpl = null)
{
$this->files = $this->get('Files');
$this->statusLinenumber = $this->get('StatusLinenumber');
// Check for errors.
$errors = $this->get('Errors');
if (is_array($errors) && count($errors)) {
Factory::getApplication()->enqueueMessage(implode("\n", $errors), 'error');
return false;
}
$app = Factory::getApplication();
// initialise variables
$this->document = $app->getDocument();
$user = JemFactory::getUser();
// Load css
// HTMLHelper::_('stylesheet', 'com_jem/backend.css', array(), true);
$wa = $app->getDocument()->getWebAssetManager();
$wa->registerStyle('jem.backend', 'com_jem/backend.css')->useStyle('jem.backend');
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
*/
protected function addToolbar()
{
ToolbarHelper::title(Text::_('COM_JEM_CSSMANAGER_TITLE'), 'thememanager');
// ToolbarHelper::back();
ToolbarHelper::custom('cssmanager.back', 'back', 'back', Text::_('COM_JEM_ATT_BACK'), false);
ToolbarHelper::divider();
ToolbarHelper::inlinehelp();
ToolBarHelper::help('editcss', true, 'https://www.joomlaeventmanager.net/documentation/manual/backend/control-panel/css-manager');
}
}