templates/front/blocks/blog/block_content_menu.twig line 1

Open in your IDE?
  1. {% set nextPost = get_next_post(page.post.sortOrder|default(null)) %}
  2. {% set previousPost = get_previous_post(page.post.sortOrder|default(null)) %}
  3. {% if nextPost is not null or previousPost is not null %}
  4.     <section class="parent-container bg-grey py-5">
  5.         <div class="container-fluid">
  6.             <div class="row justify-content-around">
  7.                 <div class="col-xxl-10 col-xl-10 col-12">
  8.                     <div class="row">
  9.                         <div class="col-6">
  10.                             {% if previousPost is not null %}
  11.                                 <a href="{{ previousPost.page.translations.pl.url|default('#') }}" class="fw-bold f-24 previous-blog">
  12.                                     &lt; poprzedni wpis</a>
  13.                                 <p class="mt-3">{{ previousPost.translations.pl.head|default('') }}</p>
  14.                             {% endif %}
  15.                         </div>
  16.                         <div class="col-6 text-end">
  17.                             {% if nextPost is not null %}
  18.                                 <a href="{{ nextPost.page.translations.pl.url|default('#') }}" class="fw-bold f-24 next-blog">
  19.                                     nastÄ™pny wpis ></a>
  20.                                 <p class="mt-3">{{ nextPost.translations.pl.head|default('') }}</p>
  21.                             {% endif %}
  22.                         </div>
  23.                     </div>
  24.                 </div>
  25.             </div>
  26.         </div>
  27.     </section>
  28. {% endif %}