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,96 @@
<?php
/**
* @version 2.3.6
* @package JEM
* @subpackage JEM Wide Module
* @copyright (C) 2013-2020 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
JHtml::_('behavior.modal', 'a.flyermodal');
?>
<div class="jemmodulewide<?php echo $params->get('moduleclass_sfx')?>" id="jemmodulewide">
<?php if (count($list)) : ?>
<table class="eventset" summary="mod_jem_wide">
<colgroup>
<col width="30%" class="jemmodw_col_title" />
<col width="20%" class="jemmodw_col_category" />
<col width="20%" class="jemmodw_col_venue" />
<col width="15%" class="jemmodw_col_eventimage" />
<col width="15%" class="jemmodw_col_venueimage" />
</colgroup>
<?php foreach ($list as $item) : ?>
<tr>
<td valign="top">
<?php if ($item->eventlink) : ?>
<span class="event-title">
<a href="<?php echo $item->eventlink; ?>" title="<?php echo $item->fulltitle; ?>"><?php echo $item->title; ?></a>
</span>
<?php else : ?>
<span class="event-title">
<?php echo $item->title; ?>
</span>
<?php endif; ?>
<br />
<span class="date" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->date; ?></span>
<?php
if ($item->time && $params->get('datemethod', 1) == 1) :
?>
<span class="time" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->time; ?></span>
<?php endif; ?>
</td>
<td>
<?php if (!empty($item->catname)) : ?>
<span class="category"><?php echo $item->catname; ?></span>
<?php endif; ?>
</td>
<td>
<?php if (!empty($item->venue)) : ?>
<?php if ($item->venuelink) : ?>
<span class="venue-title"><a href="<?php echo $item->venuelink; ?>" title="<?php echo $item->venue; ?>"><?php echo $item->venue; ?></a></span>
<?php else : ?>
<span class="venue-title"><?php echo $item->venue; ?></span>
<?php endif; ?>
<?php endif; ?>
</td>
<td align="center" class="event-image-cell">
<?php if ($params->get('use_modal')) : ?>
<?php if ($item->eventimageorig) {
$image = $item->eventimageorig;
} else {
$image = '';
} ?>
<a href="<?php echo $image; ?>" class="flyermodal" title="<?php echo $item->title; ?>">
<?php endif; ?>
<img src="<?php echo $item->eventimage; ?>" alt="<?php echo $item->title; ?>" class="image-preview" />
<?php if ($item->eventlink) : ?>
</a>
<?php endif; ?>
</td>
<td align="center" class="event-image-cell">
<?php if ($params->get('use_modal')) : ?>
<a href="<?php echo $item->venueimageorig; ?>" class="flyermodal" title="<?php echo $item->venue; ?>">
<?php endif; ?>
<img src="<?php echo $item->venueimage; ?>" alt="<?php echo $item->venue; ?>" class="image-preview" />
<?php if ($item->venuelink) : ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : ?>
<?php echo JText::_('MOD_JEM_WIDE_NO_EVENTS'); ?>
<?php endif; ?>
</div>

View File

@ -0,0 +1,65 @@
/**
* @version 2.3.6
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2020 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
div#jemmodulewide {
width: 100%;
}
div#jemmodulewide .eventset {
width: 100%;
margin-bottom: 10px;
padding: 5px;
border-bottom: 1px dotted silver;
}
div#jemmodulewide span.event-title {
padding-left: 20px;
background: url(../img/flag_red.png) no-repeat;
/*font-size: smaller;*/
}
div#jemmodulewide span.time {
padding-left: 20px;
background: url(../img/time.png) no-repeat;
padding-top: 2px;
}
div#jemmodulewide span.date {
padding-left: 20px;
background: url(../img/date.png) no-repeat;
padding-top: 2px;
}
div#jemmodulewide span.category {
position: relative;
padding-left: 20px;
background: url(../img/category.png) no-repeat;
/*font-size: smaller;*/
}
div#jemmodulewide span.venue-title {
position: relative;
padding-left: 20px;
background: url(../img/venue.png) no-repeat;
/*font-size: smaller;*/
}
div#jemmodulewide .event-image-cell {
}
div#jemmodulewide .venue-image-cell {
}
div#jemmodulewide .image-preview {
height: 35px;
border: 1px solid #CCCCCC;
padding: 3px;
background-color: white;
margin: 3px;
}

