primo commit
This commit is contained in:
48
modules/mod_jem/tmpl/alternative/default.php
Normal file
48
modules/mod_jem/tmpl/alternative/default.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.3.6
|
||||
* @package JEM
|
||||
* @subpackage JEM 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;
|
||||
|
||||
?>
|
||||
|
||||
<div class="jemmodulebasic<?php echo $params->get('moduleclass_sfx')?>" id="jemmodulebasic">
|
||||
<?php if (count($list)): ?>
|
||||
<ul class="jemmod">
|
||||
<?php foreach ($list as $item) : ?>
|
||||
<li>
|
||||
<?php if ($params->get('linkdet') == 1) : ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->dateinfo; ?>
|
||||
</a>
|
||||
<?php else :
|
||||
echo $item->dateinfo;
|
||||
endif;
|
||||
?>
|
||||
<br />
|
||||
|
||||
<?php if ($params->get('showtitloc') == 0 && $params->get('linkloc') == 1) : ?>
|
||||
<a href="<?php echo $item->venueurl; ?>">
|
||||
<?php echo $item->text; ?>
|
||||
</a>
|
||||
<?php elseif ($params->get('showtitloc') == 1 && $params->get('linkdet') == 2) : ?>
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<?php echo $item->text; ?>
|
||||
</a>
|
||||
<?php
|
||||
else :
|
||||
echo $item->text;
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else : ?>
|
||||
<?php echo JText::_('MOD_JEM_NO_EVENTS'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
1
modules/mod_jem/tmpl/alternative/index.html
Normal file
1
modules/mod_jem/tmpl/alternative/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
87
modules/mod_jem/tmpl/default.php
Normal file
87
modules/mod_jem/tmpl/default.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @subpackage JEM 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;
|
||||
|
||||
$highlight_featured = $params->get('highlight_featured');
|
||||
$showtitloc = $params->get('showtitloc');
|
||||
$linkloc = $params->get('linkloc');
|
||||
$linkdet = $params->get('linkdet');
|
||||
$showiconcountry = $params->get('showiconcountry');
|
||||
$settings = JemHelper::config();
|
||||
?>
|
||||
|
||||
<div class="jemmodulebasic<?php echo $params->get('moduleclass_sfx')?>" id="jemmodulebasic">
|
||||
<?php if (count($list)): ?>
|
||||
<ul class="jemmod">
|
||||
<?php foreach ($list as $item) : ?>
|
||||
<li class="event_id<?php echo $item->eventid; ?>" itemprop="event" itemscope itemtype="https://schema.org/Event">
|
||||
<?php if($highlight_featured && $item->featured): ?>
|
||||
<span class="event-title highlight_featured">
|
||||
<?php else : ?>
|
||||
<span class="event-title">
|
||||
<?php endif; ?>
|
||||
<?php if (($showiconcountry == 1) && !empty($item->country)) : ?>
|
||||
<?php $flagpath = $settings->flagicons_path . (str_ends_with($settings->flagicons_path, '/')?'':'/');
|
||||
$flagext = substr($flagpath, strrpos($flagpath,"-")+1,-1) ;
|
||||
$flagfile = Uri::getInstance()->base() . $flagpath . strtolower($item->country) . '.' . $flagext;
|
||||
echo '<img src="' . $flagfile . '" alt="' . $item->country . ' ' , Text::_('MOD_JEM_SHOW_FLAG_ICON') . '">' ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($showtitloc == 0 && $linkloc == 1) : ?>
|
||||
<a href="<?php echo $item->venueurl; ?>">
|
||||
<?php echo $item->venue; ?>
|
||||
</a>
|
||||
<?php elseif ($showtitloc == 1 && $linkdet == 2) : ?>
|
||||
<a href="<?php echo $item->link; ?>" title="<?php echo strip_tags($item->title); ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php elseif ($showtitloc == 1 && $linkdet == 1) :
|
||||
echo $item->title;
|
||||
|
||||
elseif ($showtitloc == 0 && $linkdet == 1) :
|
||||
echo $item->venue;
|
||||
endif; ?>
|
||||
|
||||
</span>
|
||||
<br />
|
||||
<?php if($highlight_featured && $item->featured): ?>
|
||||
<span class="event-title highlight_featured">
|
||||
<?php else : ?>
|
||||
<span class="event-title">
|
||||
<?php endif; ?>
|
||||
<?php if ($linkdet == 1) : ?>
|
||||
<a href="<?php echo $item->link; ?>" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->dateinfo; ?>
|
||||
</a>
|
||||
<?php else :
|
||||
echo $item->dateinfo;
|
||||
endif; ?>
|
||||
</span>
|
||||
<?php echo $item->dateschema; ?>
|
||||
<meta itemprop="name" content="<?php echo $item->title; ?>" />
|
||||
<div itemprop="location" itemscope itemtype="https://schema.org/Place" style="display:none;">
|
||||
<meta itemprop="name" content="<?php echo $item->venue; ?>" />
|
||||
<div 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>
|
||||
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else : ?>
|
||||
<?php echo Text::_('MOD_JEM_NO_EVENTS'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
1
modules/mod_jem/tmpl/index.html
Normal file
1
modules/mod_jem/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
28
modules/mod_jem/tmpl/mod_jem.css
Normal file
28
modules/mod_jem/tmpl/mod_jem.css
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @package JEM
|
||||
* @subpackage JEM Latest Events Basic Module
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
|
||||
.highlight_featured{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#jemmodulebasic {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
#jemmodulebasic ul {
|
||||
margin-left: 0.7em;
|
||||
padding-left: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#jemmodulebasic ul li {
|
||||
position: relative;
|
||||
margin-left: 1em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
90
modules/mod_jem/tmpl/responsive/default.php
Normal file
90
modules/mod_jem/tmpl/responsive/default.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* @package JEM
|
||||
* @subpackage JEM 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;
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$document = $app->getDocument();
|
||||
|
||||
$highlight_featured = $params->get('highlight_featured');
|
||||
$showtitloc = $params->get('showtitloc');
|
||||
$linkloc = $params->get('linkloc');
|
||||
$linkdet = $params->get('linkdet');
|
||||
$showiconcountry = $params->get('showiconcountry');
|
||||
$settings = JemHelper::config();
|
||||
?>
|
||||
|
||||
<div class="jemmodulebasic<?php echo $params->get('moduleclass_sfx')?>" id="jemmodulebasic">
|
||||
<?php if (count($list)): ?>
|
||||
<ul>
|
||||
<?php foreach ($list as $item) : ?>
|
||||
<li class="event_id<?php echo $item->eventid; ?>" itemprop="event" itemscope itemtype="https://schema.org/Event">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
<?php if($highlight_featured && $item->featured): ?>
|
||||
<span class="event-title highlight_featured">
|
||||
<?php else : ?>
|
||||
<span class="event-title">
|
||||
<?php endif; ?>
|
||||
<?php if (($showiconcountry == 1) && !empty($item->country)) : ?>
|
||||
<?php $flagpath = $settings->flagicons_path . (str_ends_with($settings->flagicons_path, '/')?'':'/');
|
||||
$flagext = substr($flagpath, strrpos($flagpath,"-")+1,-1) ;
|
||||
$flagfile = Uri::getInstance()->base() . $flagpath . strtolower($item->country) . '.' . $flagext;
|
||||
echo '<img src="' . $flagfile . '" alt="' . $item->country . ' ' , Text::_('MOD_JEM_SHOW_FLAG_ICON') . '">' ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($showtitloc == 0 && $linkloc == 1) : ?>
|
||||
<a href="<?php echo $item->venueurl; ?>">
|
||||
<?php echo $item->venue; ?>
|
||||
</a>
|
||||
<?php elseif ($showtitloc == 1 && $linkdet == 2) : ?>
|
||||
<a href="<?php echo $item->link; ?>" title="<?php echo strip_tags($item->title); ?>" itemprop="url">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
<?php elseif ($showtitloc == 1 && $linkdet == 1) :
|
||||
echo $item->title; ?>
|
||||
<?php elseif ($showtitloc == 0 && $linkdet == 1) :
|
||||
echo $item->venue; ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<br />
|
||||
<?php if($highlight_featured && $item->featured): ?>
|
||||
<span class="event-title highlight_featured">
|
||||
<?php else : ?>
|
||||
<span class="event-title">
|
||||
<?php endif; ?>
|
||||
<?php if ($linkdet == 1) : ?>
|
||||
<a href="<?php echo $item->link; ?>" title="<?php echo strip_tags($item->dateinfo); ?>" itemprop="url">
|
||||
<?php echo $item->dateinfo; ?>
|
||||
</a>
|
||||
<?php else :
|
||||
echo $item->dateinfo;
|
||||
endif; ?>
|
||||
</span>
|
||||
<?php echo $item->dateschema; ?>
|
||||
<meta itemprop="name" content="<?php echo $item->title; ?>" />
|
||||
<div itemprop="location" itemscope itemtype="https://schema.org/Place" style="display:none;">
|
||||
<meta itemprop="name" content="<?php echo $item->venue; ?>" />
|
||||
<div 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>
|
||||
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else : ?>
|
||||
<?php echo Text::_('MOD_JEM_NO_EVENTS'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
1
modules/mod_jem/tmpl/responsive/index.html
Normal file
1
modules/mod_jem/tmpl/responsive/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
100
modules/mod_jem/tmpl/responsive/mod_jem.css
Normal file
100
modules/mod_jem/tmpl/responsive/mod_jem.css
Normal file
@ -0,0 +1,100 @@
|
||||
/**
|
||||
* @package JEM
|
||||
* @subpackage JEM Latest Events Basic Module
|
||||
* @copyright (C) 2013-2024 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
|
||||
*/
|
||||
|
||||
/*
|
||||
#jemmodulebasic ul {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
padding-left: 1.2em;
|
||||
text-indent: -1.2em;
|
||||
}
|
||||
|
||||
#jemmodulebasic li:before {
|
||||
font-family: FontAwesome;
|
||||
content: "\f073";
|
||||
display: block;
|
||||
float: left;
|
||||
width: 1.2em;
|
||||
}*/
|
||||
|
||||
#jemmodulebasic {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
#jemmodulebasic ul {
|
||||
margin-left: 0.7em;
|
||||
padding-left: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#jemmodulebasic ul li {
|
||||
position: relative;
|
||||
margin-left: 1em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* #jemmodulebasic ul li:before {
|
||||
position: absolute;
|
||||
left: -1.5em;
|
||||
font-family: FontAwesome;
|
||||
content: "\f073";
|
||||
} */
|
||||
|
||||
#jemmodulebasic .event-title {
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.highlight_featured{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user