templates/widget/picture_text.html.twig line 1

Open in your IDE?
  1. <section class="picture-text {{ is_full ? 'full-section' : 'std-section' }} {{ is_inverted ? 'inverted' }}">
        <div class="container {{ is_background ? 'bg' }}">
            <div class="picture-text__wrapper pic">
                {% if image %}
                    <picture>
                        <source media="(max-width: 920px)" srcset="{{ image|filename_encode }}">
                        <source media="(min-width: 921px)" srcset="{{ image|filename_encode }}">
                        <img src="{{ asset('assets/front/img/empty.svg') }}" data-src="{{ image }}" alt="image">
                    </picture>
                {% endif %}
            </div>
            <div class="picture-text__wrapper text">
                <div class="content">{{ text|raw }}</div>
            </div>
        </div>
    
        <script>
            require([
                'css!assets/front/css/application/picture-text.css'
            ]);
        </script>
    </section>