View File

@ -0,0 +1,10 @@
/**
* @version 2.3.6
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2020 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
/* This template uses images in any case, so keep this empty file to prevent legacy fallback. */

View File

@ -0,0 +1,10 @@
/**
* @version 2.3.6
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2020 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
/* This template uses images in any case, so keep this empty file to prevent legacy fallback. */

View File

@ -0,0 +1,113 @@
<?php
/**
* @package JEM
* @subpackage JEM Wide Module
* @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\Factory;
use Joomla\CMS\Uri\Uri;
?>
<div class="jemmodulewide<?php echo $params->get('moduleclass_sfx')?>" id="jemmodulewide">
<?php if (count($list)) : ?>
<table class="eventset">
<colgroup>
<col style="width:30%" class="jemmodw_col_title" />
<col style="width:20%" class="jemmodw_col_category" />
<col style="width:20%" class="jemmodw_col_venue" />
<col style="width:15%" class="jemmodw_col_eventimage" />
<col style="width:15%" class="jemmodw_col_venueimage" />
</colgroup>
<?php foreach ($list as $item) : ?>
<tr class="event_id<?php echo $item->eventid; ?>" itemprop="event" itemscope itemtype="https://schema.org/Event">
<td style="vertical-align: top;">
<?php if ($item->eventlink) : ?>
<span class="event-title" itemprop="name">
<a href="<?php echo $item->eventlink; ?>" itemprop="url" title="<?php echo $item->fulltitle; ?>"><?php echo $item->title; ?></a>
</span>
<?php else : ?>
<span class="event-title" itemprop="name">
<?php echo $item->title; ?>
</span>
<?php endif; ?>
<br />
<span class="date" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->date; ?></span>
<?php if ($item->time && $params->get('datemethod', 1) == 1) :
?>
<span class="time" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->time; ?></span>
<?php endif;
echo $item->dateschema; ?>
</td>
<td>
<?php if (!empty($item->catname)) : ?>
<span class="category"><?php echo $item->catname; ?></span>
<?php endif; ?>
</td>
<td itemprop="location" itemscope itemtype="https://schema.org/Place">
<?php if (!empty($item->venue)) : ?>
<?php if ($item->venuelink) : ?>
<span class="venue-title" itemprop="name"><a href="<?php echo $item->venuelink; ?>" title="<?php echo $item->venue; ?>" itemprop="url"><?php echo $item->venue; ?></a></span>
<?php else : ?>
<span class="venue-title" itemprop="name"><?php echo $item->venue; ?></span>
<?php endif; ?>
<div class="address" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress" style="display:none;">
<meta itemprop="streetAddress" content="<?php echo $item->street; ?>" />
<meta itemprop="addressLocality" content="<?php echo $item->city; ?>" />
<meta itemprop="addressRegion" content="<?php echo $item->state; ?>" />
<meta itemprop="postalCode" content="<?php echo $item->postalCode; ?>" />
</div>
<?php endif; ?>
</td>
<td class="event-image-cell">
<?php if ($params->get('use_modal')) : ?>
<?php if ($item->eventimageorig) {
$image = $item->eventimageorig;
$document = Factory::getDocument();
$document->addStyleSheet(Uri::base() .'media/com_jem/css/lightbox.min.css');
$document->addScript(Uri::base() . 'media/com_jem/js/lightbox.min.js');
echo '<script>lightbox.option({
\'showImageNumberLabel\': false,
})
</script>';
} else {
$image = '';
} ?>
<a href="<?php echo $image; ?>" class="flyermodal" rel="lightbox" data-lightbox="wide-flyerimage-<?php echo $item->eventid ?>" data-title="<?php echo Text::_('COM_JEM_EVENT') .': ' . $item->title; ?>">
<?php endif; ?>
<img src="<?php echo $item->eventimage; ?>" alt="<?php echo $item->title; ?>" class="image-preview" title="<?php echo Text::_('COM_JEM_CLICK_TO_ENLARGE'); ?>" itemprop="image" />
<?php if ($params->get('use_modal')) : ?>
</a>
<?php endif; ?>
</td>
<td class="event-image-cell">
<?php if ($params->get('use_modal')) : ?>
<a href="<?php echo $item->venueimageorig; ?>" class="flyermodal" rel="lightbox" data-lightbox="wide-flyerimage-<?php echo $item->eventid ?>" title="<?php echo $item->venue; ?>" data-title="<?php echo Text::_('COM_JEM_VENUE') .': ' . $item->venue; ?>">
<?php endif; ?>
<img src="<?php echo $item->venueimage; ?>" alt="<?php echo $item->venue; ?>" class="image-preview" title="<?php echo Text::_('COM_JEM_CLICK_TO_ENLARGE'); ?>" />
<?php if ($params->get('use_modal')) : ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php else : ?>
<?php echo Text::_('MOD_JEM_WIDE_NO_EVENTS'); ?>
<?php endif; ?>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

View File

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

View File

@ -0,0 +1,54 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
div#jemmodulewide {
width: 100%;
}
div#jemmodulewide .eventset {
width: 100%;
margin-bottom: 10px;
padding: 5px;
border-bottom: 1px dotted silver;
}
div#jemmodulewide span.event-title {
}
div#jemmodulewide span.time {
padding-top: 2px;
}
div#jemmodulewide span.date {
padding-top: 2px;
}
div#jemmodulewide span.category {
position: relative;
/*font-size: smaller;*/
}
div#jemmodulewide span.venue-title {
position: relative;
/*font-size: smaller;*/
}
div#jemmodulewide .event-image-cell {
text-align: center;
}
div#jemmodulewide .venue-image-cell {
}
div#jemmodulewide .image-preview {
height: 35px;
border: 1px solid #CCCCCC;
padding: 3px;
background-color: white;
margin: 3px;
}

