templates/widget/partition_sidebar.html.twig line 1

Open in your IDE?
  1. <div class="journal-sections">
        <div class="journal-sections__title">
            <h3 class="h3">{{ title|raw }}</h3>
        </div>
        <div class="journal-sections__links">
            {% if partitions is defined and partitions|length > 0 %}
                {% for item in partitions %}
                    <div class="journal-sections__link">
                        <a target="{{ item.target ? '_blank'  : '_self' }}" href="{{ item.link ? item.link : 'javascript:void(0);' }}"></a>
                        <div class="journal-sections__number">
                            <span class="h3">{{ item.number }}</span>
                        </div>
                        <div class="journal-sections__info">
                            <h3 class="h3">{{ item.title }}</h3>
                            <span class="journal-sections__description">{{ item.description|raw }}</span>
                        </div>
                    </div>
                {% endfor %}
            {% endif %}
        </div>
        <script data-defer=".journal-sections">
            var requireOnDefer = function() {
                function callback() {
                    require(['assets/front/js/application/journal-sections']);
                    window.removeEventListener('.journal-sections', callback);
                }
                window.addEventListener('.journal-sections', callback);
            }
            requireOnDefer();
            require(['css!assets/front/css/application/journal-sections']);
        </script>
    </div>