templates/main/pageItem.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     {% if seo['meta-title'] %}
  4.         {{ seo['meta-title'] }}
  5.     {% endif %}
  6. {% endblock %}
  7. {% block meta_description %}
  8.     {% if seo['meta-desc'] %}
  9.         {{ seo['meta-desc'] }}
  10.     {% endif %}
  11. {% endblock %}
  12. {% block meta_keywords %}
  13.     {% if seo['meta-keywords'] %}
  14.         {{ seo['meta-keywords'] }}
  15.     {% endif %}
  16. {% endblock %}
  17. {% block meta_nofollow %}
  18.     {% if seo['nofollow'] %}noindex, nofollow
  19.     {% endif %}
  20. {% endblock %}
  21. {% block header %}
  22.     {% include './partials/secondaryHeader.html.twig' %}
  23. {% endblock %}
  24. {% block body %}
  25.     <div class="container about-us">
  26.         <div class="row px-4">
  27.             <nav aria-label="breadcrumb" class="px-0">
  28.                 <ol class="breadcrumb">
  29.                     <li class="breadcrumb-item">
  30.                         <a href="/">{{ 'pages.breadcrumb.home'|trans }}</a>
  31.                     </li>
  32.                     <li class="breadcrumb-item active" aria-current="page">{{ page.title }}
  33.                     </li>
  34.                 </ol>
  35.             </nav>
  36.         </div>
  37.         <div class="row px-lg-4 px-xxl-auto">
  38.             <div class="d-lg-none col-12 my-4">
  39.                 <div class="get-to-know-image">
  40.                     <img src="{{ absolute_url( asset('build/images/icons/about_us.png') ) }}" alt="">
  41.                 </div>
  42.             </div>
  43.             <div class="col-12 col-lg-8">
  44.                 <div class="get-to-know" style="max-width:100%; align-items:flex-start;">
  45.                     <h1 class="get-to-know-header">{{ page.title }}
  46.                     </h1>
  47.                     <div class="get-to-know-content custom-page-description" style="padding-bottom: 35px;">
  48.                         {{ page.shortDesc }}
  49.                     </div>
  50.                 </div>
  51.             </div>
  52.             <div class="d-none d-lg-block col-lg-4 d-xl-flex">
  53.                 <div class="get-to-know-image align-self-end">
  54.                     <img src="{{ absolute_url( asset('build/images/icons/about_us.png') ) }}" alt="">
  55.                 </div>
  56.             </div>
  57.         </div>
  58.     </div>
  59.     <div class="bg-white container-fluid">
  60.         <div class="about-us mx-auto" style="margin-top:0;">
  61.             <div class="row">
  62.                 <div class="col-12 col-lg-8">
  63.                     <div class="get-to-know" style="max-width:100%; align-items:flex-start;">
  64.                         <div class="get-to-know-content custom-page-description" style="padding-bottom: 35px; padding-top: 40px;">
  65.                             {{ page.description|raw }}
  66.                         </div>
  67.                     </div>
  68.                 </div>
  69.                 {% if app.request.locale == 'en' %}
  70.                     <div class="col-12 d-none d-lg-block col-lg-4">
  71.                         <div class="contact-us">
  72.                             <h5>If You have any question about that transfer, just contact us</h5>
  73.                             <a href="{{ path('app_contact') }}">Contact us</a>
  74.                         </div>
  75.                         <h4>Read also</h4>
  76.                         <ul class="inspirations">
  77.                             {% for menuPage in travelMenu %}
  78.                                 <li class="inspirations-item">
  79.                                     <a href="{{path('app_page_item', {slug: menuPage.slug})}}"></a>
  80.                                     <h5>{{menuPage.title}}</h5>
  81.                                 </li>
  82.                             {% endfor %}
  83.                         </ul>
  84.                         <h4>Transfers</h4>
  85.                         <ul class="inspirations">
  86.                             <li class="inspirations-item">
  87.                                 <a href="/en/transfer/pico"></a>
  88.                                 <h5>Transfer to Pico do Arieiro</h5>
  89.                             </li>
  90.                             <li class="inspirations-item">
  91.                                 <a href="/en/transfer/rabacal"></a>
  92.                                 <h5>Transfer to Rabaçal</h5>
  93.                             </li>
  94.                             <li class="inspirations-item">
  95.                                 <a href="/en/transfer/fanal"></a>
  96.                                 <h5>Transfer to Fanal Forest</h5>
  97.                             </li>
  98.                         </ul>
  99.                     </div>
  100.                 {% endif %}
  101.             </div>
  102.             <div class="swiper gallery-swiper-page bg-white">
  103.                 <div class="swiper-wrapper">
  104.                     {% for item in page.gallery.galleryItems %}
  105.                         {% if item.media %}
  106.                             <div class="swiper-slide">
  107.                                 <img src="{{ sonata_path(item.media, 'reference') }}" loading="lazy" alt="{{item.media.description}}">
  108.                             </div>
  109.                         {% endif %}
  110.                     {% endfor %}
  111.                 </div>
  112.             </div>
  113.             {% if app.request.locale == 'en' %}
  114.                 <div class="col-12 d-lg-none">
  115.                     <div class="contact-us">
  116.                         <h5>If You have any question about that transfer, just contact us</h5>
  117.                         <a href="{{ path('app_contact') }}">Contact us</a>
  118.                     </div>
  119.                     <h4>Read also</h4>
  120.                     <ul class="inspirations">
  121.                         {% for menuPage in travelMenu %}
  122.                             <li class="inspirations-item">
  123.                                 <a href="{{path('app_page_item', {slug: menuPage.slug})}}"></a>
  124.                                 <h5>{{menuPage.title}}</h5>
  125.                             </li>
  126.                         {% endfor %}
  127.                     </ul>
  128.                     <h4 class="pt-4">Transfers</h4>
  129.                     <ul class="inspirations">
  130.                         <li class="inspirations-item">
  131.                             <a href="/en/transfer/pico"></a>
  132.                             <h5>Transfer to Pico do Arieiro</h5>
  133.                         </li>
  134.                         <li class="inspirations-item">
  135.                             <a href="/en/transfer/rabacal"></a>
  136.                             <h5>Transfer to Rabaçal</h5>
  137.                         </li>
  138.                         <li class="inspirations-item">
  139.                             <a href="/en/transfer/fanal"></a>
  140.                             <h5>Transfer to Fanal Forest</h5>
  141.                         </li>
  142.                     </ul>
  143.                 </div>
  144.             {% endif %}
  145.         </div>
  146.     </div>
  147. {% endblock %}
  148. {% block footer %}
  149.     {% include './partials/footer.html.twig' %}
  150. {% endblock %}
  151. {% block javascripts %}
  152.     {{ parent() }}
  153. {% endblock %}