View File

@ -0,0 +1,39 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
div#jemmodulewide span.event-title:before,
div#jemmodulewide .time:before,
div#jemmodulewide div.date:before,
div#jemmodulewide .category:before,
div#jemmodulewide .venue-title:before {
font-family:var(--fa-style-family,"Font Awesome 6 Free", "Font Awesome 5 Free");
font-weight:var(--fa-style,900);
padding-right: 4px;
font-weight: 600;
}
div#jemmodulewide span.event-title:before {
content:"\f024";
}
div#jemmodulewide .time:before {
content:"\f017";
}
div#jemmodulewide div.date:before {
content:"\f133";
}
div#jemmodulewide .category:before {
content:"\f02b";
}
div#jemmodulewide .venue-title:before {
content:"\f041";
}

View File

@ -0,0 +1,32 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
div#jemmodulewide span.event-title {
padding-left: 20px;
background: url(img/flag_red.png) no-repeat;
}
div#jemmodulewide span.time {
padding-left: 20px;
background: url(img/time.png) no-repeat;
}
div#jemmodulewide span.date {
padding-left: 20px;
background: url(img/date.png) no-repeat;
}
div#jemmodulewide span.category {
padding-left: 20px;
background: url(img/category.png) no-repeat;
}
div#jemmodulewide span.venue-title {
padding-left: 20px;
background: url(img/building.png) no-repeat;
}

View File

