fixed [#17390] Page Title Permanent, thanks Gordon
[eventlist:version1-0.git] / component / views / categories / tmpl / default.php
1 <?php
2 /**
3  * @version 1.0 $Id$
4  * @package Joomla
5  * @subpackage EventList
6  * @copyright (C) 2005 - 2009 Christoph Lukes
7  * @license GNU/GPL, see LICENSE.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
22 // no direct access
23 defined( '_JEXEC' ) or die( 'Restricted access' );
24 ?>
25 <div id="eventlist" class="el_categoriesview">
26 <p class="buttons">
27         <?php
28                 echo ELOutput::submitbutton( $this->dellink, $this->params );
29                 echo ELOutput::archivebutton( $this->params, $this->task );
30         ?>
31 </p>
32
33 <?php if ($this->params->def( 'show_page_title', 1 )) : ?>
34         <h1 class="componentheading">
35                 <?php echo $this->escape($this->pagetitle); ?>
36         </h1>
37 <?php endif; ?>
38
39 <?php foreach ($this->rows as $row) : ?>
40
41 <div class="floattext">
42         <h2 class="eventlist cat<?php echo $row->id; ?>">
43                 <?php echo $this->escape($row->catname); ?>
44         </h2>
45
46         <div class="catimg">
47                 <?php
48                         echo JHTML::_('link', JRoute::_($row->linktarget), $row->image);
49                 ?>
50                 <p>
51                         <?php
52                         echo JText::_( 'EVENTS' ).': ';
53                         echo JHTML::_('link', JRoute::_($row->linktarget), $row->assignedevents);
54                         ?>
55                 </p>
56         </div>
57
58         <div class="catdescription cat<?php echo $row->id; ?>"><?php echo $row->catdescription ; ?>
59         <p>
60                 <?php
61                         echo JHTML::_('link', JRoute::_($row->linktarget), $row->linktext);
62                 ?>
63         </p>
64         </div>
65
66 </div>
67 <?php endforeach; ?>
68
69 <!--pagination-->
70 <p class="pageslinks">
71         <?php echo $this->pageNav->getPagesLinks(); ?>
72 </p>
73
74 <p class="pagescounter">
75         <?php echo $this->pageNav->getPagesCounter(); ?>
76 </p>
77
78 <!--copyright-->
79
80 <p class="copyright">
81         <?php echo ELOutput::footer( ); ?>
82 </p>
83 </div>