templates/widget/gallery_albums.html.twig line 1

Open in your IDE?
  1. <section class="std-section gallery-albums">
        <div class="gallery-albums__heading">
            {% if title %}
                <h2 class="h3">{{ title }}</h2>
            {% endif %}
        </div>
        <div class="gallery-albums__wrapper" id="{{ id }}" data-entry="{{ url|escape }}"></div>
        <div class="skeleton"></div>
    </section>
    <script data-defer=".gallery-albums">
        var requireOnDefer = function() {
            function callback() {
                require([
                    'assets/front/js/application/gallery-albums-react',
                    'assets/front/js/application/gallery-albums'
                ], function(renderApp) {
                    renderApp(document.getElementById('{{ id }}'), {
                        album: 0,
                    });
                });
                window.removeEventListener('.gallery-albums', callback);
            }
            window.addEventListener('.gallery-albums', callback);
        }
        requireOnDefer();
        require([
            'css!assets/front/css/application/gallery-albums',
            'css!assets/front/css/application/_light-box',
            'css!assets/front/css/vendor/swiper',
            'css!assets/front/css/vendor/swiper.pagination',
            'css!assets/front/css/vendor/swiper.scrollbar',
        ]);
    </script>