lightbox diaporama site

This commit is contained in:
2024-10-17 13:06:30 +02:00
parent f60cb1b088
commit ec5fc137d4
10 changed files with 239 additions and 24 deletions

View File

@@ -74,5 +74,11 @@
{% if multiple %}
</div>
{% endif %}
<div id="lightbox" class="lightbox">
<span class="close">&times;</span>
<img class="lightbox-content" id="lightbox-img">
<a class="prev" id="prev">&#10094;</a>
<a class="next" id="next">&#10095;</a>
</div>
</div>
{% endif %}

View File

@@ -0,0 +1,15 @@
{#
/**
* @file
* Default theme implementation of an image.
*
* Available variables:
* - attributes: HTML attributes for the img tag.
* - style_name: (optional) The name of the image style applied.
*
* @see template_preprocess_image()
*
* @ingroup themeable
*/
#}
<img class="lightbox-trigger" {{ attributes }} />