templates/blog/listing.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3.     <main class="pullc">
  4.         <div class="container-xl">
  5.             <div class="row">
  6.                 <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 %}>
  7.                     <div class="section-title px-3 px-lg-4 ps-lg-0 d-flex flex-column">
  8.                             <h1 class="mb-lg-5 pt-1 pe-lg-4 mt-5 text-lg-end">{{ section_title }}
  9.                         </h1>
  10.                     </div>
  11.         {% if document.getProperty('pillar_background') %}
  12.                         {% if document.getProperty('pillar_background').getMetadata('Credit') %}
  13.                             <div class="pillar-credit">
  14.                                 Image:
  15.                                 {{ document.getProperty('pillar_background').getMetadata('Credit') }}
  16.                             </div>
  17.                         {% endif %}
  18.                     {% endif %}
  19.                 </div>
  20.                 <div class="col-lg-9 ps-lg-5 pe-lg-5 pb-4">
  21.                     <div class="breadcrumbs mt-3">
  22.                         <a href="/">{{ "Home"|trans }}</a>
  23.                      / 
  24.                         {{ document.key }}
  25.                     </div>
  26.                     <h1 class="my-3">{{ pimcore_input("headline", {"placeholder":"Headline", "width": 600}) }}</h1>
  27.                     {% for blog in blogListing %}
  28.                         
  29.                         <div class="row mb-4 newslist">
  30.                                 <div class="col-2 d-flex flex-column justify-content-center">
  31.                         {% if blog.parent.getProperty('blog_icon') %}
  32.                                             {{ blog.parent.getProperty('blog_icon').thumbnail('blogicon').html({'imgAttributes': {
  33.                                             'class': 'blogimg',
  34.                                             'alt': blog.parent.properties.blog_title.data,
  35.                                            },}) | raw }}
  36.                                         {% endif %}
  37.                             </div>
  38.                             <div class="col-10">
  39.                                 <span class="rdate pt-2">
  40.                                     {{ blog.pubDate|date("D j M Y") }}
  41.                                         {% if blog.parent.getProperty('blog_title') %}
  42.                                             -
  43.                                             {{ blog.parent.getProperty('blog_title') }}
  44.                                         {% endif %}
  45.                                 </span>
  46.                                 <h2>
  47.                                     <a class="listlink bluelink stretched-link" href="{{ blog.link }}" target="_blank">{{ blog.title|striptags|raw }}</a>
  48.                                 </h2>
  49.                                 <p>
  50.                                 {{ blog.description|length > 200 ? blog.description|striptags|slice(0, 197)|trim|raw ~ '...' : blog.description|striptags|raw  }}
  51.         
  52.                                 </p>
  53.                             </div>
  54.                         </div>
  55.                     {% endfor %}
  56.         
  57.                 {% include 'includes/pagination.html.twig' %}
  58.             </div>
  59.         </div>
  60.     </div>
  61. </main>{% endblock %}