templates/frontend/press-releases.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2.     {% block meta_title %}
  3.         {% set metaTitle = "Huguenot Tunnel | A Sanral Project" %}
  4.         {{ metaTitle }}
  5.     {% endblock %}
  6.     {% block meta_decription %}
  7.         {% set metaTitle = "Huguenot Tunnel | A Sanral Project" %}
  8.         {% set metaDescription = "Huguenot Tunnel | A Sanral Project" %}
  9.         <meta name="twitter:card" content="summary" />
  10.         <meta name="twitter:site" content="Sanral" />
  11.         <meta name="twitter:title" content="{{ metaTitle }}" />
  12.         <meta name="twitter:description" content="{{ metaDescription }}" />
  13.         <meta name="twitter:image" content="https://ap-live.nerdw.com/images/banner/about-banner.jpg" />
  14.         <meta name="twitter:url" content="{{ app.request.uri }}" />
  15.         <meta name="og:image" content="https://ap-live.nerdw.com/images/banner/about-banner.jpg" />
  16.         <meta name="og:title" content="{{ metaTitle }}" />
  17.         <meta name="og:description" content="{{ metaDescription }}" />
  18.         <meta name="og:url" content="{{ app.request.uri }}" />
  19.         <meta name="description" content="{{ metaDescription }}">
  20.     {% endblock %}
  21.     {% block stylesheets %}
  22.         <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
  23.         {{ parent() }}
  24.     {% endblock %}
  25.     {% block layout %}
  26.         <!-- Banner -->
  27.         <div class="fl-row fl-row-full-width fl-row-bg-photo fl-node-5df0cc2408fb2 fl-row-bg-overlay" data-node="5df0cc2408fb2">
  28.             <div class="fl-row-content-wrap">
  29.                 <div class="uabb-row-separator uabb-top-row-separator"></div>
  30.                 <div class="fl-row-content fl-row-fixed-width fl-node-content">
  31.                     <div class="fl-col-group fl-node-5df0cc241071e" data-node="5df0cc241071e">
  32.                         <div class="fl-col fl-node-5df0cc2410ab4" data-node="5df0cc2410ab4">
  33.                             <div class="fl-col-content fl-node-content">
  34.                                 <div class="fl-module fl-module-pp-heading fl-node-5df0cc2408273" data-node="5df0cc2408273">
  35.                                     <div class="fl-module-content fl-node-content">
  36.                                         <div class="pp-heading-content">
  37.                                             <div class="pp-heading pp-left">
  38.                                                 <h2 class="heading-title">
  39.                                                     <span class="title-text pp-primary-title">Press releases</span>
  40.                                                 </h2>
  41.                                             </div>
  42.                                             <div class="pp-heading-separator line_only pp-left">
  43.                                                 <span class="pp-separator-line"></span>
  44.                                             </div>
  45.                                         </div>
  46.                                     </div>
  47.                                 </div>
  48.                             </div>
  49.                         </div>
  50.                     </div>
  51.                 </div>
  52.             </div>
  53.         </div>
  54.         <div class="uabb-js-breakpoint" style="display: none;"></div>
  55.         <div class="fl-row-content fl-row-fixed-width fl-node-content">
  56.             <div class="fl-col-group fl-node-5df0cb87557d2" data-node="5df0cb87557d2">
  57.                 <div class="fl-col fl-node-5df0cb8755b37" data-node="5df0cb8755b37">
  58.                     <div class="fl-col-content fl-node-content">
  59.                         <div class="fl-module fl-module-pp-content-grid fl-node-5df0cb875259e" data-node="5df0cb875259e">
  60.                             <div class="fl-module-content fl-node-content">
  61.                                 <div class="pp-posts-wrapper pp-posts-initiated">
  62.                                     <div class="pp-content-post-grid pp-masonry-active clearfix row" itemscope="itemscope" itemtype="http://schema.org/Blog" style="position: relative; height: 561.075px;">
  63.                                         {% for data in press_releases %}
  64.                                             {%  set image = data.banner %}
  65.                                             <div class="pp-content-post pp-content-grid-post pp-grid-style-2 post-59 post type-post status-publish format-standard has-post-thumbnail hentry category-press-releases col-4">
  66.                                                 <div class="pp-content-grid-image pp-post-image">
  67.                                                     <div class="pp-post-featured-img">
  68.                                                         <div class="fl-photo fl-photo-align-center" itemscope="" itemtype="https://schema.org/ImageObject">
  69.                                                             <div class="fl-photo-content fl-photo-img-jpg">
  70.                                                                 <a href="{{ path('press_release_article', {'id': data.id, 'title': data.title|replace({' ':'-','&':'-and-'})}) }}" target="_self" itemprop="url">
  71.                                                                     <img loading="lazy" class="img-fluid fl-photo-img wp-image-57 size-large" src="{{ asset('images/press_releases/' ~ image) }}" alt="road-construction3"" />
  72.                                                                 </a>
  73.                                                             </div>
  74.                                                         </div>
  75.                                                     </div>
  76.                                                 </div>
  77.                                             <div class="pp-content-grid-inner pp-content-body clearfix">
  78.                                                 <div class="pp-content-post-data">
  79.                                                     <h3 class="pp-content-grid-title pp-post-title min-height-100 three-line-teaser" itemprop="headline">
  80.                                                         <a href="{{ path('press_release_article', {'id': data.id, 'title': data.title|replace({' ':'-','&':'-and-'})}) }}">
  81.                                                             {{ data.title|raw }}
  82.                                                         </a>
  83.                                                     </h3>
  84.                                                     <span class="pp-post-title-divider"></span>
  85.                                                     <div class="pp-content-post-meta pp-post-meta">
  86.                                                         <span class="pp-content-post-author">
  87.                                                             By <span>Huguenot</span>
  88.                                                         </span>
  89.                                                         <span> | </span>
  90.                                                         <span class="pp-content-grid-date">{{ data.datePublished|date('M d Y') }} </span>
  91.                                                     </div>
  92.                                                     <div class="pp-content-grid-content pp-post-content three-line-teaser">
  93.                                                         {{ data.copy|markdown_to_html }}
  94.                                                     </div>
  95.                                                     <div class="pp-content-grid-more-link clearfix">
  96.                                                         <a class="pp-content-grid-more pp-more-link-button" href="{{ path('press_release_article', {'id': data.id, 'title': data.title|replace({' ':'-','&':'-and-'})}) }}">
  97.                                                             Read More
  98.                                                         </a>
  99.                                                     </div>
  100.                                                 </div>
  101.                                             </div>
  102.                                         </div>
  103.                                         {% endfor %}
  104.                                         <div class="pp-grid-space"></div>
  105.                                     </div>
  106.                                     <div class="fl-clear"></div>
  107.                                 </div>
  108.                             </div>
  109.                         </div>
  110.                     </div>
  111.                 </div>
  112.             </div>
  113.         </div>
  114.     {% endblock %}