{% if wireFrame.wireFrameFile is defined and wireFrame.wireFrameFile != null %}
{% set wireFrameFile = wireFrame.wireFrameFile %}
{% else %}
{% set wireFrameFile = 'webLayoutBasic.html.twig' %}
{% endif %}
{% extends wireFrameFile %}
{% block page_contents %}
{% block _contents %}
<div class="webGallery">
<h1>{{ gallery.galleryName }}</h1>
{% if gallery.galleryDescription is defined and gallery.galleryDescription != '' %}
<div class="galleryDescription2">{{ gallery.galleryDescription }}</div>
{% endif %}
{% if backUrl is defined and backUrl != '' %}
{% else %}
{% set backUrl = url('root') ~ 'web/' ~ web.websiteId ~ '/galleries' %}
{% endif %}
<a href="{{ backUrl }}" class="backLink">{{ 'system.back'|trans }}</a>
{% if gallery.thumbSize is defined and gallery.thumbSize > 0 %}
{% set thumbSize = gallery.thumbSize %}
{% else %}
{% set thumbSize = 200 %}
{% endif %}
{% for galleryItem in galleryItemList %}
{% set filePath = 'users/' ~ user.userName ~ '/images/' ~ galleryItem.galleryItemFile %}
{% set webPath = userDirs['images'] ~ '/' ~ filePath %}
<div class="galleryItemPanel">
<a href="{{ asset(filePath) }}" target="_blank" class="galleryLink"><img src="{{ asset(filePath) }}" alt="Gallery Item" border="0" width="{{ thumbSize }}"></a>
<div class="galleryItemDescription">
<div class="galleryItemName">{{ galleryItem.galleryItemName }}</div>
{{ galleryItem.galleryItemDescription }}
</div>
</div>
{% endfor %}
<a href="{{ backUrl }}" class="backLink">{{ 'system.back'|trans }}</a>
<br>
</div>
{% endblock %}
{% endblock %}