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/tiles_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="eventgallery-tile" data-eg-link="<?php echo $link ?>">
	<div class="wrapper">
        <div class="event-thumbnails">
            <?php
                $files = $this->entry->getFiles(0, 1, 1);
            ?>

            <?php
                /**
                * @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 if (isset($files[0])) echo $files[0]->getLazyThumbImgTag(50,50, "", false, null, $this->config->getEvent()->doShowImageTitle(), $this->config->getEvent()->doShowImageCaption()); ?>
                        <?php ENDIF; ?>
                    </a>
                </div>
        </div>
        <div class="content">
            <div class="data">
                <?php IF($this->config->getEvent()->doShowDate()):?><div class="date"><small class="muted"><?php echo \Joomla\CMS\HTML\HTMLHelper::date($this->entry->getDate());?></small></div><?php ENDIF ?>
                <div class="title"><h2><?php echo $this->entry->getDisplayName();?></h2></div>
                <?php IF($this->config->getEvent()->doShowText()):?><div class="text"><?php echo \Joomla\CMS\HTML\HTMLHelper::_('content.prepare', $this->entry->getIntroText(), '', 'com_eventgallery.events'); ?></div><?php ENDIF ?>
                <?php IF($this->config->getEventsList()->doShowImageCount() || $this->config->getEventsList()->doShowEventHits() ): ?><hr /><?php ENDIF ?>
                <?php IF($this->config->getEventsList()->doShowImageCount()):?><div class="imagecount"><small class="muted"><?php echo \Joomla\CMS\Language\Text::_('COM_EVENTGALLERY_EVENTS_LABEL_IMAGECOUNT') ?> <?php echo $this->entry->getFileCount();?></small></div><?php ENDIF ?>
                <?php IF($this->config->getEventsList()->doShowEventHits()):?><div class="eventhits"><small class="muted"><?php echo \Joomla\CMS\Language\Text::_('COM_EVENTGALLERY_EVENTS_LABEL_HITS') ?> <?php echo $this->entry->getHits();?></small></div><?php ENDIF ?>
                <div style="clear:both"></div>
            </div>

        </div>
	</div>
</div>