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,154 @@
<?php
/**
* @version 2.3.6
* @package JEM
* @copyright (C) 2013-2021 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
?>
<?php
// calculate span of columns to show, summary must be 12
$default_span = array('date' => 2, 'title' => 3, 'venue' => 3, 'category' => 2, 'attendees' => 2);
$a_span = array('date' => $default_span['date']); // always shown
if ($this->jemsettings->showtitle == 1) {
$a_span['title'] = $default_span['title'];
}
if (($this->jemsettings->showlocate == 1) || ($this->jemsettings->showcity == 1) || ($this->jemsettings->showstate == 1)) {
$a_span['venue'] = $default_span['venue'];
}
if (0 && $this->jemsettings->showcat == 1) { // doesn't make sense
$a_span['category'] = $default_span['category'];
}
if (0 && $this->jemsettings->showatte == 1) { // never shown here
$a_span['attendees'] = $default_span['attendees'];
}
$total = array_sum($a_span);
if (!array_key_exists('title', $a_span) && !array_key_exists('venue', $a_span) && !array_key_exists('category', $a_span)) {
$a_span['date'] += 12 - $total;
} else {
while ($total < 12) {
if (array_key_exists('title', $a_span)) {
++$a_span['title'];
++$total;
}
if ($total < 12 && ($a_span['date'] <= $default_span['date'])) {
++$a_span['date'];
++$total;
}
if (($total < 12) && array_key_exists('venue', $a_span)) {
++$a_span['venue'];
++$total;
}
if (($total < 12) && array_key_exists('category', $a_span)) {
++$a_span['category'];
++$total;
}
} // while
}
?>
<div class="eventtable">
<div class="row-fluid sectiontableheader">
<div class="span<?php echo $a_span['date']; ?>"><?php echo JText::_('COM_JEM_TABLE_DATE'); ?></div>
<?php if (array_key_exists('title', $a_span)) : ?>
<div class="span<?php echo $a_span['title']; ?>"><?php echo JText::_('COM_JEM_TABLE_TITLE'); ?></div>
<?php endif; ?>
<?php if (array_key_exists('venue', $a_span)) : ?>
<div class="span<?php echo $a_span['venue']; ?>"><?php echo JText::_('COM_JEM_TABLE_LOCATION'); ?></div>
<?php endif; ?>
<?php if (array_key_exists('category', $a_span)) : ?>
<div class="span<?php echo $a_span['category']; ?>"><?php echo JText::_('COM_JEM_TABLE_CATEGORY'); ?></div>
<?php endif; ?>
<?php if (array_key_exists('attendees', $a_span)) : ?>
<div class="span<?php echo $a_span['attendees']; ?>"><?php echo JText::_('COM_JEM_TABLE_ATTENDEES'); ?></div>
<?php endif; ?>
</div>
<?php if (empty($this->catrow->events)) : ?>
<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" >
<div class="span12">
<strong><i><?php echo JText::_('COM_JEM_NO_EVENTS'); ?></i></strong>
</div>
</div>
<?php else : ?>
<?php foreach ($this->catrow->events as $row) : ?>
<?php if (!empty($row->featured)) : ?>
<div class="row-fluid sectiontableentry featured featured<?php echo $row->id.$this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php else : ?>
<div class="row-fluid sectiontableentry<?php echo $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php endif; ?>
<div class="span<?php echo $a_span['date']; ?> date">
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
?>
</div>
<?php if (array_key_exists('title', $a_span)) : ?>
<div class="span<?php echo $a_span['title']; ?>">
<?php if (($this->jemsettings->showeventimage == 1) && !empty($row->datimage)) : ?>
<div class="image">
<?php echo JemOutput::flyer($row, JemImage::flyercreator($row->datimage, 'event'), 'event'); ?>
</div>
<?php endif; ?>
<?php if ($this->jemsettings->showdetails == 1) : ?>
<div class="event">
<a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url">
<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span>
</a><?php echo JemOutput::publishstateicon($row); ?>
</div>
<?php else : ?>
<div class="event" itemprop="name">
<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (array_key_exists('venue', $a_span)) : ?>
<div class="span<?php echo $a_span['venue']; ?> venue">
<?php
$venue = array();
if ($this->jemsettings->showlocate == 1) {
if (!empty($row->venue)) {
if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) {
$venue[] = "<a href='".JRoute::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>";
} else {
$venue[] = $this->escape($row->venue);
}
} else {
$venue[] = '-';
}
}
// if no city skip if also no state, else add hyphen
if (($this->jemsettings->showcity == 1) && (!empty($row->city) || !empty($row->state))) {
$venue[] = !empty($row->city) ? $this->escape($row->city) : '-';
}
if (($this->jemsettings->showstate == 1) && !empty($row->state)) {
$venue[] = $this->escape($row->state);
}
echo implode(', ', $venue);
?>
</div>
<?php endif; ?>
<?php if (array_key_exists('category', $a_span)) : ?>
<div class="span<?php echo $a_span['category']; ?> category">
<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?>
</div>
<?php endif; ?>
<?php if (array_key_exists('attendees', $a_span)) : ?>
<div class="span<?php echo $a_span['attendees']; ?> users">
<?php echo !empty($row->regCount) ? $this->escape($row->regCount) : '-'; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; /* noevents */ ?>
</div>

