templates/webGallery.html.twig line 1

Open in your IDE?
  1. {% if wireFrame.wireFrameFile is defined and wireFrame.wireFrameFile != null %}
  2.     {% set wireFrameFile = wireFrame.wireFrameFile  %}
  3. {% else %}
  4.     {% set wireFrameFile = 'webLayoutBasic.html.twig' %}
  5. {% endif %}
  6. {% extends wireFrameFile %}
  7. {% block page_contents %}
  8. {% block _contents %}
  9. <div class="webGallery">
  10. <h1>{{ gallery.galleryName }}</h1>
  11. {% if gallery.galleryDescription is defined and gallery.galleryDescription != '' %}
  12.     <div class="galleryDescription2">{{ gallery.galleryDescription }}</div>
  13. {% endif %}
  14. {% if backUrl is defined and backUrl != '' %}
  15. {% else %}
  16.     {% set backUrl = url('root') ~ 'web/' ~ web.websiteId ~ '/galleries' %}
  17. {% endif %}
  18. <a href="{{ backUrl }}" class="backLink">{{ 'system.back'|trans }}</a>
  19. {% if gallery.thumbSize is defined and gallery.thumbSize > 0 %}
  20.     {% set thumbSize = gallery.thumbSize %}
  21. {% else %}
  22.     {% set thumbSize = 200 %}
  23. {% endif %}
  24. {% for galleryItem in galleryItemList %}
  25.     {% set filePath = 'users/' ~ user.userName ~ '/images/' ~ galleryItem.galleryItemFile %}
  26.     {% set webPath = userDirs['images'] ~ '/' ~ filePath %}
  27.     <div class="galleryItemPanel">
  28.       <a href="{{ asset(filePath) }}" target="_blank" class="galleryLink"><img src="{{ asset(filePath) }}" alt="Gallery Item" border="0" width="{{ thumbSize }}"></a>
  29.       <div class="galleryItemDescription">
  30.         <div class="galleryItemName">{{ galleryItem.galleryItemName }}</div>
  31.         {{ galleryItem.galleryItemDescription }}
  32.       </div>
  33.     </div> 
  34. {% endfor %}
  35. <a href="{{ backUrl }}" class="backLink">{{ 'system.back'|trans }}</a>
  36. <br>
  37. </div>
  38. {% endblock %}
  39. {% endblock %}