some module work, thanks rheinig
[eventlist:version1-0.git] / modules / mod_eventlist_wide / tmpl / default.php
1 <?php
2 /**
3  * @version 1.0 $Id$
4  * @package Joomla
5  * @subpackage EventList Wide Module
6  * @copyright (C) 2005 - 2008 Christoph Lukes
7  * @license GNU/GPL, see LICENCE.php
8  * EventList is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 2
10  * as published by the Free Software Foundation.
11
12  * EventList is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16
17  * You should have received a copy of the GNU General Public License
18  * along with EventList; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20  */
21 defined('_JEXEC') or die('Restricted access');
22 ?>
23
24 <div id="elmodulewide">
25
26 <table border="0" cellpadding="5" cellspacing="0" class="eventset" summary="mod_eventlist_wide">
27
28         <colgroup>
29                         <col width="30%" class="elmodw_col_title" />
30                         <col width="20%" class="elmodw_col_category" />
31                         <col width="20%" class="elmodw_col_venue" />
32                         <col width="15%" class="elmodw_col_eventimage" />
33                         <col width="15%" class="elmodw_col_venueimage" />
34         </colgroup>
35
36 <?php foreach ($list as $item) :  ?>
37         <tr>
38                 <td valign="top">
39                         <span class="event-title">
40                                 <?php if ($item->eventlink) : ?>
41                                 <a href="<?php echo $item->eventlink; ?>" title="<?php echo $item->title; ?>">
42                                 <?php endif; ?>
43                                                 
44                                         <?php echo $item->title; ?>
45                                                         
46                                 <?php if ($item->eventlink) : ?>
47                                 </a>
48                                 <?php endif; ?>
49                         </span>
50                         
51                         <br />
52                         
53                         <span class="date">
54                                 <?php echo $item->date; ?>
55                         </span>
56                         <?php if ($item->time && $this->datemethod == 1) : ?>
57                         <span class="time">
58                                 <?php echo $item->time; ?>
59                         </span>
60                         <?php endif; ?>
61                                                 
62                 </td>
63                 <td>
64                         <span class="category">
65                                 <?php if ($item->categorylink) : ?>
66                                 <a href="<?php echo $item->categorylink; ?>" title="<?php echo $item->catname; ?>">
67                                 <?php endif; ?>
68                                                 
69                                         <?php echo $item->catname; ?>
70                                                         
71                                 <?php if ($item->categorylink) : ?>
72                                 </a>
73                                 <?php endif; ?>
74                         </span>
75                 </td>
76                 <td>
77                         <span class="venue-title">
78                                 <?php if ($item->venuelink) : ?>
79                                 <a href="<?php echo $item->venuelink; ?>" title="<?php echo $item->venue; ?>">
80                                 <?php endif; ?>
81                                                 
82                                         <?php echo $item->venue; ?>
83                                                         
84                                 <?php if ($item->venuelink) : ?>
85                                 </a>
86                                 <?php endif; ?>
87                         </span>
88                 </td>
89                 <td align="center" class="event-image-cell">
90                         <?php if ($this->use_modal) : ?>
91                         <a href="<?php echo $item->eventimageorig; ?>" class="modal" title="<?php echo $item->title; ?>">
92                         <?php endif; ?>
93                                                 
94                                 <img src="<?php echo $item->eventimage; ?>" alt="<?php echo $item->title; ?>" class="image-preview" />
95                                                                 
96                         <?php if ($item->eventlink) : ?>
97                         </a>
98                         <?php endif; ?>
99                 </td>
100                 <td align="center" class="event-image-cell">
101                         <?php if ($this->use_modal) : ?>
102                         <a href="<?php echo $item->venueimageorig; ?>" class="modal" title="<?php echo $item->venue; ?>">
103                         <?php endif; ?>
104                                                 
105                                 <img src="<?php echo $item->venueimage; ?>" alt="<?php echo $item->venue; ?>" class="image-preview" />
106                                                         
107                         <?php if ($item->venuelink) : ?>
108                         </a>
109                         <?php endif; ?>
110                 </td>
111         </tr>
112 <?php endforeach; ?>
113 </table>
114 </div>