<?php 
/**
 * @package     Sven.Bluege
 * @subpackage  com_eventgallery
 *
 * @copyright   Copyright (C) 2005 - 2013 Sven Bluege All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// no direct access
defined('_JEXEC') or die('Restricted access'); ?>



<div id="events">
    <?php if ($this->params->get('show_page_heading', 1)) : ?>
    <div class="page-header">
        <h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
    </div>
    <?php endif; ?>
    
    <p class="greetings"><?php echo $this->params->get('greetings',''); ?></p>  
    
    <div>
        <ul class="events">
        <?php $count=0; foreach($this->entries as $entry) :?>
            <?php $this->assign('entry',$entry)?>
            <?php 

                $link = JRoute::_("index.php?option=com_eventgallery&view=event&folder=".$this->entry->getFolderName()."&Itemid=".$this->currentItemid);

            ?>
            <li class="event">  
                <a href="<?php echo $link ?>">
                    <?php IF($this->params->get('show_date',1)==1):?><span class="date"><?php echo JHTML::Date($this->entry->getDate());?></span><?php ENDIF ?>
                    <span class="description"><?php echo $this->entry->getDescription();?></span>
                </a>
            </li>
        <?php ENDFOREACH; ?>
        </ul>
    </div>

    <form method="post" name="adminForm">

        <div class="pagination">
        <div class="counter pull-right"><?php echo $this->pageNav->getPagesCounter(); ?></div>
        <div class="float_left"><?php echo $this->pageNav->getPagesLinks(); ?></div>
        <div class="clear"></div>
        </div>
        
    </form>
</div>      
    
<?php echo $this->loadSnippet('footer_disclaimer'); ?>