primo commit
This commit is contained in:
181
modules/mod_jem_jubilee/tmpl/alternative/default.php
Normal file
181
modules/mod_jem_jubilee/tmpl/alternative/default.php
Normal file
@ -0,0 +1,181 @@
|
||||
<?php
|
||||
/**
|
||||
* @version 2.3.6
|
||||
* @package JEM
|
||||
* @subpackage JEM Jubilee Module
|
||||
* @copyright (C) 2014-2019 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$datemethod = (int)$params->get('datemethod', 0);
|
||||
$showtime = (int)$params->get('showtime', 0);
|
||||
$showcalendar = (int)$params->get('showcalendar', 1);
|
||||
$introtext = $params->get('introtext', '');
|
||||
$showflyer = (int)$params->get('showflyer', 1);
|
||||
$flyer_link_type = (int)$params->get('flyer_link_type', 0);
|
||||
|
||||
$colorclass = $params->get('color');
|
||||
$user_color = $params->get('usercolor', '#EEEEEE');
|
||||
$user_color_is_dark = $params->get('usercolor_is_dark', false);
|
||||
$date = (array)$params->get('date');
|
||||
|
||||
if ($flyer_link_type == 1) {
|
||||
JHtml::_('behavior.modal', 'a.flyermodal');
|
||||
$modal = 'flyermodal';
|
||||
} elseif ($flyer_link_type == 0) {
|
||||
$modal = 'notmodal';
|
||||
} else {
|
||||
$modal = '';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="jemmodulejubilee<?php echo $params->get('moduleclass_sfx'); ?>" id="jemmodulejubilee">
|
||||
<?php ?>
|
||||
<div class="eventset" summary="mod_jem_jubilee">
|
||||
<?php if ($showcalendar == 1) :?>
|
||||
<div>
|
||||
<div class="calendar<?php echo '-'.$colorclass; ?>"
|
||||
<?php if (($colorclass == 'alpha') && !empty($user_color)) : ?>
|
||||
style="background-color: <?php echo $user_color; ?>"
|
||||
<?php endif; ?>
|
||||
>
|
||||
<div class="monthjubilee monthjubilee-<?php echo ($user_color_is_dark ? 'light' : 'dark'); ?>">
|
||||
<?php echo $date['month']; ?>
|
||||
</div>
|
||||
<div class="dayjubilee">
|
||||
<?php /*echo $date['weekday'];*/ ?>
|
||||
</div>
|
||||
<div class="daynumjubilee">
|
||||
<?php echo $date['day']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($introtext)) :?>
|
||||
<div class="intro">
|
||||
<?php echo $introtext; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $i = count($list); ?>
|
||||
<?php if ($i == 0) : ?>
|
||||
<div class="clr"></div>
|
||||
<div class="hr"><hr /></div>
|
||||
<p><?php echo JText::_('MOD_JEM_JUBILEE_NO_EVENTS'); ?></p>
|
||||
<?php else : ?>
|
||||
<?php foreach ($list as $item) : ?>
|
||||
<div class="clr"></div>
|
||||
<div class="hr"><hr /></div>
|
||||
|
||||
<h2 class="event-title">
|
||||
<?php echo $item->startdate['year'] . ': '; ?>
|
||||
<?php if ($item->eventlink) : ?>
|
||||
<a href="<?php echo $item->eventlink; ?>" title="<?php echo $item->fulltitle; ?>"><?php echo $item->title; ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
|
||||
<div>
|
||||
<?php if (($showflyer == 1) && !empty($item->eventimage)) : ?>
|
||||
<div>
|
||||
<div class="banner-jem">
|
||||
<div>
|
||||
<a href="<?php echo ($flyer_link_type == 2) ? $item->eventlink : $item->eventimageorig; ?>" class="<?php echo $modal;?>"
|
||||
title="<?php echo ($flyer_link_type == 2) ? $item->fulltitle : JText::_('MOD_JEM_JUBILEE_CLICK_TO_ENLARGE'); ?> ">
|
||||
<img class="float_right <?php echo 'image-preview2'; ?>" src="<?php echo $item->eventimageorig; ?>" alt="<?php echo $item->title; ?>" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clr"></div>
|
||||
<?php else /* showflyer == 0 or no image */ : ?>
|
||||
<div>
|
||||
<div class="banner-jem">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('showdesc', 1) == 1) :?>
|
||||
<div class="desc">
|
||||
<?php echo $item->eventdescription; ?>
|
||||
<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
|
||||
echo '</br><a class="readmore" href="'.$item->link.'">'.$item->linkText.'</a>';
|
||||
endif;?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php /* Datum und Zeitangabe:
|
||||
* showcalendar 1, datemethod 1 : date inside calendar image + time
|
||||
* showcalendar 1, datemethod 2 : date inside calendar image + relative date + time
|
||||
* showcalendar 0, datemethod 1 : no calendar image, date + time
|
||||
* showcalendar 0, datemethod 2 : no calendar image, relative date + time
|
||||
*/
|
||||
?>
|
||||
<?php /* wenn kein Kalenderblatt angezeigt wird */ ?>
|
||||
<?php if (1/*$showcalendar == 0*/) : ?>
|
||||
<?php if ($item->date && $datemethod == 2) :?>
|
||||
<div class="date" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->date; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($item->date && $datemethod == 1) :?>
|
||||
<div class="date" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->date; ?>
|
||||
</div>
|
||||
<?php if ($showtime == 1 && $item->time && $datemethod == 1) :?>
|
||||
<div class="time" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->time; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php /* wenn Kalenderblatt angezeigt wird */ ?>
|
||||
<?php else : ?>
|
||||
<?php /* wenn Zeitdifferenz angezeigt werden soll */ ?>
|
||||
<?php if ($item->date && $datemethod == 2) : ?>
|
||||
<div class="date" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->date; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /* wenn Datum angezeigt werden soll */ ?>
|
||||
<?php if ($showtime == 1 && $item->time && $datemethod == 1) :?>
|
||||
<?php /* es muss nur noch die Zeit angezeigt werden (da Datum auf Kalenderblatt schon angezeigt) */ ?>
|
||||
<div class="time" title="<?php echo strip_tags($item->dateinfo); ?>">
|
||||
<?php echo $item->time; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
|
||||
<?php /*venue*/ ?>
|
||||
<?php if (($params->get('showvenue', 1) == 1) && !empty($item->venue)) :?>
|
||||
<div class="venue-title">
|
||||
<?php if ($item->venuelink) : ?>
|
||||
<a href="<?php echo $item->venuelink; ?>" title="<?php echo $item->venue; ?>"><?php echo $item->venue; ?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $item->venue; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /*category*/ ?>
|
||||
<?php if (($params->get('showcategory', 1) == 1) && !empty($item->catname)) :?>
|
||||
<div class="category">
|
||||
<?php echo $item->catname; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<div class="clr"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
150
modules/mod_jem_jubilee/tmpl/alternative/mod_jem_jubilee.css
Normal file
150
modules/mod_jem_jubilee/tmpl/alternative/mod_jem_jubilee.css
Normal file
@ -0,0 +1,150 @@
|
||||
/**
|
||||
* @version 2.3.6
|
||||
* @package JEM
|
||||
* @subpackage JEM Jubilee Module
|
||||
* @copyright (C) 2014-2019 joomlaeventmanager.net
|
||||
* @copyright (C) 2005-2009 Christoph Lukes
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
*/
|
||||
|
||||
div#jemmodulejubilee {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .banner-jem {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
|
||||
#jemmodulejubilee [class|="calendar"] {
|
||||
background-repeat: no-repeat;
|
||||
width: 84px;
|
||||
height: 82px; /* + padding = 87px */
|
||||
font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif;
|
||||
text-align: center;
|
||||
padding: 5px 0 0 0;
|
||||
float:left;
|
||||
margin-right:10px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
#jemmodulejubilee span.share {
|
||||
margin-left:95px;
|
||||
}
|
||||
|
||||
#jemmodulejubilee [class|="calendar"] .yearjubilee {
|
||||
font-size: 6px;
|
||||
height:5px;
|
||||
color: #e1e1e1;
|
||||
}
|
||||
|
||||
#jemmodulejubilee [class|="calendar"] .monthjubilee {
|
||||
font-size: 8px;
|
||||
color: white;
|
||||
text-transform:uppercase;
|
||||
font-weight:bold;
|
||||
text-shadow: #666 1px 1px 1px;
|
||||
height:20px;
|
||||
}
|
||||
|
||||
#jemmodulejubilee [class|="calendar"] .dayjubilee {
|
||||
font-weight:bold;
|
||||
font-size: 12px;
|
||||
padding-top:3px;
|
||||
min-height: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#jemmodulejubilee [class|="calendar"] .daynumjubilee {
|
||||
font-size: 29px;
|
||||
font-weight:bold;
|
||||
color: #FF6400;
|
||||
text-shadow: #000 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
div#jemmodulejubilee .eventset {
|
||||
margin-bottom: 10px;
|
||||
padding: 5px;
|
||||
border: 1px dotted silver;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .event-title {
|
||||
padding-left: 0px;
|
||||
font-size: x-large;
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .desc {
|
||||
padding-left: 0px;
|
||||
padding-top: 2px;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .time {
|
||||
padding-left: 20px;
|
||||
background: url(../img/time.png) 0 center no-repeat;
|
||||
padding-top: 2px;
|
||||
font-weight: normal;
|
||||
font-size: smaller;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee div.date {
|
||||
padding-left: 20px;
|
||||
background: url(../img/date.png) 0 center no-repeat;
|
||||
padding-top: 2px;
|
||||
font-weight: normal;
|
||||
font-size: smaller;
|
||||
float: left;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .category {
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
background: url(../img/category.png) 0 center no-repeat;
|
||||
font-size: smaller;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .venue-title {
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
background: url(../img/venue.png) 0 center no-repeat;
|
||||
font-size: smaller;
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .event-image-cell {
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .venue-image-cell {
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .image-preview {
|
||||
max-width: 110px;
|
||||
border: 0px solid #CCCCCC;
|
||||
padding: 3px;
|
||||
background-color: white;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .image-preview2 {
|
||||
max-width: 200px;
|
||||
border: 0px solid #CCCCCC;
|
||||
padding: 3px;
|
||||
background-color: white;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .hr {
|
||||
color: silver;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
div#jemmodulejubilee .clr {
|
||||
clear: both;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @version 2.3.6
|
||||
* @package JEM
|
||||
* @subpackage JEM Jubilee Module
|
||||
* @copyright (C) 2014-2019 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. */
|
||||
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @version 2.3.6
|
||||
* @package JEM
|
||||
* @subpackage JEM Jubilee Module
|
||||
* @copyright (C) 2014-2019 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. */
|
||||
Reference in New Issue
Block a user