@ -0,0 +1,29 @@
<?php
/**
* @package JEM
* @subpackage JEM Wide Module
* @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;
$jemsettings = JemHelper::config();
echo '<div class="jemmodulewide'.$params->get('moduleclass_sfx').'" id="jemmodulewide">';
if (count($list)) {
if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-tablestyle')) {
include('default_jem_eventslist_small.php'); // Similar to the old table-layout
} else {
include("default_jem_eventslist.php"); // The new layout
}
} else {
echo Text::_('MOD_JEM_WIDE_NO_EVENTS');
}
echo '</div>';
?>

View File

@ -0,0 +1,205 @@
<?php
/**
* @package JEM
* @subpackage JEM Wide Module
* @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\Factory;
use Joomla\CMS\Uri\Uri;
$jemsettings = JemHelper::config();
$imagewidth = 'inherit';
if ($jemsettings->imagewidth != 0) {
$imagewidth = $jemsettings->imagewidth / 2;
$imagewidth = $imagewidth.'px';
}
$imagewidthstring = 'jem-imagewidth';
if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), $imagewidthstring)) {
$pageclass_sfx = $params->get('moduleclass_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($params->get('moduleclass_sfx'), $imageheigthstring)) {
$pageclass_sfx = $params->get('moduleclass_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);
}
$document = Factory::getDocument();
$css = '
#jemmodulewide .jem-list-img {
width: ' . $imagewidth . ';
}
#jemmodulewide .jem-list-img img {
width: ' . $imagewidth . ';
height: ' . $imageheight . ';
}
@media not print {
@media only all and (max-width: 47.938rem) {
#jemmodulewide .jem-event-details {
flex-basis: 100%;
}
#jemmodulewide .jem-list-img img {
width: ' . $imagewidth . ';
height: ' . $imageheight . ';
}
}
}';
$document->addStyleDeclaration($css);
?>
<ul class="eventlist">
<?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 ($list as $item) : ?>
<?php if (!empty($item->featured)) : ?>
<li itemprop="event" itemscope itemtype="https://schema.org/Event" class="jem-event jem-row jem-justify-start jem-featured <?php echo ' event_id'.$item->eventid; ?>" <?php if ($params->get('linkevent') == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.$item->eventlink.'\'"'; endif; ?> >
<?php else : ?>
<li itemprop="event" itemscope itemtype="https://schema.org/Event" class="jem-event jem-row jem-justify-start <?php echo ' event_id'.$item->eventid; ?>" <?php if ($params->get('linkevent') == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.$item->eventlink.'\'"'; endif; ?> >
<?php endif; ?>
<div class="jem-event-details" <?php if ($params->get('linkevent') == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.$item->eventlink.'\'"'; endif; ?>>
<?php if ($params->get('linkevent') == 1) : // Display title as title of jem-event with link ?>
<h4 itemprop="name" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$item->fulltitle; ?>" content="<?php echo $item->fulltitle; ?>">
<a href="<?php echo $item->eventlink; ?>" ><?php echo $item->title; ?></a>
<?php echo JemOutput::recurrenceicon($item); ?>
<?php echo JemOutput::publishstateicon($item); ?>
<?php if (!empty($item->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</h4>
<?php elseif ($params->get('linkevent') == 0) : //Display title as title of jem-event without link ?>
<h4 itemprop="name" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$item->fulltitle; ?>">
<?php echo $item->title . JemOutput::recurrenceicon($item) . JemOutput::publishstateicon($item); ?>
<?php if (!empty($item->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 ($item->date && $params->get('datemethod', 1) == 2) :?>
<div class="jem-event-info date" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags($item->dateinfo); ?>">
<?php echo $item->date;
echo $item->dateschema; ?>
</div>
<?php elseif ($item->date && $params->get('datemethod', 1) == 1) : ?>
<div class="jem-event-info time" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags($item->dateinfo); ?>">
<?php echo $item->date;
echo $item->dateschema; ?>
</div>
<?php endif; ?>
<?php if (!empty($item->venue) && (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-novenue'))) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$item->venue; ?>" itemprop="location" itemscope itemtype="https://schema.org/Place">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<?php if ($params->get('linkvenue') == 1) : ?>
<?php echo "<a href='".$item->venuelink."'>".$item->venue."</a>"; ?>
<?php else : ?>
<?php echo $item->venue; ?>
<?php endif; ?>
<meta itemprop="name" content="<?php echo $item->venue; ?>" />
<div class="address" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress" style="display:none;">
<meta itemprop="streetAddress" content="<?php echo $item->street; ?>" />
<meta itemprop="addressLocality" content="<?php echo $item->city; ?>" />
<meta itemprop="addressRegion" content="<?php echo $item->state; ?>" />
<meta itemprop="postalCode" content="<?php echo $item->postalCode; ?>" />
</div>
</div>
<?php endif; ?>
<?php if ((!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocity')) && (!empty($item->city))) : ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$item->city; ?>">
<i class="fa fa-building" aria-hidden="true"></i>
<?php echo $item->city; ?>
</div>
<?php endif; ?>
<?php if ((!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nostate')) && (!empty($item->state))): ?>
<div class="jem-event-info" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$item->state; ?>">
<i class="fa fa-map" aria-hidden="true"></i>
<?php echo $item->state; ?>
</div>
<?php endif;?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocats')) : ?>
<div class="jem-event-info" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.$item->catname); ?>">
<i class="fa fa-tag" aria-hidden="true"></i>
<?php echo $item->catname; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-noimageevent') && (strpos($item->eventimage, 'blank.png') === false)) : ?>
<div class="jem-list-img" >
<?php if ($params->get('use_modal')) : ?>
<?php if ($item->eventimageorig) {
$image = $item->eventimageorig;
$document = Factory::getDocument();
$document->addStyleSheet(Uri::base() .'media/com_jem/css/lightbox.min.css');
$document->addScript(Uri::base() . 'media/com_jem/js/lightbox.min.js');
echo '<script>lightbox.option({
\'showImageNumberLabel\': false,
})
</script>';
} else {
$image = '';
} ?>
<a href="<?php echo $image; ?>" class="flyermodal" rel="lightbox" data-lightbox="wide-flyerimage-<?php echo $item->eventid ?>" data-title="<?php echo Text::_('COM_JEM_EVENT') .': ' . $item->title; ?>">
<?php endif; ?>
<img src="<?php echo $item->eventimage; ?>" itemprop="image" alt="<?php echo $item->fulltitle; ?>" class="image-preview" title="<?php echo Text::_('COM_JEM_CLICK_TO_ENLARGE'); ?>" />
<?php if ($params->get('use_modal')) : ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-noimagevenue') && (strpos($item->venueimage, 'blank.png') === false)) : ?>
<div class="jem-list-img" >
<?php if ($params->get('use_modal')) : ?>
<a href="<?php echo $item->venueimageorig; ?>" class="flyermodal" rel="lightbox" data-lightbox="wide-flyerimage-<?php echo $item->eventid ?>" title="<?php echo $item->venue; ?>" data-title="<?php echo Text::_('COM_JEM_VENUE') .': ' . $item->venue; ?>">
<?php endif; ?>
<img src="<?php echo $item->venueimage; ?>" alt="<?php echo $item->venue; ?>" class="image-preview" title="<?php echo Text::_('COM_JEM_CLICK_TO_ENLARGE'); ?>" />
<?php if ($params->get('use_modal')) : ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>

View File

@ -0,0 +1,135 @@
<?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="jem-sort jem-sort-small">
<div class="jem-list-row jem-small-list">
<div id="jem-date" class="sectiontableheader"><i class="fa fa-clock" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_DATE'); ?></div>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-notitle')) : ?>
<div id="jem-title" class="sectiontableheader"><i class="fa fa-comment-o" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_TITLE'); ?></div>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-novenue')) : ?>
<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 (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocity')) : ?>
<div id="jem-city" class="sectiontableheader"><i class="fa fa-building-o" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_CITY'); ?></div>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nostate')) : ?>
<div id="jem-state" class="sectiontableheader"><i class="fa fa-map-o" aria-hidden="true"></i>&nbsp;<?php echo Text::_('COM_JEM_TABLE_STATE'); ?></div>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocats')) : ?>
<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
// 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 ($list as $item) : ?>
<?php if (!empty($item->featured)) : ?>
<li itemprop="event" itemscope itemtype="https://schema.org/Event" class="jem-event jem-list-row jem-small-list jem-featured <?php echo ' event_id'.$item->eventid; ?>" <?php if ($params->get('linkevent') == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.$item->eventlink.'"'; endif; ?> >
<?php else : ?>
<li itemprop="event" itemscope itemtype="https://schema.org/Event" class="jem-event jem-list-row jem-small-list <?php echo ' event_id'.$item->eventid; ?>" <?php if ($params->get('linkevent') == 1 && (!$isSafari)) : echo 'onclick="location.href=\''.$item->eventlink.'\'"'; endif; ?> >
<?php endif; ?>
<div itemprop="event" itemscope itemtype="https://schema.org/Event" class="jem-event-info-small jem-event-date" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags($item->dateinfo); ?>">
<i class="fa fa-clock" aria-hidden="true"></i>
<?php
if ($item->date && $params->get('datemethod', 1) == 2) :
echo $item->date;
elseif ($item->date && $params->get('datemethod', 1) == 1) :
echo $item->dateinfo;
endif;
?>
<?php if (JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-notitle')) : ?>
<?php if (!empty($item->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-notitle')) : ?>
<div class="jem-event-info-small jem-event-title" title="<?php echo Text::_('COM_JEM_TABLE_TITLE').': '.$item->fulltitle; ?>" itemprop="name">
<i class="fa fa-comment" aria-hidden="true"></i>
<?php if ($params->get('linkevent') == 1) : ?>
<a href="<?php echo $item->eventlink; ?>">
<?php echo $item->title; ?>
</a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
<?php if (!empty($item->featured)) :?>
<i class="jem-featured-icon fa fa-exclamation-circle" aria-hidden="true"></i>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-novenue')) : ?>
<?php if (!empty($item->venue)) : ?>
<div class="jem-event-info-small jem-event-venue" title="<?php echo Text::_('COM_JEM_TABLE_LOCATION').': '.$item->venue; ?>" itemprop="location" itemscope itemtype="https://schema.org/Place">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<?php if ($params->get('linkvenue') == 1) : ?>
<?php echo "<a href='".$item->venuelink."'>".$item->venue."</a>"; ?>
<?php else : ?>
<?php echo $item->venue; ?>
<?php endif; ?>
<meta itemprop="name" content="<?php echo $item->venue; ?>" />
<div class="address" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress" style="display:none;">
<meta itemprop="streetAddress" content="<?php echo $item->street; ?>" />
<meta itemprop="addressLocality" content="<?php echo $item->city; ?>" />
<meta itemprop="addressRegion" content="<?php echo $item->state; ?>" />
<meta itemprop="postalCode" content="<?php echo $item->postalCode; ?>" />
</div>
</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 (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocity')) : ?>
<?php if (!empty($item->city)) : ?>
<div class="jem-event-info-small jem-event-city" title="<?php echo Text::_('COM_JEM_TABLE_CITY').': '.$item->city; ?>">
<i class="fa fa-building" aria-hidden="true"></i>
<?php echo $item->city; ?>
</div>
<?php else : ?>
<div class="jem-event-info-small jem-event-city"><i class="fa fa-building-o" aria-hidden="true"></i> -</div>
<?php endif; ?>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nostate')) : ?>
<?php if (!empty($item->state)) : ?>
<div class="jem-event-info-small jem-event-state" title="<?php echo Text::_('COM_JEM_TABLE_STATE').': '.$item->state; ?>">
<i class="fa fa-map" aria-hidden="true"></i>
<?php echo $item->state; ?>
</div>
<?php else : ?>
<div class="jem-event-info-small jem-event-state"><i class="fa fa-map-o" aria-hidden="true"></i> -</div>
<?php endif; ?>
<?php endif; ?>
<?php if (!JemHelper::jemStringContains($params->get('moduleclass_sfx'), 'jem-nocats')) : ?>
<div class="jem-event-info-small jem-event-category" title="<?php echo strip_tags(Text::_('COM_JEM_TABLE_CATEGORY').': '.$item->catname); ?>">
<i class="fa fa-tag" aria-hidden="true"></i>
<?php echo $item->catname; ?>
</div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>

View File

@ -0,0 +1,269 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
/* Hoftix for SqueezeBox Modal overlay destroying images on mobile phones */
#sbox-overlay {
width: 100% !important;
}
#sbox-window {
height: auto !important;
}
#sbox-content {
height: auto !important;
width: auto !important;
max-height: 100%;
max-width: 100%;
}
body.body-overlayed {
overflow: auto;
}
/* ----- */
#jemmodulewide .jem-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
#jemmodulewide .jem-sort {
hyphens: auto;
}
#jemmodulewide .jem-wrap-reverse {
flex-wrap: wrap-reverse;
}
#jemmodulewide .jem-nowrap {
flex-wrap: nowrap;
}
#jemmodulewide .jem-justify-start {
justify-content: flex-start;
}
#jemmodulewide .jem-dl:after {
clear: both;
}
#jemmodulewide .jem-dl {
margin: 0;
}
#jemmodulewide .jem-dl dt {
float: left;
width: 160px;
overflow: hidden;
clear: left;
text-align: left;
font-weight: bold;
text-overflow: ellipsis;
white-space: nowrap;
padding-top: 5px;
padding-bottom: 5px;
}
#jemmodulewide .jem-dl dd {
margin-left: 170px;
padding-top: 5px;
padding-bottom: 5px;
}
#jemmodulewide .jem-img {
text-align: center;
}
#jemmodulewide .jem-img img {
max-width: 100%;
}
#jemmodulewide .jem-catimg {
float: right;
}
#jemmodulewide .jem-readmore {
margin-top: 10px;
margin-bottom: 10px;
}
#jemmodulewide .jem-date .input-append {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
}
#jemmodulewide .jem-limit-smallist{
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-end;
padding: 10px;
}
#jemmodulewide img.icon-inline {
display: none;
}
#jemmodulewide .jem-event {
cursor:pointer;
border-bottom: 1px solid #ddd;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
align-items: center;
}
#jemmodulewide .jem-event:first-child {
border-top: 1px solid #ddd;
}
#jemmodulewide .jem-list-img {
flex-shrink: 1;
margin-left: 10px;
}
#jemmodulewide .jem-event-details {
flex: 1;
}
#jemmodulewide .jem-event-details h4 {
margin-top: 0;
margin-bottom: 10px;
line-height: 110%;
}
#jemmodulewide .jem-event-details h4 a {
font-weight: bold;
}
#jemmodulewide .jem-list-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
}
#jemmodulewide .jem-small-list {
padding: 10px;
}
#jemmodulewide .jem-small-list div {
flex: 1;
}
#jemmodulewide .jem-event-info {
margin-right: 15px;
}
#jemmodulewide .jem-event-info:last-child {
margin-right: 0;
}
#jemmodulewide .jem-event-info-small {
padding-right: 10px;
word-break: keep-all;
}
#jemmodulewide .jem-event-info-small:last-child {
margin-right: 0;
}
#jemmodulewide .eventlist {
margin: 0;
padding: 0;
list-style-type: none;
hyphens: auto;
}
#jemmodulewide .eventlist li {
padding: 10px;
}
#jemmodulewide .eventlist li:nth-child(odd) {
background-color: #f9f9f9;
}
#jemmodulewide .eventlist li:last-child {
margin-bottom: 0;
}
#jemmodulewide .eventlist li:hover {
background-color: #e0e0e0;
}
@media only all and (max-width: 59.938rem) and (min-width: 48rem) {
#jemmodulewide .jem-event-info-small {
flex-basis: 45% !important;
}
}
@media not print {
@media only all and (max-width: 47.938rem) {
#jemmodulewide .jem-list-img {
margin-right: 10px;
margin-top: 10px;
margin-left: 0;
}
#jemmodulewide .jem-sort-small .jem-small-list div {
flex-basis: 30%;
}
#jemmodulewide .jem-event-info-small {
flex-basis: 100% !important;
}
}
}
@media print {
#main a:link, #main a:visited {
text-decoration: none;
color: inherit;
}
div#jem {
border: 0;
}
div#jem h2 {
border: none;
}
div#jem .flyerimage {
border: none !important;
}
a[href]:after {
content: none !important;
}
div#jem .buttons {
display: none;
}
abbr[title]:after {
content: none;
}
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: none;
}
a:link:after, a:visited:after {
content: none;
}
div#jem .flyerimage {
border: none;
}
}

View File

@ -0,0 +1,9 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
/* This template uses images in any case, so keep this empty file to prevent legacy fallback. */

View File

@ -0,0 +1,9 @@
/**
* @package JEM
* @subpackage JEM Latest Events Wide Module
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
*/
/* This template uses images in any case, so keep this empty file to prevent legacy fallback. */