templates/Pages/NewsPage/pagetemplate.html.twig line 51

Open in your IDE?
  1. <div id="fb-root"></div>
  2. <script async defer crossorigin="anonymous" src="https://connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v3.3"></script>
  3. <div class="news-page">
  4.     {# Page Header #}
  5.     {% include 'Layout/_page-header.html.twig' with { 'page' : page } %}
  6.     {# Breadcrumbs #}
  7.     {% block breadcrumbs %}
  8.         {% include 'Layout/_breadcrumbs.html.twig' with { 'refererString' : app.request.get('path') } %}
  9.     {% endblock %}
  10.     {% set author = page.getAuthor() %}
  11.     <div class="content row">
  12.         <article class="blog-item col-lg-9">
  13.             <header class="blog-item__head">
  14.                 <h2 class="blog-item__head__title simple" role="heading" aria-level="2">
  15.                     {{ page.pageTitle }}
  16.                 </h2>
  17.                 <time class="blog-item__head__meta">
  18.                     {{ page.date | date("d.m.Y")}}
  19. {#                    {% if author is not empty %}#}
  20. {#                        | <strong>{{ author.name }}</strong>#}
  21. {#                    {% endif %}#}
  22.                 </time>
  23.                 <div class="article-categories">
  24.                     {% for tag in page.tags %}
  25.                         <span>{{ tag.name }}</span>
  26.                     {% endfor %}
  27. {#                    {% for category in page.categories %}#}
  28. {#                        <span>{{ category.name }}</span>#}
  29. {#                    {% endfor %}#}
  30.                 </div>
  31.             </header>
  32.             {% if page.summary is defined and page.summary is not empty %}<p class="blog-item--summary">{{ page.summary }}</p>{% endif %}
  33.             {{ render_pageparts(page, 'newsmain') }}
  34.             <div class="fb-share-button" data-href="{{ app.request.uri }}" data-layout="button" data-size="large"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">UdostÄ™pnij</a></div>
  35.         </article>
  36.         <div class="latest-news col-lg-3">
  37.             <h2 role="heading" aria-level="2">{{ 'news.latest_news.read-more' | trans }}</h2>
  38.             {{ render_esi(controller('App\\Controller\\NewsArticleController:lastNews', { 'limit' :  3, 'categories' : page.getCategoriesIds  } )) }}
  39.             <div class="text--right">
  40.                 {% set categoriesList = "" %}
  41.                 {% for categoryId in page.getCategoriesIds %}
  42.                     {% set categoriesList = categoriesList ~ categoryId %}
  43.                     {% if not loop.last %}
  44.                         {% set categoriesList = categoriesList ~ ',' %}
  45.                     {% endif %}
  46.                 {% endfor %}
  47.                 <a href="{{ get_url_by_internal_name('news', app.request.locale) }}?category={{ categoriesList }}" class="btn btn--blue">{{ 'news.latest_news.read-more' | trans }}</a>
  48.             </div>
  49.         </div>
  50.     </div>
  51. </div>