{% extends 'base.html.twig' %}
{% block title %} {% for p in frontend_page %}
{% if p.adminLink == page_admink_link %} {{p.name}}{% endif %}{% endfor %}{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{ asset('assets/gallery/css/jquery-ui.css') }}">
<link rel="stylesheet" href="{{ asset('assets/gallery/css/lightgallery.min.css') }}">
<link rel="stylesheet" href="{{ asset('assets/gallery/fonts/flaticon/font/flaticon.css') }}">
<style>
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover{
background-color: {% if first_color != ''%}{{first_color}}{% else %}#7f3e98{% endif %}!important;
}
</style>
{% endblock %}
{% block body %}
<div class=" d-flex flex-column flex-row-fluid">
<div class="card-body row pt-head">
{% for p in frontend_page %}
{% if p.adminLink == page_admink_link %}
<h2 class="bold text-center text-primary">{{ p.name }}</h2>
{% endif %}
{% endfor %}
{% if items|length >0 %}
<div class="row" id="lightgallery">
{% for img in items %}
{% if img.image != "" %}
<div class="col-sm-6 col-md-4 col-lg-4 col-xl-3 item" data-aos="fade" data-src="{{ asset('uploads/'~img.image) }}" data-sub-html="{{ img.description|raw }}">
<a href="#"><img src="{{ asset('uploads/'~img.image) }}" alt="" class="img-fluid"></a>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block js %}
<script src="{{ asset('assets/gallery/js/jquery-ui.js') }}"></script>
<script src="{{ asset('assets/gallery/js/owl.carousel.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/jquery.stellar.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/jquery.countdown.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/swiper.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/aos.js') }}"></script>
<script src="{{ asset('assets/gallery/js/picturefill.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/lightgallery-all.min.js') }}"></script>
<script src="{{ asset('assets/gallery/js/jquery.mousewheel.min.js') }}"></script>
<script>
$(document).ready(function (){
$('#lightgallery').lightGallery();
})
</script>
{% endblock %}