View File

@ -0,0 +1,98 @@
<?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;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
?>
<div id="jem" class="jem_categories<?php echo $this->pageclass_sfx;?>">
<div class="buttons">
<?php
$btn_params = array('id' => $this->id, 'task' => $this->task, 'print_link' => $this->print_link, 'archive_link' => $this->archive_link);
echo JemOutput::createButtonBar($this->getName(), $this->permissions, $btn_params);
?>
</div>
<?php if ($this->params->get('show_page_heading', 1)) : ?>
<h1 class="componentheading">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<div class="clr"></div>
<?php foreach ($this->rows as $row) : ?>
<div class="jem cat_id<?php echo $row->id; ?>">
<h2>
<?php echo HTMLHelper::_('link', Route::_($row->linktarget), $this->escape($row->catname)); ?>
</h2>
<div class="floattext">
<?php if ($this->jemsettings->discatheader) { ?>
<div class="catimg">
<?php // flyer
if (empty($row->image)) {
$jemsettings = JemHelper::config();
$imgattribs['width'] = $jemsettings->imagewidth;
$imgattribs['height'] = $jemsettings->imagehight;
echo HTMLHelper::_('image', 'com_jem/noimage.png', $row->catname, $imgattribs, true);
} else {
$cimage = JemImage::flyercreator($row->image, 'category');
echo JemOutput::flyer($row, $cimage, 'category');
}
?>
</div>
<?php } ?>
<div class="description cat<?php echo $row->id; ?>">
<?php echo $row->description; ?>
<p>
<?php echo HTMLHelper::_('link', Route::_($row->linktarget), $row->linktext); ?>
(<?php echo $row->assignedevents ? $row->assignedevents : '0'; ?>)
</p>
</div>
</div>
<?php if ($i = count($row->subcats)) : ?>
<div class="subcategories">
<?php echo Text::_('COM_JEM_SUBCATEGORIES'); ?>
</div>
<div class="subcategorieslist">
<?php foreach ($row->subcats as $sub) : ?>
<strong>
<a href="<?php echo Route::_(JemHelperRoute::getCategoryRoute($sub->slug, $this->task)); ?>">
<?php echo $this->escape($sub->catname); ?></a>
</strong> <?php echo '(' . ($sub->assignedevents != null ? $sub->assignedevents : 0) . (--$i ? '),' : ')'); ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<!--table-->
<?php
if ($this->params->get('detcat_nr', 0) > 0) {
$this->catrow = $row;
echo $this->loadTemplate('table');
}
?>
</div>
<?php endforeach; ?>
<!--pagination-->
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<!--copyright-->
<div class="copyright">
<?php echo JemOutput::footer( ); ?>
</div>
</div>
<?php echo JemOutput::lightbox(); ?>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_JEM_CATEGORIES_VIEW_DEFAULT_TITLE">
<message>
<![CDATA[COM_JEM_CATEGORIES_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<fields name="request">
<fieldset name="request"
addfieldpath="/administrator/components/com_jem/models/fields"
>
<field name="id" type="categories"
default="1"
label="COM_JEM_SELECTTOPCAT"
description="COM_JEM_SELECTTOPCATDESC"
required="false"
/>
</fieldset>
</fields>
<fields name="params">
<fieldset name="basic">
<field name="showemptycats" type="radio"
default="1"
label="COM_JEM_SHOWEMPTYCATS"
description="COM_JEM_SHOWEMPTYCATSDESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="cat_num" type="text"
size="2"
default="4"
label="COM_JEM_CAT_DISPLAY"
description="COM_JEM_CAT_DISPLAY_DESC"
/>
<field name="detcat_nr" type="text"
size="1"
default="3"
label="COM_JEM_DET_CATEGORIES_PREVIEW"
description="COM_JEM_DET_CATEGORIES_PREVIEW_DESC"
/>
<field name="usecat" type="radio"
default="1"
label="COM_JEM_DISPLAYCHILDS"
description="COM_JEM_DISPLAYCHILDSDESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="showemptychilds" type="radio"
default="1"
label="COM_JEM_SHOWEMPTYCHILD"
description="COM_JEM_SHOWEMPTYCHILDDESC"
class="btn-group btn-group-yesno"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
</fieldset>
</fields>
</metadata>

View File

@ -0,0 +1,129 @@
<?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;
use Joomla\CMS\Router\Route;
?>
<div class="table-responsive">
<table class="eventtable table table-striped" style="width:<?php echo $this->jemsettings->tablewidth; ?>;" summary="jem">
<colgroup>
<col width="<?php echo $this->jemsettings->datewidth; ?>" class="jem_col_date" />
<?php if ($this->jemsettings->showtitle == 1) : ?>
<col width="<?php echo $this->jemsettings->titlewidth; ?>" class="jem_col_title" />
<?php endif; ?>
<?php if ($this->jemsettings->showlocate == 1) : ?>
<col width="<?php echo $this->jemsettings->locationwidth; ?>" class="jem_col_venue" />
<?php endif; ?>
<?php if ($this->jemsettings->showcity == 1) : ?>
<col width="<?php echo $this->jemsettings->citywidth; ?>" class="jem_col_city" />
<?php endif; ?>
<?php if ($this->jemsettings->showstate == 1) : ?>
<col width="<?php echo $this->jemsettings->statewidth; ?>" class="jem_col_state" />
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<col width="<?php echo $this->jemsettings->catfrowidth; ?>" class="jem_col_category" />
<?php endif; ?>
</colgroup>
<thead>
<tr>
<th id="jem_date_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_DATE'); ?></th>
<?php if ($this->jemsettings->showtitle == 1) : ?>
<th id="jem_title_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_TITLE'); ?></th>
<?php endif; ?>
<?php if ($this->jemsettings->showlocate == 1) : ?>
<th id="jem_location_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_LOCATION'); ?></th>
<?php endif; ?>
<?php if ($this->jemsettings->showcity == 1) : ?>
<th id="jem_city_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_CITY'); ?></th>
<?php endif; ?>
<?php if ($this->jemsettings->showstate == 1) : ?>
<th id="jem_state_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_STATE'); ?></th>
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<th id="jem_category_cat<?php echo $this->catrow->id; ?>" class="sectiontableheader" align="left"><?php echo Text::_('COM_JEM_TABLE_CATEGORY'); ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php if (empty($this->catrow->events)) : ?>
<tr class="no_events"><td colspan="20"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></td></tr>
<?php else : ?>
<?php $odd = 0; ?>
<?php foreach ($this->catrow->events as $row) : ?>
<?php if (!empty($row->featured)) : ?>
<tr class="featured featured<?php echo $row->id.$this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php else : ?>
<tr class="sectiontableentry<?php echo ($odd + 1) . $this->params->get('pageclass_sfx') . ' event_id' . $row->id; ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php endif; ?>
<td headers="jem_date_cat<?php echo $this->catrow->id; ?>" align="left">
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
?>
</td>
<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?>
<td headers="jem_title_cat<?php echo $this->catrow->id; ?>" align="left" valign="top">
<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url">
<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span>
</a><?php echo JemOutput::publishstateicon($row); ?>
</td>
<?php endif; ?>
<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?>
<td headers="jem_title_cat<?php echo $this->catrow->id; ?>" align="left" valign="top" itemprop="name">
<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?>
</td>
<?php endif; ?>
<?php if ($this->jemsettings->showlocate == 1) : ?>
<td headers="jem_location_cat<?php echo $this->catrow->id; ?>" align="left" valign="top">
<?php
if (!empty($row->venue)) :
if (($this->jemsettings->showlinkvenue == 1) && !empty($row->venueslug)) :
echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>";
else :
echo $this->escape($row->venue);
endif;
else :
echo '-';
endif;
?>
</td>
<?php endif; ?>
<?php if ($this->jemsettings->showcity == 1) : ?>
<td headers="jem_city_cat<?php echo $this->catrow->id; ?>" align="left" valign="top">
<?php echo !empty($row->city) ? $this->escape($row->city) : '-'; ?>
</td>
<?php endif; ?>
<?php if ($this->jemsettings->showstate == 1) : ?>
<td headers="jem_state_cat<?php echo $this->catrow->id; ?>" align="left" valign="top">
<?php echo !empty($row->state) ? $this->escape($row->state) : '-'; ?>
</td>
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<td headers="jem_category_cat<?php echo $this->catrow->id; ?>" align="left" valign="top">
<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?>
</td>
<?php endif; ?>
</tr>
<?php $odd = 1 - $odd; ?>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div>

View File

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

View File

@ -0,0 +1,107 @@
<?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;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
?>
<div id="jem" class="jem_categories<?php echo $this->pageclass_sfx;?>">
<div class="buttons">
<?php
$btn_params = array('id' => $this->id, 'task' => $this->task, 'print_link' => $this->print_link, 'archive_link' => $this->archive_link);
echo JemOutput::createButtonBar($this->getName(), $this->permissions, $btn_params);
?>
</div>
<?php if ($this->params->get('show_page_heading', 1)) : ?>
<h1 class="componentheading">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php foreach ($this->rows as $row) : ?>
<div class="jem cat_id<?php echo $row->id; ?>">
<h2>
<?php echo HTMLHelper::_('link', Route::_($row->linktarget), $this->escape($row->catname)); ?>
</h2>
<?php if (($this->jemsettings->discatheader) && (!empty($row->image))) : ?>
<div class="jem-catimg">
<?php $cimage = JemImage::flyercreator($row->image, 'category'); ?>
<?php echo JemOutput::flyer($row, $cimage, 'category'); ?>
</div>
<?php endif; ?>
<div class="description">
<?php echo $row->description; ?>
<?php if ($i = count($row->subcats)) : ?>
<h3 class="subcategories">
<?php echo Text::_('COM_JEM_SUBCATEGORIES'); ?>
</h3>
<div class="subcategorieslist">
<?php foreach ($row->subcats as $sub) : ?>
<strong>
<a href="<?php echo Route::_(JemHelperRoute::getCategoryRoute($sub->slug, $this->task)); ?>">
<?php echo $this->escape($sub->catname); ?></a>
</strong> <?php echo '(' . ($sub->assignedevents != null ? $sub->assignedevents : 0) . (--$i ? '),' : ')'); ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<div class="jem-clear">
</div>
<!--table-->
<?php
if ($this->params->get('detcat_nr', 0) > 0) {
$this->catrow = $row;
echo '<h3>'.TEXT::_('COM_JEM_EVENTS').'</h3>';
if (empty($this->jemsettings->tablewidth)) :
echo $this->loadTemplate('jem_eventslist'); // The new layout
else :
echo $this->loadTemplate('jem_eventslist_small'); // Similar to the old table-layout
endif;
}
?>
<div class="jem-readmore">
<a href="<?php echo Route::_($row->linktarget); ?>" title="<?php echo Text::_('COM_JEM_CALENDAR_SHOWALL'); ?>">
<button class="buttonfilter btn">
<?php echo Text::_('COM_JEM_CALENDAR_SHOWALL') ?>
<?php if ($row->assignedevents > 1) :
echo ' - '.$row->assignedevents.' '.TEXT::_('COM_JEM_EVENTS');
elseif ($row->assignedevents == 1) :
echo ' - '.$row->assignedevents.' '.TEXT::_('COM_JEM_EVENT');
else :
echo '- 0 '.TEXT::_('COM_JEM_EVENTS');
endif;
?>
</button>
</a>
</div>
</div>
<?php
if ($row !== end($this->rows)) :
echo '<hr class="jem-hr">';
endif;
endforeach; ?>
<!--pagination-->
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<!--copyright-->
<div class="copyright">
<?php echo JemOutput::footer( ); ?>
</div>
</div>

View File

@ -0,0 +1,249 @@
<?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;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Router\Route;
$uri = Uri::getInstance();
if (empty($this->catrow->events)) { return; }
?>
<style>
<?php
$imagewidth = 'inherit';
if ($this->jemsettings->imagewidth != 0) {
$imagewidth = $this->jemsettings->imagewidth / 2;
$imagewidth = $imagewidth.'px';
}
$imagewidthstring = 'jem-imagewidth';
if (JemHelper::jemStringContains($this->params->get('pageclass_sfx'), $imagewidthstring)) {
$pageclass_sfx = $this->params->get('pageclass_sfx');
$imagewidthpos = strpos($pageclass_sfx, $imagewidthstring);
$spacepos = strpos($pageclass_sfx, ' ', $imagewidthpos);
if ($spacepos === false) {
$spacepos = strlen($pageclass_sfx);
}
$startpos = $imagewidthpos + strlen($imagewidthstring);
$endpos = $spacepos - $startpos;
$imagewidth = substr($pageclass_sfx, $startpos, $endpos);
}
$imageheight = 'auto';
$imageheigthstring = 'jem-imageheight';
if (JemHelper::jemStringContains($this->params->get('pageclass_sfx'), $imageheigthstring)) {
$pageclass_sfx = $this->params->get('pageclass_sfx');
$imageheightpos = strpos($pageclass_sfx, $imageheigthstring);
$spacepos = strpos($pageclass_sfx, ' ', $imageheightpos);
if ($spacepos === false) {
$spacepos = strlen($pageclass_sfx);
}
$startpos = $imageheightpos + strlen($imageheigthstring);
$endpos = $spacepos - $startpos;
$imageheight = substr($pageclass_sfx, $startpos, $endpos);
}
?>
#jem .jem-list-img {
width: <?php echo $imagewidth; ?>;
}
#jem .jem-list-img img {
width: <?php echo $imagewidth; ?>;
height: <?php echo $imageheight; ?>;
}
@media not print {
@media only all and (max-width: 47.938rem) {
#jem .jem-list-img {
width: 100%;
}
#jem .jem-list-img img {
width: <?php echo $imagewidth; ?>;
height: <?php echo $imageheight; ?>;
}
}
}
</style>
<ul class="eventlist">
<?php if (empty($this->catrow->events)) : ?>
<li class="jem-event"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></li>
<?php else : ?>
<?php
// Safari has problems with the "onclick" element in the <li>. It covers the links to location and category etc.
// This detects the browser and just writes the onclick attribute if the broswer is not Safari.
$isSafari = false;
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') && !strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome')) {
$isSafari = true;
}
?>
<?php foreach ($this->catrow->events as $row) : ?>
<?php if (!empty($row->featured)) : ?>
<li class="jem-event jem-row jem-justify-start jem-featured event_id<?php echo $row->id . $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari) && ($this->jemsettings->gddisabled == 0)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"'; endif; ?>>
<?php else : ?>
<?php $odd = 0; ?>
<li class="jem-event jem-row jem-justify-start jem-odd<?php echo ($odd +1) . ' event_id' . $row->id . $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari) && ($this->jemsettings->gddisabled == 0)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"'; endif; ?>>
<?php endif; ?>
<?php if (($this->jemsettings->showeventimage == 1) && (!empty($row->datimage))): ?>
<div headers="jem_eventimage" class="jem-list-img" >
<?php
$dimage = JemImage::flyercreator($row->datimage, 'event');
echo JemOutput::flyer($row, $dimage, 'event');
?>
</div>
<?php endif; ?>
<div class="jem-event-details" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari) && ($this->jemsettings->gddisabled == 1)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"'; endif; ?>>
<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : // Display title as title of jem-event with link ?>
<h4 title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>">
<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"><?php echo $this->escape($row->title); ?></a>
<?php echo JemOutput::recurrenceicon($row); ?>
<?php echo JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</h4>
<?php elseif (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : // Display title as title of jem-event without link ?>
<h4 title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>">
<?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</h4>
<?php elseif (($this->jemsettings->showtitle == 0) && ($this->jemsettings->showdetails == 1)) : // Display date as title of jem-event with link ?>
<h4>
<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>">
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes);
?>
</a>
<?php echo JemOutput::recurrenceicon($row); ?>
<?php echo JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</h4>
<?php else : // Display date as title of jem-event without link ?>
<h4>
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes);
?>
<?php echo JemOutput::recurrenceicon($row); ?>
<?php echo JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</h4>
<?php endif; ?>
<?php // Display other information below in a row ?>
<div class="jem-list-row">
<?php if ($this->jemsettings->showtitle == 1) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags(JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime)); ?>" >
<i class="far fa-clock" aria-hidden="true"></i>
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes);
?>
</div>
<?php endif; ?>
<?php if ($this->jemsettings->showtitle == 0) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>">
<i class="fa fa-comment" aria-hidden="true"></i>
<?php echo $this->escape($row->title); ?>
</div>
<?php endif; ?>
<?php if (($this->jemsettings->showlocate == 1) && (!empty($row->locid))) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$this->escape($row->venue); ?>">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<?php if ($this->jemsettings->showlinkvenue == 1) : ?>
<?php echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; ?>
<?php else : ?>
<?php echo $this->escape($row->venue); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (($this->jemsettings->showcity == 1) && (!empty($row->city))) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$this->escape($row->city); ?>">
<i class="fa fa-building" aria-hidden="true"></i>
<?php echo $this->escape($row->city); ?>
</div>
<?php endif; ?>
<?php if (($this->jemsettings->showstate == 1) && (!empty($row->state))): ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$this->escape($row->state); ?>">
<i class="fa fa-map" aria-hidden="true"></i>
<?php echo $this->escape($row->state); ?>
</div>
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<div class="jem-event-info" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist))); ?>">
<i class="fa fa-tag" aria-hidden="true"></i>
<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?>
</div>
<?php endif; ?>
<?php if (($this->jemsettings->showatte == 1) && (!empty($row->regCount))) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_ATTENDEES').': '.$this->escape($row->regCount); ?>">
<i class="fa fa-user" aria-hidden="true"></i>
<?php echo $this->escape($row->regCount); ?>
</div>
<?php endif; ?>
</div>
</div>
<meta itemprop="name" content="<?php echo $this->escape($row->title); ?>" />
<meta itemprop="url" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" />
<meta itemprop="identifier" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" />
<div itemtype="https://schema.org/Place" itemscope itemprop="location" style="display: none;" >
<?php if (!empty($row->locid)) : ?>
<meta itemprop="name" content="<?php echo $this->escape($row->venue); ?>" />
<?php else : ?>
<meta itemprop="name" content="None" />
<?php endif; ?>
<?php
$microadress = '';
if (!empty($row->city)) {
$microadress .= $this->escape($row->city);
}
if (!empty($microadress)) {
$microadress .= ', ';
}
if (!empty($row->state)) {
$microadress .= $this->escape($row->state);
}
if (empty($microadress)) {
$microadress .= '-';
}
?>
<meta itemprop="address" content="<?php echo $microadress; ?>" />
</div>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
<?php echo JemOutput::lightbox(); ?>

