Joomla version: 3
JEM: 2.1.5
Just a bit info about styling the module-wide and it would be good if you do know a bit about how to modify php pages.
Was adapting the module and maybe it can be usefull to others. Won't explain it into detail.
Blue label
As you can see in the image there is a blue label around the date + time. To achieve that i had to adapt the code in the helper + tmpl file.
In the helper we do define variables for day+month so we can catch it in the tmpl.
$eventdate = new JDate($row->dates);
$eventday = $eventdate->format('d');
$eventmonth = $eventdate->format('M');
$lists[$i]->eventday = $eventday;
Be aware my events do have a time+date, but if you have events without time+date you have to do a bit extra.
In the tmpl there is a new td to display the day+month
<col width="5%" class="jemmodw_col_cal" />
...............................................................................
<td class="center">
<div class="label label-info">
<div>
<?php
echo $item->eventday;
?>
</div>
<div>
<?php
echo $item->eventmonth;
?>
</div>
</div>
</td>
if the label doesn't appear then there is a big chance that the template you are using does not support class.
clock
In the image there is also a clock, din't like the current image so did replace it.
Within the stylesheet we can remove these lines for the time class
padding-left: 20px;
background: url(img/time.png) no-repeat;
in the tmpl we can add this line
<span class="icon-clock" style="font-size:12px;"> </span>
if the clock does not appear then there is a big chance that your template does not support the icon class and if that's the case then Icomoon isn't supported.
Make whole row clickable
One additional thing i wanted to achieve is to have the whole row clickable, this as there only links to the events to be displayed (in my case) and to achieve that we can do the following.
<script>
jQuery(document).ready(function($) {
$(".clickable-row").click(function() {
window.document.location = $(this).data("href");
});
});
</script>
<style>
div#jemmodulewide table.eventset tr:hover td {
cursor: pointer !important;
}
</style>
..............
<?php foreach ($list as $item) : ?>
<tr class='clickable-row' data-href=<?php echo $item->eventlink; ?>>
...................................
Info:
stackoverflow.com/questions/17147821/how...-clickable-as-a-link
styling table
to style the table the class "table" can be added
<table class="eventset table table-hover" summary="mod_jem_wide">
the table-hover class makes sure you will have a color when hovering.
remove title atributes
Something i did find annoying was that hovering a link it was showing text, this happens as there is a "title" atrribute.
When you remove it there won't be a tip displayed.
remove blank images
The helper is defining blank images and it's displayed in the module. in my case i didn't want to display the images so removed the td's.
just some info....