Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/components/com_eventgallery/tmpl/snippets/events/
Upload File :
Current File : /home/smartconb/www/armencom33/components/com_eventgallery/tmpl/snippets/events/default_event.php

<?php
/**
 * @package     Sven.Bluege
 * @subpackage  com_eventgallery
 *
 * @copyright   Copyright (C) 2005 - 2019 Sven Bluege All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;

defined('_JEXEC') or die('Restricted access');
/**
 * @var \de\svenbluege\joomla\eventgallery\ObjectWithConfiguration $this
 */


if (isset($this->rendermode) && $this->rendermode == 'module') {
	$link =  Route::_(\Svenbluege\Component\Eventgallery\Site\Library\Helper\Route::createEventRoute($this->entry->getFolderName(), $this->entry->getTags(), $this->entry->getCategoryId(), $this->config->getMenuItem()->getMenuItemId()));
} else {
    $link = "index.php?option=com_eventgallery&view=event&folder=" . $this->entry->getFolderName() . "&Itemid=" . $this->currentItemid;
    if (isset($this->category) && $this->category->id != 'root') {
        $link .= "&catid=" . $this->category->id;
    }
    $link =  Route::_($link);
}
?>

<div class="item-container item-container-big" data-eg-link="<?php echo $link ?>">
	<div class="item item_first">
        <div class="eg-content">
            <div class="data">
                <?php IF($this->config->getEvent()->doShowDate()):?><div class="date"><?php echo \Joomla\CMS\HTML\HTMLHelper::date($this->entry->getDate());?></div><?php ENDIF ?>
                <div class="title"><?php echo $this->entry->getDisplayName();?></div>
                <?php IF($this->config->getEvent()->doShowText()):?><div class="text"><?php echo \Joomla\CMS\HTML\HTMLHelper::_('content.prepare', $this->entry->getIntroText(), '', 'com_eventgallery.event'); ?></div><?php ENDIF ?>
                <?php IF($this->config->getEventsList()->doShowImageCount()):?><div class="imagecount"><?php echo \Joomla\CMS\Language\Text::_('COM_EVENTGALLERY_EVENTS_LABEL_IMAGECOUNT') ?> <?php echo $this->entry->getFileCount();?></div><?php ENDIF ?>
                <?php IF($this->config->getEventsList()->doShowEventHits()):?><div class="eventhits"><?php echo \Joomla\CMS\Language\Text::_('COM_EVENTGALLERY_EVENTS_LABEL_HITS') ?> <?php echo $this->entry->getHits();?></div><?php ENDIF ?>
            </div>

            <div class="images event-thumbnails">
                <?php
                    $files = $this->entry->getFiles(0, 1, 1);
                ?>

                <?php foreach($files as $file):
                    /**
                    * @var \Svenbluege\Component\Eventgallery\Site\Library\File\File $file
                    */?>

                    <div class="event-thumbnail">
                        <a href="<?php echo $link ?>">
                            <?php IF (($this->config->getEventsList()->doHideMainImageForPasswordProtectedEvent() && !$this->entry->isAccessible()) ||
                                      ($this->config->getEventsList()->doHideMainImageForUserGroupProtectedEvent() && !$this->entry->isVisible()) ): ?>
                                <img class="locked-event" data-width="1000" data-height="1000" src="<?php echo Uri::root(true) .'/'. COM_EVENTGALLERY_IMAGE_NO_ACCESS ?>">
                            <?php ELSE: ?>
                                <?php echo $file->getLazyThumbImgTag(50,50, "", true, null, $this->config->getEvent()->doShowImageTitle(), $this->config->getEvent()->doShowImageCaption()); ?>
                            <?php ENDIF; ?>
                        </a>
                    </div>
                <?php ENDFOREACH?>
                <div style="clear:both"></div>
            </div>
        </div>
	</div>
</div>