View File

@ -0,0 +1,232 @@
<?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\Uri\Uri;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
$uri = Uri::getInstance();
if (empty($this->catrow->events)) { return; }
?>
<style>
<?php if (!empty($this->jemsettings->tablewidth)) : ?>
#jem #adminForm {
width: <?php echo ($this->jemsettings->tablewidth); ?>;
}
<?php endif; ?>
.jem-sort #jem_date,
#jem .jem-event .jem-event-date {
<?php if (!empty($this->jemsettings->datewidth)) : ?>
flex: 1 <?php echo ($this->jemsettings->datewidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_title,
#jem .jem-event .jem-event-title {
<?php if (($this->jemsettings->showtitle == 1) && (!empty($this->jemsettings->titlewidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->titlewidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_location,
#jem .jem-event .jem-event-venue {
<?php if (($this->jemsettings->showlocate == 1) && (!empty($this->jemsettings->locationwidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->locationwidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_city,
#jem .jem-event .jem-event-city {
<?php if (($this->jemsettings->showcity == 1) && (!empty($this->jemsettings->citywidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->citywidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_state,
#jem .jem-event .jem-event-state {
<?php if (($this->jemsettings->showstate == 1) && (!empty($this->jemsettings->statewidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->statewidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_category,
#jem .jem-event .jem-event-category {
<?php if (($this->jemsettings->showcat == 1) && (!empty($this->jemsettings->catfrowidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->catfrowidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
.jem-sort #jem_atte,
#jem .jem-event .jem-event-attendees {
<?php if (($this->jemsettings->showatte == 1) && (!empty($this->jemsettings->attewidth))) : ?>
flex: 1 <?php echo ($this->jemsettings->attewidth); ?>;
<?php else : ?>
flex: 1;
<?php endif; ?>
}
</style>
<div class="jem-sort jem-sort-small">
<div class="jem-list-row jem-small-list">
<div id="jem_date" class="sectiontableheader"><i class="far fa-clock" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_DATE'); ?></div>
<?php if ($this->jemsettings->showtitle == 1) : ?>
<div id="jem_title" class="sectiontableheader"><i class="fa fa-comment" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_TITLE'); ?></div>
<?php endif; ?>
<?php if ($this->jemsettings->showlocate == 1) : ?>
<div id="jem_location" class="sectiontableheader"><i class="fa fa-map-marker" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_LOCATION'); ?></div>
<?php endif; ?>
<?php if ($this->jemsettings->showcity == 1) : ?>
<div id="jem_city" class="sectiontableheader"><i class="fa fa-building" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_CITY'); ?></div>
<?php endif; ?>
<?php if ($this->jemsettings->showstate == 1) : ?>
<div id="jem_state" class="sectiontableheader"><i class="fa fa-map" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_STATE'); ?></div>
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<div id="jem_category" class="sectiontableheader"><i class="fa fa-tag" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_CATEGORY'); ?></div>
<?php endif; ?>
</div>
</div>
<ul class="eventlist">
<?php if (empty($this->catrow->events)) : ?>
<li class="jem-event"><?php echo Text::_('COM_JEM_NO_EVENTS'); ?></li>
<?php else : ?>
<?php
// Safari has problems with the "onclick" element in the <li>. It covers the links to location and category etc.
// This detects the browser and just writes the onclick attribute if the broswer is not Safari.
$isSafari = false;
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Safari') && !strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome')) {
$isSafari = true;
}
?>
<?php foreach ($this->catrow->events as $row) : ?>
<?php if (!empty($row->featured)) : ?>
<li class="jem-event jem-list-row jem-small-list jem-featured event-id<?php echo $row->id.$this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php else : ?>
<li class="jem-event jem-list-row jem-small-list jem-odd<?php echo ($row->odd +1) . $this->params->get('pageclass_sfx'); ?>" itemscope="itemscope" itemtype="https://schema.org/Event">
<?php endif; ?>
<div class="jem-event-info-small jem-event-date" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags(JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes, $this->jemsettings->showtime)); ?>" <?php if ($this->jemsettings->showdetails == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.Route::_(JemHelperRoute::getEventRoute($row->slug)).'\'"'; endif; ?>>
<i class="far fa-clock" aria-hidden="true"></i>
<?php
echo JemOutput::formatShortDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes, $this->jemsettings->showtime);
echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times,
$row->enddates, $row->endtimes);
?>
<?php if ($this->jemsettings->showtitle == 0) : ?>
<?php echo JemOutput::recurrenceicon($row); ?>
<?php echo JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if ($this->jemsettings->showtitle == 1) : ?>
<div class="jem-event-info-small jem-event-title" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$this->escape($row->title); ?>">
<i class="fa fa-comment" aria-hidden="true"></i>
<a href="<?php echo Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>"><?php echo $this->escape($row->title); ?></a>
<?php echo JemOutput::recurrenceicon($row) . JemOutput::publishstateicon($row); ?>
<?php if (!empty($row->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->jemsettings->showlocate == 1) : ?>
<?php if (!empty($row->locid)) : ?>
<div class="jem-event-info-small jem-event-venue" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$this->escape($row->venue); ?>">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<?php if ($this->jemsettings->showlinkvenue == 1) : ?>
<?php echo "<a href='".Route::_(JemHelperRoute::getVenueRoute($row->venueslug))."'>".$this->escape($row->venue)."</a>"; ?>
<?php else : ?>
<?php echo $this->escape($row->venue); ?>
<?php endif; ?>
</div>
<?php else : ?>
<div class="jem-event-info-small jem-event-venue"><i class="fa fa-map-marker" aria-hidden="true"></i> -</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->jemsettings->showcity == 1) : ?>
<?php if (!empty($row->city)) : ?>
<div class="jem-event-info-small jem-event-city" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$this->escape($row->city); ?>">
<i class="fa fa-building" aria-hidden="true"></i>
<?php echo $this->escape($row->city); ?>
</div>
<?php else : ?>
<div class="jem-event-info-small jem-event-city"><i class="fa fa-building" aria-hidden="true"></i> -</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->jemsettings->showstate == 1) : ?>
<?php if (!empty($row->state)) : ?>
<div class="jem-event-info-small jem-event-state" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$this->escape($row->state); ?>">
<i class="fa fa-map" aria-hidden="true"></i>
<?php echo $this->escape($row->state); ?>
</div>
<?php else : ?>
<div class="jem-event-info-small jem-event-state"><i class="fa fa-map" aria-hidden="true"></i> -</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->jemsettings->showcat == 1) : ?>
<div class="jem-event-info-small jem-event-category" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist))); ?>">
<i class="fa fa-tag" aria-hidden="true"></i>
<?php echo implode(", ", JemOutput::getCategoryList($row->categories, $this->jemsettings->catlinklist)); ?>
</div>
<?php endif; ?>
<meta itemprop="name" content="<?php echo $this->escape($row->title); ?>" />
<meta itemprop="url" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" />
<meta itemprop="identifier" content="<?php echo rtrim($uri->base(), '/').Route::_(JemHelperRoute::getEventRoute($row->slug)); ?>" />
<div itemtype="https://schema.org/Place" itemscope itemprop="location" style="display: none;" >
<?php if (!empty($row->locid)) : ?>
<meta itemprop="name" content="<?php echo $this->escape($row->venue); ?>" />
<?php else : ?>
<meta itemprop="name" content="None" />
<?php endif; ?>
<?php
$microadress = '';
if (!empty($row->city)) {
$microadress .= $this->escape($row->city);
}
if (!empty($microadress)) {
$microadress .= ', ';
}
if (!empty($row->state)) {
$microadress .= $this->escape($row->state);
}
if (empty($microadress)) {
$microadress .= '-';
}
?>
<meta itemprop="address" content="<?php echo $microadress; ?>" />
</div>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>

View File

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

View File

@ -0,0 +1,121 @@
<?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\Uri\Uri;
use Joomla\CMS\Factory;
use Joomla\CMS\Router\Route;
/**
* Categories-View
*/
class JemViewCategories extends JemView
{
/**
* Creates the Categories-View
*/
public function display($tpl = null)
{
$app = Factory::getApplication();
$document = $app->getDocument();
$jemsettings = JemHelper::config();
$user = JemFactory::getUser();
$print = $app->input->getBool('print', false);
$task = $app->input->getCmd('task', '');
$id = $app->input->getInt('id', 1);
$model = $this->getModel();
$uri = Uri::getInstance();
$rows = $this->get('Data');
$pagination = $this->get('Pagination');
// Load css
JemHelper::loadCss('jem');
JemHelper::loadCustomCss();
JemHelper::loadCustomTag();
if ($print) {
JemHelper::loadCss('print');
$document->setMetaData('robots', 'noindex, nofollow');
}
// get menu information
$menu = $app->getMenu();
$menuitem = $menu->getActive();
$params = $app->getParams('com_jem');
$pagetitle = $params->def('page_title', $menuitem->title);
$pageheading = $params->def('page_heading', $params->get('page_title'));
$pageclass_sfx = $params->get('pageclass_sfx');
// pathway
$pathway = $app->getPathWay();
if ($menuitem) {
$pathwayKeys = array_keys($pathway->getPathway());
$lastPathwayEntryIndex = end($pathwayKeys);
$pathway->setItemName($lastPathwayEntryIndex, $menuitem->title);
//$pathway->setItemName(1, $menuitem->title);
}
if ($task == 'archive') {
$pathway->addItem(Text::_('COM_JEM_ARCHIVE'), Route::_('index.php?option=com_jem&view=categories&id='.$id.'&task=archive'));
$print_link = Route::_('index.php?option=com_jem&view=categories&id='.$id.'&task=archive&print=1&tmpl=component');
$pagetitle .= ' - ' . Text::_('COM_JEM_ARCHIVE');
$pageheading .= ' - ' . Text::_('COM_JEM_ARCHIVE');
$archive_link = Route::_('index.php?option=com_jem&view=categories');
$params->set('page_heading', $pageheading);
} else {
$print_link = Route::_('index.php?option=com_jem&view=categories&id='.$id.'&print=1&tmpl=component');
$archive_link = $uri->toString();
}
// Add site name to title if param is set
if ($app->get('sitename_pagetitles', 0) == 1) {
$pagetitle = Text::sprintf('JPAGETITLE', $app->get('sitename'), $pagetitle);
}
elseif ($app->get('sitename_pagetitles', 0) == 2) {
$pagetitle = Text::sprintf('JPAGETITLE', $pagetitle, $app->get('sitename'));
}
// Set Page title
$document->setTitle($pagetitle);
$document->setMetaData('title' , $pagetitle);
// Check if the user has permission to add things
$permissions = new stdClass();
$permissions->canAddEvent = $user->can('add', 'event');
$permissions->canAddVenue = $user->can('add', 'venue');
// Get events if requested
if (!empty($rows) && $params->get('detcat_nr', 0) > 0) {
foreach($rows as $row) {
$row->events = $model->getEventdata($row->id);
}
}
$this->rows = $rows;
$this->task = $task;
$this->params = $params;
$this->dellink = $permissions->canAddEvent; // deprecated
$this->pagination = $pagination;
$this->item = $menuitem;
$this->jemsettings = $jemsettings;
$this->pagetitle = $pagetitle;
$this->print_link = $print_link;
$this->archive_link = $archive_link;
$this->model = $model;
$this->id = $id;
$this->pageclass_sfx = $pageclass_sfx ? htmlspecialchars($pageclass_sfx) : $pageclass_sfx;
$this->permissions = $permissions;
parent::display($tpl);
}
}
?>