primo commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
497
administrator/components/com_jem/views/settings/tmpl/default.php
Normal file
497
administrator/components/com_jem/views/settings/tmpl/default.php
Normal file
@ -0,0 +1,497 @@
|
||||
<?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
|
||||
*
|
||||
* * @todo: move js to a file
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
$wa = $this->document->getWebAssetManager();
|
||||
$wa
|
||||
->useScript('keepalive')
|
||||
->useStyle('jem.colorpicker')
|
||||
->useScript('inlinehelp')
|
||||
->useScript('form.validate');
|
||||
?>
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function($){
|
||||
$('#jform_showcity0').bind('click', cityon);
|
||||
$('#jform_showcity1').bind('click', cityoff);
|
||||
|
||||
if($('#jform_showcity0').checked) {
|
||||
cityon();
|
||||
}
|
||||
|
||||
$('#jform_showatte0').bind('click', atteon);
|
||||
$('#jform_showatte1').bind('click', atteoff);
|
||||
|
||||
if($('#jform_showatte0').checked) {
|
||||
atteon();
|
||||
}
|
||||
|
||||
$('#jform_showtitle0').bind('click', titleon);
|
||||
$('#jform_showtitle1').bind('click', titleoff);
|
||||
|
||||
if(document.getElementById('jform_showtitle0').checked) {
|
||||
titleon();
|
||||
}
|
||||
|
||||
$('#jform_showlocate0').bind('click', locon);
|
||||
$('#jform_showlocate1').bind('click', locoff);
|
||||
|
||||
if(document.getElementById('jform_showlocate0').checked) {
|
||||
locon();
|
||||
}
|
||||
|
||||
$('#jform_showstate0').bind('click', stateon);
|
||||
$('#jform_showstate1').bind('click', stateoff);
|
||||
|
||||
if(document.getElementById('jform_showstate0').checked) {
|
||||
stateon();
|
||||
}
|
||||
|
||||
$('#jform_showcat0').bind('click', caton);
|
||||
$('#jform_showcat1').bind('click', catoff);
|
||||
|
||||
if(document.getElementById('jform_showcat0').checked) {
|
||||
caton();
|
||||
}
|
||||
|
||||
$('#jform_showeventimage0').bind('click', evimageon);
|
||||
$('#jform_showeventimage1').bind('click', evimageoff);
|
||||
|
||||
if(document.getElementById('jform_showeventimage0').checked) {
|
||||
evimageon();
|
||||
}
|
||||
|
||||
$('#jform_gddisabled0').bind('click', lbon);
|
||||
$('#jform_gddisabled1').bind('click', lboff);
|
||||
|
||||
if(document.getElementById('jform_gddisabled0').checked) {
|
||||
lbon();
|
||||
}
|
||||
|
||||
$("#jform_globalattribs_event_show_mapserv").bind('change', testmap);
|
||||
|
||||
var mapserv = document.getElementById("jform_globalattribs_event_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
eventmapon();
|
||||
} else {
|
||||
eventmapoff();
|
||||
}
|
||||
|
||||
|
||||
$("#jform_globalattribs_global_show_mapserv").bind('change', testmap);
|
||||
|
||||
var mapserv = document.getElementById("jform_globalattribs_global_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
globalmapon();
|
||||
} else {
|
||||
globalmapoff();
|
||||
}
|
||||
|
||||
$("#jform_oldevent").bind('change', testevhandler);
|
||||
|
||||
var evhandler = document.getElementById("jform_oldevent");
|
||||
var nrevhandler = evhandler.options[evhandler.selectedIndex].value;
|
||||
|
||||
if (nrevhandler > 0) {
|
||||
evhandleron();
|
||||
} else {
|
||||
evhandleroff();
|
||||
}
|
||||
|
||||
$('#jform_globalattribs_event_comunsolution').bind('change', testcomm);
|
||||
|
||||
var commhandler = document.getElementById("jform_globalattribs_event_comunsolution");
|
||||
var nrcommhandler = commhandler.options[commhandler.selectedIndex].value;
|
||||
|
||||
if (nrcommhandler == 1) {
|
||||
common();
|
||||
} else {
|
||||
commoff();
|
||||
}
|
||||
|
||||
var ObjArray = $('input.colorpicker').get('id').sort();
|
||||
|
||||
var arrayLength = ObjArray.length;
|
||||
for (var i = 0; i < arrayLength; i++) {
|
||||
var Obj = $(ObjArray[i]);
|
||||
var color = testcolor(Obj.value);
|
||||
if (color) {
|
||||
Obj.style.color = color;
|
||||
}
|
||||
}
|
||||
|
||||
$("#jform_showfroregistra").bind('change', testregistra);
|
||||
|
||||
var registra = document.getElementById("jform_showfroregistra");
|
||||
var nrregistra = registra.options[registra.selectedIndex].value;
|
||||
|
||||
if (nrregistra >= 1) {
|
||||
registraon();
|
||||
} else {
|
||||
registraoff();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function testcolor(color) {
|
||||
if(color.length==7)
|
||||
{
|
||||
color=color.substring(1);
|
||||
}
|
||||
var R = parseInt(color.substring(0,2),16);
|
||||
var G = parseInt(color.substring(2,4),16);
|
||||
var B = parseInt(color.substring(4,6),16);
|
||||
var x = Math.sqrt(R * R * .299 + G * G * .587 + B * B * .114);
|
||||
|
||||
var sColorText = x < 130 ? '#FFFFFF' : '#000000';
|
||||
|
||||
return sColorText;
|
||||
}
|
||||
|
||||
function testcomm()
|
||||
{
|
||||
var commhandler = document.getElementById("jform_globalattribs_event_comunsolution");
|
||||
var nrcommhandler = commhandler.options[commhandler.selectedIndex].value;
|
||||
|
||||
if (nrcommhandler == 1) {
|
||||
common();
|
||||
} else {
|
||||
commoff();
|
||||
}
|
||||
}
|
||||
|
||||
function testmap()
|
||||
{
|
||||
var mapserv = document.getElementById("jform_globalattribs_event_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
eventmapon();
|
||||
} else {
|
||||
eventmapoff();
|
||||
}
|
||||
|
||||
var mapserv2 = document.getElementById("jform_globalattribs_global_show_mapserv");
|
||||
var nrmapserv2 = mapserv2.options[mapserv2.selectedIndex].value;
|
||||
|
||||
if (nrmapserv2 == 1 || nrmapserv2 == 2) {
|
||||
globalmapon();
|
||||
} else {
|
||||
globalmapoff();
|
||||
}
|
||||
}
|
||||
|
||||
function testevhandler()
|
||||
{
|
||||
var evhandler = document.getElementById("jform_oldevent");
|
||||
var nrevhandler = evhandler.options[evhandler.selectedIndex].value;
|
||||
|
||||
if (nrevhandler > 0) {
|
||||
evhandleron();
|
||||
} else {
|
||||
evhandleroff();
|
||||
}
|
||||
}
|
||||
|
||||
function testregistra()
|
||||
{
|
||||
var registra = document.getElementById("jform_showfroregistra");
|
||||
var nrregistra = registra.options[registra.selectedIndex].value;
|
||||
|
||||
if (nrregistra >= 1) {
|
||||
registraon();
|
||||
} else {
|
||||
registraoff();
|
||||
}
|
||||
}
|
||||
|
||||
function cityon()
|
||||
{
|
||||
document.getElementById('city1').style.display = '';
|
||||
}
|
||||
|
||||
function cityoff()
|
||||
{
|
||||
var citywidth = document.getElementById('jform_citywidth');
|
||||
document.getElementById('city1').style.display = 'none';
|
||||
citywidth.value='';
|
||||
}
|
||||
|
||||
function atteon()
|
||||
{
|
||||
document.getElementById('atte1').style.display = '';
|
||||
}
|
||||
|
||||
function atteoff()
|
||||
{
|
||||
var attewidth = document.getElementById('jform_attewidth');
|
||||
document.getElementById('atte1').style.display = 'none';
|
||||
attewidth.value='';
|
||||
}
|
||||
|
||||
function titleon()
|
||||
{
|
||||
document.getElementById('title1').style.display = '';
|
||||
}
|
||||
|
||||
function titleoff()
|
||||
{
|
||||
var titlewidth = document.getElementById('jform_titlewidth');
|
||||
document.getElementById('title1').style.display = 'none';
|
||||
titlewidth.value='';
|
||||
}
|
||||
|
||||
function locon()
|
||||
{
|
||||
document.getElementById('loc1').style.display = '';
|
||||
document.getElementById('loc2').style.display = '';
|
||||
}
|
||||
|
||||
function locoff()
|
||||
{
|
||||
var locatewidth = document.getElementById('jform_locationwidth');
|
||||
document.getElementById('loc1').style.display = 'none';
|
||||
locatewidth.value='';
|
||||
document.getElementById('loc2').style.display = 'none';
|
||||
}
|
||||
|
||||
function stateon()
|
||||
{
|
||||
document.getElementById('state1').style.display = '';
|
||||
}
|
||||
|
||||
function stateoff()
|
||||
{
|
||||
var statewidth = document.getElementById('jform_statewidth');
|
||||
document.getElementById('state1').style.display = 'none';
|
||||
statewidth.value='';
|
||||
}
|
||||
|
||||
function caton()
|
||||
{
|
||||
document.getElementById('cat1').style.display = '';
|
||||
document.getElementById('cat2').style.display = '';
|
||||
}
|
||||
|
||||
function catoff()
|
||||
{
|
||||
var catwidth = document.getElementById('jform_catfrowidth');
|
||||
document.getElementById('cat1').style.display = 'none';
|
||||
catwidth.value='';
|
||||
document.getElementById('cat2').style.display = 'none';
|
||||
}
|
||||
|
||||
function evimageon()
|
||||
{
|
||||
document.getElementById('evimage1').style.display = '';
|
||||
}
|
||||
|
||||
function evimageoff()
|
||||
{
|
||||
var evimagewidth = document.getElementById('jform_tableeventimagewidth');
|
||||
document.getElementById('evimage1').style.display = 'none';
|
||||
evimagewidth.value='';
|
||||
}
|
||||
|
||||
function lbon()
|
||||
{
|
||||
document.getElementById('lb1').style.display = '';
|
||||
}
|
||||
|
||||
function lboff()
|
||||
{
|
||||
document.getElementById('lb1').style.display = 'none';
|
||||
}
|
||||
|
||||
function eventmapon()
|
||||
{
|
||||
document.getElementById('eventmap1').style.display = '';
|
||||
document.getElementById('eventmap2').style.display = '';
|
||||
}
|
||||
|
||||
function eventmapoff()
|
||||
{
|
||||
document.getElementById('eventmap1').style.display = 'none';
|
||||
document.getElementById('eventmap2').style.display = 'none';
|
||||
document.getElementById('jform_globalattribs_event_tld').value = '';
|
||||
document.getElementById('jform_globalattribs_event_lg').value = '';
|
||||
}
|
||||
|
||||
function globalmapon()
|
||||
{
|
||||
document.getElementById('globalmap1').style.display = '';
|
||||
document.getElementById('globalmap2').style.display = '';
|
||||
}
|
||||
|
||||
function globalmapoff()
|
||||
{
|
||||
document.getElementById('globalmap1').style.display = 'none';
|
||||
document.getElementById('globalmap2').style.display = 'none';
|
||||
document.getElementById('jform_globalattribs_global_tld').value = '';
|
||||
document.getElementById('jform_globalattribs_global_lg').value = '';
|
||||
}
|
||||
|
||||
|
||||
function evhandleron()
|
||||
{
|
||||
document.getElementById('evhandler1').style.display = '';
|
||||
}
|
||||
|
||||
function evhandleroff()
|
||||
{
|
||||
document.getElementById('evhandler1').style.display = 'none';
|
||||
}
|
||||
|
||||
function common()
|
||||
{
|
||||
document.getElementById('comm1').style.display = '';
|
||||
}
|
||||
|
||||
function commoff()
|
||||
{
|
||||
document.getElementById('comm1').style.display = 'none';
|
||||
}
|
||||
|
||||
function registraon()
|
||||
{
|
||||
document.getElementById('froreg1').style.display = '';
|
||||
document.getElementById('froreg2').style.display = '';
|
||||
}
|
||||
|
||||
function registraoff()
|
||||
{Route
|
||||
document.getElementById('froreg1').style.display = 'none';
|
||||
document.getElementById('froreg2').style.display = 'none';
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
function updateLightboxVisibility() {
|
||||
if ($('input[name="jform[gddisabled]"]:checked').val() === '0') {
|
||||
$('input[name="jform[lightbox]"]').val(['0']);
|
||||
$('#jform_lightbox, #jform_lightbox-lbl').css('display', 'none');
|
||||
} else {
|
||||
$('#jform_lightbox, #jform_lightbox-lbl').css('display', '');
|
||||
}
|
||||
}
|
||||
|
||||
updateLightboxVisibility();
|
||||
|
||||
$('input[name="jform[gddisabled]"]').on('change', function() {
|
||||
updateLightboxVisibility();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'settings.cancel' || document.formvalidator.isValid(document.getElementById('settings-form'))) {
|
||||
Joomla.submitform(task, document.getElementById('settings-form'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_jem&view=settings'); ?>" method="post" id="settings-form" name="adminForm" class="form-validate">
|
||||
|
||||
<div id="j-main-container" class="j-main-container">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php echo HTMLHelper::_('uitab.startTabSet', 'settings-pane', ['active' => 'settings-basic', 'recall' => true, 'breakpoint' => 768]); ?>
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'settings-pane', 'settings-basic', Text::_('COM_JEM_BASIC_SETTINGS')); ?>
|
||||
<fieldset class="adminform">
|
||||
|
||||
<div class="w-50 fltlft">
|
||||
<?php echo $this->loadTemplate('basicdisplay'); ?>
|
||||
<?php echo $this->loadTemplate('basiclayout'); ?>
|
||||
<?php echo $this->loadTemplate('basiceventhandling'); ?>
|
||||
</div>
|
||||
<div class="w-50 fltrt">
|
||||
<?php echo $this->loadTemplate('basicimagehandling'); ?>
|
||||
<?php echo $this->loadTemplate('basicmetahandling'); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab','settings-pane', 'settings-pane-2', Text::_('COM_JEM_EVENT_PAGE')); ?>
|
||||
<fieldset class="adminform">
|
||||
<div class="width-50 fltlft">
|
||||
<?php echo $this->loadTemplate('evevents'); ?>
|
||||
</div>
|
||||
<div class="width-50 fltrt">
|
||||
<?php echo $this->loadTemplate('evvenues'); ?>
|
||||
<?php echo $this->loadTemplate('evregistration'); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'settings-pane', 'layout', Text::_('COM_JEM_LAYOUT')); ?>
|
||||
<fieldset class="adminform">
|
||||
<?php echo $this->loadTemplate('layout'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'settings-pane', 'parameters', Text::_('COM_JEM_GLOBAL_PARAMETERS')); ?>
|
||||
<fieldset class="adminform">
|
||||
<?php echo $this->loadTemplate('parameters'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'settings-pane', 'usercontrol', Text::_('COM_JEM_USER_CONTROL')); ?>
|
||||
<fieldset class="adminform">
|
||||
<?php echo $this->loadTemplate('usercontrol'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
|
||||
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'settings-pane', 'configinfo', Text::_('COM_JEM_SETTINGS_TAB_CONFIGINFO')); ?>
|
||||
<fieldset class="adminform">
|
||||
<?php echo $this->loadTemplate('configinfo'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<div class="clr"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="task" value="">
|
||||
<input type="hidden" name="id" value="1">
|
||||
<input type="hidden" name="lastupdate" value="<?php $this->jemsettings->lastupdate; ?>">
|
||||
<input type="hidden" name="option" value="com_jem">
|
||||
<input type="hidden" name="controller" value="settings">
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</form>
|
||||
@ -0,0 +1,464 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.1.7
|
||||
* @package JEM
|
||||
* @copyright (C) 2013-2016 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*
|
||||
* * @todo: move js to a file
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// Load tooltips behavior
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.switcher');
|
||||
JHtml::_('behavior.tooltip');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script>
|
||||
window.addEvent('domready', function(){
|
||||
|
||||
$('jform_showcity0').addEvent('click', cityon);
|
||||
$('jform_showcity1').addEvent('click', cityoff);
|
||||
|
||||
if($('jform_showcity0').checked) {
|
||||
cityon();
|
||||
}
|
||||
|
||||
$('jform_showatte0').addEvent('click', atteon);
|
||||
$('jform_showatte1').addEvent('click', atteoff);
|
||||
|
||||
if($('jform_showatte0').checked) {
|
||||
atteon();
|
||||
}
|
||||
|
||||
$('jform_showtitle0').addEvent('click', titleon);
|
||||
$('jform_showtitle1').addEvent('click', titleoff);
|
||||
|
||||
if($('jform_showtitle0').checked) {
|
||||
titleon();
|
||||
}
|
||||
|
||||
$('jform_showlocate0').addEvent('click', locon);
|
||||
$('jform_showlocate1').addEvent('click', locoff);
|
||||
|
||||
if($('jform_showlocate0').checked) {
|
||||
locon();
|
||||
}
|
||||
|
||||
$('jform_showstate0').addEvent('click', stateon);
|
||||
$('jform_showstate1').addEvent('click', stateoff);
|
||||
|
||||
if($('jform_showstate0').checked) {
|
||||
stateon();
|
||||
}
|
||||
|
||||
$('jform_showcat0').addEvent('click', caton);
|
||||
$('jform_showcat1').addEvent('click', catoff);
|
||||
|
||||
if($('jform_showcat0').checked) {
|
||||
caton();
|
||||
}
|
||||
|
||||
$('jform_showeventimage0').addEvent('click', evimageon);
|
||||
$('jform_showeventimage1').addEvent('click', evimageoff);
|
||||
|
||||
if($('jform_showeventimage0').checked) {
|
||||
evimageon();
|
||||
}
|
||||
|
||||
$('jform_gddisabled0').addEvent('click', lbon);
|
||||
$('jform_gddisabled1').addEvent('click', lboff);
|
||||
|
||||
if($('jform_gddisabled0').checked) {
|
||||
lbon();
|
||||
}
|
||||
|
||||
$("jform_globalattribs_event_show_mapserv").addEvent('change', testmap);
|
||||
|
||||
var mapserv = $("jform_globalattribs_event_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
eventmapon();
|
||||
} else {
|
||||
eventmapoff();
|
||||
}
|
||||
|
||||
|
||||
$("jform_globalattribs_global_show_mapserv").addEvent('change', testmap);
|
||||
|
||||
var mapserv = $("jform_globalattribs_global_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
globalmapon();
|
||||
} else {
|
||||
globalmapoff();
|
||||
}
|
||||
|
||||
$("jform_oldevent").addEvent('change', testevhandler);
|
||||
|
||||
var evhandler = $("jform_oldevent");
|
||||
var nrevhandler = evhandler.options[evhandler.selectedIndex].value;
|
||||
|
||||
if (nrevhandler == 1 || nrevhandler == 2 || nrevhandler == 3) {
|
||||
evhandleron();
|
||||
} else {
|
||||
evhandleroff();
|
||||
}
|
||||
|
||||
$('jform_globalattribs_event_comunsolution').addEvent('change', testcomm);
|
||||
|
||||
var commhandler = $("jform_globalattribs_event_comunsolution");
|
||||
var nrcommhandler = commhandler.options[commhandler.selectedIndex].value;
|
||||
|
||||
if (nrcommhandler == 1) {
|
||||
common();
|
||||
} else {
|
||||
commoff();
|
||||
}
|
||||
|
||||
|
||||
var ObjArray = $$('input.colorpicker').get('id').sort();
|
||||
|
||||
var arrayLength = ObjArray.length;
|
||||
for (var i = 0; i < arrayLength; i++) {
|
||||
var Obj = $(ObjArray[i]);
|
||||
var color = testcolor(Obj.value);
|
||||
if (color) {
|
||||
Obj.style.color = color;
|
||||
}
|
||||
}
|
||||
|
||||
$("jform_showfroregistra").addEvent('change', testregistra);
|
||||
|
||||
var registra = $("jform_showfroregistra");
|
||||
var nrregistra = registra.options[registra.selectedIndex].value;
|
||||
|
||||
if (nrregistra >= 1) {
|
||||
registraon();
|
||||
} else {
|
||||
registraoff();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function testcolor(color) {
|
||||
if(color.length==7)
|
||||
{
|
||||
color=color.substring(1);
|
||||
}
|
||||
var R = parseInt(color.substring(0,2),16);
|
||||
var G = parseInt(color.substring(2,4),16);
|
||||
var B = parseInt(color.substring(4,6),16);
|
||||
var x = Math.sqrt(R * R * .299 + G * G * .587 + B * B * .114);
|
||||
|
||||
var sColorText = x < 130 ? '#FFFFFF' : '#000000';
|
||||
|
||||
return sColorText;
|
||||
}
|
||||
|
||||
function testcomm()
|
||||
{
|
||||
var commhandler = $("jform_globalattribs_event_comunsolution");
|
||||
var nrcommhandler = commhandler.options[commhandler.selectedIndex].value;
|
||||
|
||||
if (nrcommhandler == 1) {
|
||||
common();
|
||||
} else {
|
||||
commoff();
|
||||
}
|
||||
}
|
||||
|
||||
function testmap()
|
||||
{
|
||||
var mapserv = $("jform_globalattribs_event_show_mapserv");
|
||||
var nrmapserv = mapserv.options[mapserv.selectedIndex].value;
|
||||
|
||||
if (nrmapserv == 1 || nrmapserv == 2) {
|
||||
eventmapon();
|
||||
} else {
|
||||
eventmapoff();
|
||||
}
|
||||
|
||||
var mapserv2 = $("jform_globalattribs_global_show_mapserv");
|
||||
var nrmapserv2 = mapserv2.options[mapserv2.selectedIndex].value;
|
||||
|
||||
if (nrmapserv2 == 1 || nrmapserv2 == 2) {
|
||||
globalmapon();
|
||||
} else {
|
||||
globalmapoff();
|
||||
}
|
||||
}
|
||||
|
||||
function testevhandler()
|
||||
{
|
||||
var evhandler = $("jform_oldevent");
|
||||
var nrevhandler = evhandler.options[evhandler.selectedIndex].value;
|
||||
|
||||
if (nrevhandler == 1 || nrevhandler == 2 || nrevhandler == 3) {
|
||||
evhandleron();
|
||||
} else {
|
||||
evhandleroff();
|
||||
}
|
||||
}
|
||||
|
||||
function testregistra()
|
||||
{
|
||||
var registra = $("jform_showfroregistra");
|
||||
var nrregistra = registra.options[registra.selectedIndex].value;
|
||||
|
||||
if (nrregistra >= 1) {
|
||||
registraon();
|
||||
} else {
|
||||
registraoff();
|
||||
}
|
||||
}
|
||||
|
||||
function cityon()
|
||||
{
|
||||
document.getElementById('city1').style.display = '';
|
||||
}
|
||||
|
||||
function cityoff()
|
||||
{
|
||||
var citywidth = document.getElementById('jform_citywidth');
|
||||
document.getElementById('city1').style.display = 'none';
|
||||
citywidth.value='';
|
||||
}
|
||||
|
||||
function atteon()
|
||||
{
|
||||
document.getElementById('atte1').style.display = '';
|
||||
}
|
||||
|
||||
function atteoff()
|
||||
{
|
||||
var attewidth = document.getElementById('jform_attewidth');
|
||||
document.getElementById('atte1').style.display = 'none';
|
||||
attewidth.value='';
|
||||
}
|
||||
|
||||
function titleon()
|
||||
{
|
||||
document.getElementById('title1').style.display = '';
|
||||
}
|
||||
|
||||
function titleoff()
|
||||
{
|
||||
var titlewidth = document.getElementById('jform_titlewidth');
|
||||
document.getElementById('title1').style.display = 'none';
|
||||
titlewidth.value='';
|
||||
}
|
||||
|
||||
function locon()
|
||||
{
|
||||
document.getElementById('loc1').style.display = '';
|
||||
document.getElementById('loc2').style.display = '';
|
||||
}
|
||||
|
||||
function locoff()
|
||||
{
|
||||
var locatewidth = document.getElementById('jform_locationwidth');
|
||||
document.getElementById('loc1').style.display = 'none';
|
||||
locatewidth.value='';
|
||||
document.getElementById('loc2').style.display = 'none';
|
||||
}
|
||||
|
||||
function stateon()
|
||||
{
|
||||
document.getElementById('state1').style.display = '';
|
||||
}
|
||||
|
||||
function stateoff()
|
||||
{
|
||||
var statewidth = document.getElementById('jform_statewidth');
|
||||
document.getElementById('state1').style.display = 'none';
|
||||
statewidth.value='';
|
||||
}
|
||||
|
||||
function caton()
|
||||
{
|
||||
document.getElementById('cat1').style.display = '';
|
||||
document.getElementById('cat2').style.display = '';
|
||||
}
|
||||
|
||||
function catoff()
|
||||
{
|
||||
var catwidth = document.getElementById('jform_catfrowidth');
|
||||
document.getElementById('cat1').style.display = 'none';
|
||||
catwidth.value='';
|
||||
document.getElementById('cat2').style.display = 'none';
|
||||
}
|
||||
|
||||
function evimageon()
|
||||
{
|
||||
document.getElementById('evimage1').style.display = '';
|
||||
}
|
||||
|
||||
function evimageoff()
|
||||
{
|
||||
var evimagewidth = document.getElementById('jform_tableeventimagewidth');
|
||||
document.getElementById('evimage1').style.display = 'none';
|
||||
evimagewidth.value='';
|
||||
}
|
||||
|
||||
function lbon()
|
||||
{
|
||||
document.getElementById('lb1').style.display = '';
|
||||
}
|
||||
|
||||
function lboff()
|
||||
{
|
||||
document.getElementById('lb1').style.display = 'none';
|
||||
}
|
||||
|
||||
function eventmapon()
|
||||
{
|
||||
document.getElementById('eventmap1').style.display = '';
|
||||
document.getElementById('eventmap2').style.display = '';
|
||||
}
|
||||
|
||||
function eventmapoff()
|
||||
{
|
||||
document.getElementById('eventmap1').style.display = 'none';
|
||||
document.getElementById('eventmap2').style.display = 'none';
|
||||
document.getElementById('jform_globalattribs_event_tld').value = '';
|
||||
document.getElementById('jform_globalattribs_event_lg').value = '';
|
||||
}
|
||||
|
||||
function globalmapon()
|
||||
{
|
||||
document.getElementById('globalmap1').style.display = '';
|
||||
document.getElementById('globalmap2').style.display = '';
|
||||
}
|
||||
|
||||
function globalmapoff()
|
||||
{
|
||||
document.getElementById('globalmap1').style.display = 'none';
|
||||
document.getElementById('globalmap2').style.display = 'none';
|
||||
document.getElementById('jform_globalattribs_global_tld').value = '';
|
||||
document.getElementById('jform_globalattribs_global_lg').value = '';
|
||||
}
|
||||
|
||||
|
||||
function evhandleron()
|
||||
{
|
||||
document.getElementById('evhandler1').style.display = '';
|
||||
}
|
||||
|
||||
function evhandleroff()
|
||||
{
|
||||
document.getElementById('evhandler1').style.display = 'none';
|
||||
}
|
||||
|
||||
function common()
|
||||
{
|
||||
document.getElementById('comm1').style.display = '';
|
||||
}
|
||||
|
||||
function commoff()
|
||||
{
|
||||
document.getElementById('comm1').style.display = 'none';
|
||||
}
|
||||
|
||||
function registraon()
|
||||
{
|
||||
document.getElementById('froreg1').style.display = '';
|
||||
document.getElementById('froreg2').style.display = '';
|
||||
}
|
||||
|
||||
function registraoff()
|
||||
{
|
||||
document.getElementById('froreg1').style.display = 'none';
|
||||
document.getElementById('froreg2').style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == 'settings.cancel' || document.formvalidator.isValid(document.id('settings-form'))) {
|
||||
Joomla.submitform(task, document.getElementById('settings-form'));
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_jem&view=settings'); ?>" method="post" id="settings-form" name="adminForm" class="form-validate">
|
||||
<?php if (isset($this->sidebar)) : ?>
|
||||
<div id="j-sidebar-container" class="span2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="span10">
|
||||
<?php endif; ?>
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'settings-basic')); ?>
|
||||
<!-- DETAILS TAB -->
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'settings-basic', JText::_('COM_JEM_BASIC_SETTINGS', true)); ?>
|
||||
|
||||
|
||||
<?php// echo JHtml::_('tabs.start', 'settings-pane', array('useCookie'=>1)); ?>
|
||||
<?php// echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_BASIC_SETTINGS' ), 'settings-basic'); ?>
|
||||
|
||||
<div class="span4">
|
||||
<?php echo $this->loadTemplate('basicdisplay'); ?>
|
||||
<?php echo $this->loadTemplate('basiceventhandling'); ?>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<?php echo $this->loadTemplate('basicimagehandling'); ?>
|
||||
<?php echo $this->loadTemplate('basicmetahandling'); ?>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'layout2', JText::_('COM_JEM_EVENT_PAGE', true)); ?>
|
||||
|
||||
<?php// echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_EVENT_PAGE' ), 'layout2'); ?>
|
||||
|
||||
<div class="span4">
|
||||
<?php echo $this->loadTemplate('evevents'); ?>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<?php echo $this->loadTemplate('evvenues'); ?>
|
||||
<?php echo $this->loadTemplate('evregistration'); ?>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'layout', JText::_('COM_JEM_LAYOUT', true)); ?>
|
||||
|
||||
<?php// echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_LAYOUT' ), 'layout'); ?>
|
||||
<?php echo $this->loadTemplate('layout'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'parameters', JText::_('COM_JEM_GLOBAL_PARAMETERS', true)); ?>
|
||||
|
||||
<?php// echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_GLOBAL_PARAMETERS' ), 'parameters'); ?>
|
||||
<?php echo $this->loadTemplate('parameters'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'usercontrol', JText::_('COM_JEM_USER_CONTROL', true)); ?>
|
||||
|
||||
<?php// echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_USER_CONTROL' ), 'usercontrol'); ?>
|
||||
<?php echo $this->loadTemplate('usercontrol'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'configinfo', JText::_('COM_JEM_GLOBAL_PARAMETERS', true)); ?>
|
||||
|
||||
<?php echo JHtml::_('tabs.panel', JText::_( 'COM_JEM_SETTINGS_TAB_CONFIGINFO' ), 'configinfo'); ?>
|
||||
<?php echo $this->loadTemplate('configinfo'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endTabSet');?>
|
||||
<?php// echo JHtml::_('tabs.end'); ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
<?php if (isset($this->sidebar)) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="task" value="">
|
||||
<input type="hidden" name="id" value="1">
|
||||
<input type="hidden" name="lastupdate" value="<?php $this->jemsettings->lastupdate; ?>">
|
||||
<input type="hidden" name="option" value="com_jem">
|
||||
<input type="hidden" name="controller" value="settings">
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
@ -0,0 +1,26 @@
|
||||
<?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\Language\Text;
|
||||
?>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_( 'COM_JEM_DISPLAY_SETTINGS' ); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showdetails'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('formatShortDate'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('formatdate'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('formattime'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('timename'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('formathour'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('storeip'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,21 @@
|
||||
<?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\Language\Text;
|
||||
?>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_( 'COM_JEM_EVENT_HANDLING' ); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('oldevent'); ?></div></li>
|
||||
<li id="evhandler1"><div class="label-form"><?php echo $this->form->renderfield('minus'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,31 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
$gdv = JEMImage::gdVersion();
|
||||
?>
|
||||
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_( 'COM_JEM_IMAGE_HANDLING' ); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('image_filetypes'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('sizelimit'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('imagehight'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('imagewidth'); ?></div></li>
|
||||
<?php if ($gdv && $gdv >= 2) : //is the gd library installed on the server and its version > 2? ?>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('gddisabled'); ?></div></li>
|
||||
<?php endif; ?>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('lightbox'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('flyer'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,21 @@
|
||||
<?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\Language\Text;
|
||||
?>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_( 'COM_JEM_LAYOUT_STYLE_SETTINGS' ); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('layoutstyle'); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('useiconfont'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,78 @@
|
||||
<?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\Language\Text;
|
||||
?>
|
||||
|
||||
<script>
|
||||
<!--
|
||||
function insert_keyword($keyword) {
|
||||
document.getElementById("jform_meta_description").value += " " + $keyword;
|
||||
}
|
||||
|
||||
function include_description() {
|
||||
document.getElementById("jform_meta_description").value = "<?php echo Text::_( 'COM_JEM_META_DESCRIPTION_STANDARD' ); ?>";
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_( 'COM_JEM_META_HANDLING' ); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><label id="jform_meta_keywords-lbl" <?php echo JEMOutput::tooltip(Text::_('COM_JEM_META_KEYWORDS'), Text::_('COM_JEM_META_KEYWORDS_DESC')); ?>>
|
||||
<?php echo Text::_( 'COM_JEM_META_KEYWORDS' ); ?>
|
||||
</label>
|
||||
<div style="display: block;">
|
||||
<?php
|
||||
// TODO use jforms here
|
||||
$meta_key = explode(", ", $this->data->meta_keywords);
|
||||
?>
|
||||
<select name="meta_keywords[]" multiple="multiple" size="6" class="inputbox form-control" id="jform_meta_keywords">
|
||||
<option value="[title]" <?php if(in_array("[title]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_EVENT_TITLE' ); ?></option>
|
||||
<option value="[a_name]" <?php if(in_array("[a_name]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_VENUE' ); ?></option>
|
||||
<!-- <option value="[locid]" <?php if(in_array("[locid]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_CITY' ); ?></option> -->
|
||||
<option value="[dates]" <?php if(in_array("[dates]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_STARTDATE' ); ?></option>
|
||||
<option value="[times]" <?php if(in_array("[times]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_STARTTIME' ); ?></option>
|
||||
<option value="[enddates]" <?php if(in_array("[enddates]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_ENDDATE' ); ?></option>
|
||||
<option value="[endtimes]" <?php if(in_array("[endtimes]",$meta_key)) { echo "selected=\"selected\""; } ?>>
|
||||
<?php echo Text::_( 'COM_JEM_ENDTIME' ); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li><?php echo $this->form->getLabel('meta_description'); ?>
|
||||
<div style="display: block;">
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[title]')" value="<?php echo Text::_( 'COM_JEM_EVENT_TITLE' ); ?>" />
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[a_name]')" value="<?php echo Text::_( 'COM_JEM_VENUE' ); ?>" />
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[dates]')" value="<?php echo Text::_( 'COM_JEM_STARTDATE' ); ?>" />
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[times]')" value="<?php echo Text::_( 'COM_JEM_STARTTIME' ); ?>" />
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[enddates]')" value="<?php echo Text::_( 'COM_JEM_ENDDATE' ); ?>" />
|
||||
<input class="inputbox" type="button" onclick="insert_keyword('[endtimes]')" value="<?php echo Text::_( 'COM_JEM_ENDTIME' ); ?>" />
|
||||
<br/>
|
||||
<?php echo $this->form->getInput('meta_description'); ?>
|
||||
<br/>
|
||||
<input type="button" value="<?php echo Text::_( 'COM_JEM_META_DESCRIPTION_BUTTON' ); ?>" onclick="include_description()" />
|
||||
|
||||
<span <?php echo JEMOutput::tooltip(Text::_('COM_JEM_WARNING'), Text::_('COM_JEM_META_DESCRIPTION_WARN'), 'error'); ?>>
|
||||
<?php echo $this->WarningIcon(); ?>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,84 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
?>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_CONFIGINFO'); ?></legend>
|
||||
<br>
|
||||
<table class="adminlist table">
|
||||
<?php
|
||||
$known_extensions = array('pkg_jem' => 'COM_JEM_MAIN_CONFIG_VS_PACKAGE'
|
||||
,'com_jem' => 'COM_JEM_MAIN_CONFIG_VS_COMPONENT'
|
||||
,'mod_jem' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM'
|
||||
,'mod_jem_cal' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_CAL'
|
||||
,'mod_jem_calajax' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_CALAJAX'
|
||||
,'mod_jem_banner' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_BANNER'
|
||||
,'mod_jem_jubilee' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_JUBILEE'
|
||||
,'mod_jem_teaser' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_TEASER'
|
||||
,'mod_jem_wide' => 'COM_JEM_MAIN_CONFIG_VS_MOD_JEM_WIDE'
|
||||
,'plg_content_jem' => 'COM_JEM_MAIN_CONFIG_VS_PLG_CONTENT'
|
||||
,'plg_content_jemlistevents' => 'COM_JEM_MAIN_CONFIG_VS_PLG_CONTENT_LISTEVENTS'
|
||||
,'plg_finder_jem' => 'COM_JEM_MAIN_CONFIG_VS_PLG_FINDER'
|
||||
,'plg_search_jem' => 'COM_JEM_MAIN_CONFIG_VS_PLG_SEARCH'
|
||||
,'plg_jem_comments' => 'COM_JEM_MAIN_CONFIG_VS_PLG_COMMENTS'
|
||||
,'plg_jem_mailer' => 'COM_JEM_MAIN_CONFIG_VS_PLG_MAILER'
|
||||
,'plg_jem_demo' => 'COM_JEM_MAIN_CONFIG_VS_PLG_DEMO'
|
||||
,'plg_quickicon_jemquickicon' => 'COM_JEM_MAIN_CONFIG_VS_PLG_QUICKICON'
|
||||
,'AcyMailing Tag : insert events from JEM 2.1+'
|
||||
=> 'COM_JEM_MAIN_CONFIG_VS_PLG_ACYMAILING_TAGJEM'
|
||||
);
|
||||
?>
|
||||
<tr>
|
||||
<th><u><?php echo Text::_('COM_JEM_NAME'); ?></u></th>
|
||||
<th><u><?php echo Text::_('COM_JEM_MAIN_CONFIG_VS'); ?></u></th>
|
||||
<th><u><?php echo Text::_('COM_JEM_DATE'); ?></u></th>
|
||||
<th><u><?php echo Text::_('JSTATUS'); ?></u></th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($known_extensions as $name => $label) {
|
||||
if (!empty($this->config->$name)) { ?>
|
||||
<tr>
|
||||
<td><?php echo Text::_($label).': '; ?></td>
|
||||
<td><b><?php echo $this->config->$name->version; ?></b></td>
|
||||
<td><?php echo $this->config->$name->creationDate; ?></td>
|
||||
<td><?php echo empty($this->config->$name->enabled) ? Text::_('COM_JEM_DISABLED') : ''; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo Text::_('COM_JEM_MAIN_CONFIG_VS_PHP').': '; ?></td>
|
||||
<td colspan="3"><b><?php echo $this->config->vs_php; ?> </b></td>
|
||||
</tr>
|
||||
<?php if (!empty($this->config->vs_php_magicquotes)) : ?>
|
||||
<tr>
|
||||
<td><?php echo Text::_('COM_JEM_MAIN_CONFIG_VS_PHP_MAGICQUOTES').': '; ?></td>
|
||||
<td colspan="3"><b><?php echo $this->config->vs_php_magicquotes; ?> </b></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td><?php echo Text::_('COM_JEM_MAIN_CONFIG_VS_GD').': '; ?></td>
|
||||
<td colspan="3"><b><?php echo $this->config->vs_gd; ?> </b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="width-50 fltrt">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clr"></div>
|
||||
@ -0,0 +1,42 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
// Create shortcut to parameters.
|
||||
$params = $this->state->get('params');
|
||||
$params = $params->toArray();
|
||||
|
||||
// This checks if the config options have ever been saved. If they haven't they will fall back to the original settings.
|
||||
$editoroptions = isset($params['show_publishing_options']);
|
||||
|
||||
if (!$editoroptions):
|
||||
$params['show_publishing_options'] = '1';
|
||||
$params['show_article_options'] = '1';
|
||||
$params['show_urls_images_backend'] = '0';
|
||||
$params['show_urls_images_frontend'] = '0';
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_EVENTS'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('evevents') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('basic') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,28 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
$group = 'globalattribs';
|
||||
?>
|
||||
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_REGISTRATION'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_registration',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_registration_counters',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_attendeenames',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_more_attendeedetails',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_comunsolution',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_comunoption',$group); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,28 @@
|
||||
<?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\Language\Text;
|
||||
$group = 'globalattribs';
|
||||
?>
|
||||
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_VENUES'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_venue',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_locdescription',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_detailsadress',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_detlinkvenue',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_show_mapserv',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_tld',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('event_lg',$group); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
@ -0,0 +1,140 @@
|
||||
<?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\Language\Text;
|
||||
?>
|
||||
<div class="width-50 fltlft">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_GENERAL_LAYOUT_SETTINGS'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('layoutgenerallayoutsetting') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_CITY_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showcity'); ?></div></li>
|
||||
|
||||
<li id="city1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('citywidth'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_ATTENDEE_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showatte'); ?></div></li>
|
||||
|
||||
<li id="atte1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('attewidth'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_TITLE_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showtitle'); ?></div></li>
|
||||
<li id="title1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('titlewidth'); ?></div>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_VENUE_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showlocate'); ?></div></li>
|
||||
|
||||
<li id="loc1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('locationwidth'); ?></div></li>
|
||||
|
||||
<li id="loc2" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('showlinkvenue'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_STATE_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showstate'); ?></div></li>
|
||||
<li id="state1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('statewidth'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_CATEGORY_COLUMN'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showcat'); ?></div></li>
|
||||
|
||||
<li id="cat1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('catfrowidth'); ?></div></li>
|
||||
|
||||
<li id="cat2" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('catlinklist'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_LAYOUT_TABLE_EVENTIMAGE'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('showeventimage'); ?></div></li>
|
||||
|
||||
<li id="evimage1" style="display:none"><div class="label-form"><?php echo $this->form->renderfield('tableeventimagewidth'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="width-50 fltrt">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_CSS'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('stylesheet') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_CSS_COLOR_BACKGROUND'); ?></legend>
|
||||
<ul class="adminformlist label-button-line">
|
||||
<?php foreach ($this->form->getFieldset('css_color') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_CSS_COLOR_BORDER'); ?></legend>
|
||||
<ul class="adminformlist label-button-line">
|
||||
<?php foreach ($this->form->getFieldset('css_color_border') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_CSS_COLOR_FONT'); ?></legend>
|
||||
<ul class="adminformlist label-button-line">
|
||||
<?php foreach ($this->form->getFieldset('css_color_font') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div><div class="clr"></div>
|
||||
@ -0,0 +1,81 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
$group = 'globalattribs';
|
||||
|
||||
?>
|
||||
<div class="width-50 fltlft">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_GLOBAL_PARAMETERS'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('globalparam') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_VIEW_EDITEVENT'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_ownedvenuesonly',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_editevent_maxnumcustomfields',$group); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETIINGS_GLOBAL_RECURRENCE'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('globalparam_recurrence') as $field): ?>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield($field->fieldname); ?></div></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div class="width-50 fltrt">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_GLOBAL_PARAMETERS_ADVANCED'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('globalparam2') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_VENUES'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_locdescription',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_detailsadress',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_detlinkvenue',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_listevents',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_show_mapserv',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_tld',$group); ?></div></li>
|
||||
<li><div class="label-form"><?php echo $this->form->renderfield('global_lg',$group); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_SETTINGS_LEGEND_VIEW_EDITVENUE'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><?php echo $this->form->getLabel('global_editvenue_maxnumcustomfields',$group); ?> <?php echo $this->form->getInput('global_editvenue_maxnumcustomfields',$group); ?></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
@ -0,0 +1,56 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
?>
|
||||
<div class="width-50 fltlft">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_USER_CONTROL'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('usercontrol') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_AC_EVENTS'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('usercontrolacevent') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div><div class="width-50 fltrt">
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_REGISTRATION'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<li><?php echo $this->form->getLabel('showfroregistra'); ?> <?php echo $this->form->getInput('showfroregistra'); ?> </li>
|
||||
<li id="froreg1"><div class="label-form"><?php echo $this->form->renderfield('regallowinvitation'); ?></div></li>
|
||||
<li id="froreg2"><div class="label-form"><?php echo $this->form->renderfield('regallowcomments'); ?></div></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="width-100" style="padding: 10px 1vw;">
|
||||
<fieldset class="options-form">
|
||||
<legend><?php echo Text::_('COM_JEM_AC_VENUES'); ?></legend>
|
||||
<ul class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('usercontrolacvenue') as $field): ?>
|
||||
<li><?php echo $field->label; ?> <?php echo $field->input; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div><div class="clr"></div>
|
||||
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
117
administrator/components/com_jem/views/settings/view.html.php
Normal file
117
administrator/components/com_jem/views/settings/view.html.php
Normal file
@ -0,0 +1,117 @@
|
||||
<?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\Toolbar\ToolbarHelper;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
/**
|
||||
* View class for the JEM Settings screen
|
||||
*
|
||||
* @package JEM
|
||||
*/
|
||||
class JemViewSettings extends JemAdminView
|
||||
{
|
||||
protected $form;
|
||||
protected $data;
|
||||
protected $state;
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$app = Factory::getApplication();
|
||||
$document = $app->getDocument();
|
||||
$form = $this->get('Form');
|
||||
$data = $this->get('Data');
|
||||
$state = $this->get('State');
|
||||
$config = $this->get('ConfigInfo');
|
||||
$jemsettings = $this->get('Data');
|
||||
$this->document = $document;
|
||||
|
||||
// Load css
|
||||
$wa = $document->getWebAssetManager();
|
||||
|
||||
$wa->registerStyle('jem.backend', 'com_jem/backend.css')->useStyle('jem.backend');
|
||||
$wa->registerStyle('jem.colorpicker', 'com_jem/colorpicker.css')->useStyle('jem.colorpicker');
|
||||
|
||||
$style = '
|
||||
div.current fieldset.radio input {
|
||||
cursor: pointer;
|
||||
}';
|
||||
$document->addStyleDeclaration($style);
|
||||
|
||||
// Check for model errors.
|
||||
if ($errors = $this->get('Errors')) {
|
||||
$app->enqueueMessage(implode('<br />', $errors), 'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Bind the form to the data.
|
||||
if ($form && $data) {
|
||||
$form->bind($data);
|
||||
}
|
||||
|
||||
// Check for errors.
|
||||
$errors = $this->get('Errors');
|
||||
if (is_array($errors) && count($errors)) {
|
||||
$app->enqueueMessage(implode("\n", $errors), 'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Load Script
|
||||
$wa = $app->getDocument()->getWebAssetManager();
|
||||
$wa->useScript('jquery');
|
||||
$wa->registerScript('jem.colorpicker_js', 'com_jem/colorpicker.js')->useScript('jem.colorpicker_js');
|
||||
|
||||
if (!JemFactory::getUser()->authorise('core.manage', 'com_jem')) {
|
||||
$app->enqueueMessage(Text::_('JERROR_ALERTNOAUTHOR'), 'warning');
|
||||
$app->redirect('index.php?option=com_jem&view=main');
|
||||
}
|
||||
|
||||
// mapping variables
|
||||
$this->form = $form;
|
||||
$this->data = $data;
|
||||
$this->state = $state;
|
||||
$this->jemsettings = $jemsettings;
|
||||
$this->config = $config;
|
||||
|
||||
// add toolbar
|
||||
$this->addToolbar();
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the page title and toolbar.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
ToolbarHelper::title(Text::_('COM_JEM_SETTINGS_TITLE'), 'settings');
|
||||
ToolbarHelper::apply('settings.apply');
|
||||
ToolbarHelper::save('settings.save');
|
||||
ToolbarHelper::cancel('settings.cancel');
|
||||
|
||||
ToolbarHelper::divider();
|
||||
ToolbarHelper::inlinehelp();
|
||||
ToolBarHelper::help('settings', true, 'https://www.joomlaeventmanager.net/documentation/manual/backend/settings');
|
||||
}
|
||||
|
||||
protected function WarningIcon()
|
||||
{
|
||||
$url = Uri::root();
|
||||
// $tip = '<img src="'.$url.'media/system/images/tooltip.png" border="0" alt="" />';
|
||||
$tip = '<span class="icon-info-circle" aria-hidden="true"></span>';
|
||||
|
||||
return $tip;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user