templates/widget/news_list.html.twig line 1

Open in your IDE?
  1. <section class="std-section news-all">
        <div class="container">
            <div class="news-all__head">
                <div class="news-all__title">
                    {% if title %}
                        <h1 class="news-all__heading h3">{{ title }}</h1>
                    {% endif %}
                </div>
            </div>
            <div data-context="{{ url|escape }}" id="{{ id }}"></div>
        </div>
        <script data-defer=".news-all">
            function requireOnDefer() {
                require(['assets/front/js/application/news-all-react'], function(renderApp) {
                    renderApp(document.getElementById('{{ id }}'));
                });
                window.removeEventListener('.news-all', requireOnDefer);
            }
            window.addEventListener('.news-all', requireOnDefer);
            require(['css!assets/front/css/application/news-all']);
        </script>
    </section>