templates/portfolio.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     <link href="{{ asset('/css/realisation.css') ~ '?' ~ version() }}" rel="stylesheet">
  5.     <link href="{{ asset('/css/index.css') ~ '?' ~ version() }}" rel="stylesheet">
  6.     <link href="{{ asset('/css/section-title.css') ~ '?' ~ version() }}" rel="stylesheet">
  7.     <link href="{{ asset('/css/lightbox.css') ~ '?' ~ version() }}" rel="stylesheet">
  8.     <link href="{{ asset('/css/breadcrumbs.css') ~ '?' ~ version() }}" rel="stylesheet">
  9.     <link href="{{ asset('/css/rwd.css') ~ '?' ~ version() }}" rel="stylesheet">
  10. {% endblock %}
  11. {% block title %}Realizacja wnętrza - {{ parent() }}{% endblock %}
  12. {% block body %}
  13.     <main>
  14.         <div class="container-fluid no-padding-lr">
  15.             {% include 'partials/_header.html.twig' %}
  16.             <div class="container-xl container-xl-md">
  17.                 <div class="container-m">
  18.                     <nav aria-label="breadcrumb">
  19.                         <ol class="breadcrumb">
  20.                             <li class="breadcrumb-item"><a href="{{ url('index') }}">Strona główna</a></li>
  21.                             <li class="breadcrumb-item"><a href="{{ url('portfolio') }}">Portfolio</a></li>
  22.                             <li class="breadcrumb-item active" aria-current="page">{{ record.title }}</li>
  23.                         </ol>
  24.                     </nav>
  25.                 </div>
  26.                 <div class="realisation-section">
  27.                     <h1>{{ record.title }}</h1>
  28.                     <div class="realisation-description">
  29.                         {{ record.description | raw }}
  30.                     </div>
  31.                 </div>
  32.                 <div id="lightboxModal" class="modal">
  33.                     <span class="close cursor" onclick="closeModal()">&times;</span>
  34.                     <div class="lightbox-modal">
  35.                         <div class="lightbox-slide">
  36.                         </div>
  37.                     </div>
  38.                 </div>
  39.                 <div class="rest-realisations flex">
  40.                     <a class="button-link" href="{{ url('portfolio') }}"><span>pozostałe realizacje</span></a>
  41.                 </div>
  42.             </div>
  43.         </div>
  44.         {{ include('partials/_do-you-like.html.twig') }}
  45.         {{ include('partials/_footer.html.twig') }}
  46.     </main>
  47. {% endblock %}
  48. {% block javascripts %}
  49.     {{ parent() }}
  50.     <script type="text/javascript" src="{{ asset('js/lightbox.js') }}"></script>
  51.     <script type="text/javascript">
  52.         lightbox('.realisation-description', '#lightboxModal');
  53.     </script>
  54.     <script type="application/ld+json">
  55.         {
  56.             "@context": "https://schema.org/",
  57.             "@type": "Article",
  58.             "headline": "{{ record.title }}",
  59.             "description": "{{ record.description | striptags | u.truncate(120, '...', false) }}",
  60.             {% if record.image_filename is not null %}
  61.             "image": "{{ static_dir ~ '/thumbs' ~ record.thumb_filename }}",
  62.             {% endif %}
  63.             "author": {
  64.                 "@type": "Person",
  65.                 "name": "Rafał Szłyk"
  66.             },
  67.             "datePublished": "{{ record.created_at }}"{% if record.updated_at is empty %},
  68.             "dateModified": "{{ record.updated_at }}"
  69.             {% endif %}
  70.         }
  71.     </script>
  72. {% endblock %}