templates/news/listing.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
    {% block content %}
    
    
        <main class="pullc">
            <div class="container-xl">
                <div class="row">
                    <div class="col-lg-3 leftpull section-pillar d-none d-lg-block" {% if pillar_background %} style="background-image: url({{ pillar_background.thumbnail('pillar') }})" {% endif %}>
    <div class="section-title px-3 px-lg-3 ps-lg-0 d-flex flex-column">
                            <h1 class="mb-lg-5 pt-1 pe-lg-4 mt-5 text-lg-end">{{ section_title }}
                                </h1>
                        </div>
            {% if document.getProperty('pillar_background') %}
                            {% if document.getProperty('pillar_background').getMetadata('Credit') %}
                                <div class="pillar-credit">
                                    Image:
                                    {{ document.getProperty('pillar_background').getMetadata('Credit') }}
                                </div>
                            {% endif %}
                        {% endif %}
                    </div>
                    <div class="col-lg-9 ps-lg-5 pe-lg-5 pb-4">
        
    
                            <div class="breadcrumbs mt-3">
                                <a href="/">{{ "Home"|trans }}</a>
                                &raquo;
                                {{ document.key }}
                            </div>
    
                
    
    
                        <h1 class="my-3">{{ pimcore_input("headline", {"placeholder":"Headline", "width": 600}) }}</h1>
    
                        {% for news in newsListing %}
                            {% set detailLink = app_news_detaillink(news) %}
                            <div class="row mb-4 py-2 newslist">
                                <div class="col-12 col-lg-3">
                                    {% if news.list_image %}
                                        {{ news.list_image.thumbnail('newsfront').html({'imgAttributes': {
                                'class': 'newslistimg',
                                'alt': news.title,
                               },}) | raw }}
                                    {% elseif news.image %}
                                        {{ news.image.thumbnail('newsfront').html({'imgAttributes': {
                                'class': 'newslistimg',
                                'alt': news.title,
                               },}) | raw }}
                               {% else %}
                                        {{ document.getProperty('fallback_newsimg').thumbnail('newsfront').html({'imgAttributes': {
                                'class': 'newslistimg',
                                'alt': news.title,
                               },}) | raw }}
                                    {% endif %}
                                </div>
    
                                <div class="col-12 col-lg-9">
    
    
                                    <span class="rdate pt-2">
                                        {{ news.publish_date|date("D j M Y") }}
                                    </span>
    
    
                                    <h2>
                                        <a class="listlink purplelink stretched-link" href="{{ detailLink }}">{{ news.title }}</a>
                                    </h2>
                                    <p>
                                        {{ news.intro }}
                                    </p>
    
    
                                </div>
                            </div>
                        {% endfor %}
                        {% include 'includes/pagination.html.twig' %}
                    </div>
    
    
                </div>
            </div>
        </main>
    
    
    {% endblock %}