templates/widget/main_journal.html.twig line 1

Open in your IDE?
  1. <section class="std-section main-journal">
        <div class="container">
            <div class="main-journal__title">
                <h1>{{ title|raw }}</h1>
            </div>
            {% if output_everything_below %}
                <div class="main-journal__links">
                    <h2>{{ subTitle|default() }}</h2>
                    <div class="main-journal__link-wrapper">
                        {% if links is defined and links|length > 0 %}
                            {% for item in links %}
                                <a class="btn btn--primary" target="{{ item.target ? '_blank'  : '_self' }}"
                                   href="{{ item.link ? item.link  : 'javascript:void(0);' }}">{{ item.title }}</a>
                            {% endfor %}
                        {% endif %}
                    </div>
                </div>
            {% endif %}
        </div>
        <script data-defer=".main-journal">
            var requireOnDefer = function() {
                function callback() {
                    require(['assets/front/js/application/main-journal']);
                    window.removeEventListener('.main-journal', callback);
                }
                window.addEventListener('.main-journal', callback);
            }
            requireOnDefer();
            require(['css!assets/front/css/application/main-journal']);
        </script>
    </section>