templates/pages/gallery.html.twig line 1

Open in your IDE?
  1. {# @var pageinfo \App\Controller\PageInfo #}
  2. {# @var objectinfo \App\Controller\Objects\ObjectInfo #}
  3. {% extends 'base.html.twig' %}
  4.  {% block theme %}
  5.      {% if objectinfo.objectClass == 'info' %}
  6.         <link rel="stylesheet" href="/assets/css/style.light-blue-700.min.css">
  7.      {% elseif objectinfo.objectClass == 'success' %}
  8.          <link rel="stylesheet" href="/assets/css/style.light-green-700.min.css">
  9.      {% else %}
  10.          <link rel="stylesheet" href="/assets/css/style.red-custom.min.css">
  11.      {% endif %}
  12.  {% endblock %}
  13. {% block body %}
  14.     <div class="ms-hero-page ms-hero-bg-info mb-6" style="background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('{{ objectinfo.background.small }}');">
  15.         {% if pageinfo.info != '' %}
  16.             <div class="container" style="position: relative; top: -80px">
  17.             <div id="id-header-news">
  18.                 <i class="fa fa-info-circle"></i>
  19.                 <div class="marquee">
  20.                     <div class="marquee-content">{{ pageinfo.info|raw }}</div>
  21.                 </div>
  22.             </div>
  23.             </div>
  24.         {% endif %}
  25.         <div class="text-center color-white mt-6 mb-6 index-1">
  26.             <h1>{{ objectinfo.title }}</h1>
  27.             <p class="lead lead-lg mb-4">{{ objectinfo.subtitle }}</p>
  28.             {% if objectinfo.buttons|length == 1 %}
  29.                 {% set button = objectinfo.buttons[0] %}
  30.                 {# @var button \App\Controller\Objects\Link #}
  31.                 <a href="{{ button.link }}" class="btn btn-object">{{ button.title }}</a>
  32.             {% elseif objectinfo.buttons|length > 0 %}
  33.                 {% set b = 1 %}
  34.                 {% set btn_d_class = '' %}
  35.                 {% for button in objectinfo.buttons %}
  36.                     {# @var button \App\Controller\Objects\Link #}
  37.                     {% if b > 1 %}
  38.                         {% set btn_d_class = 'd-none d-sm-inline-block' %}
  39.                     {% endif %}
  40.                     <a href="{{ button.link }}" class="btn btn-object {{ btn_d_class }}">{{ button.title }}</a>
  41.                     {% if b < objectinfo.buttons|length %}
  42.                         <img src="/assets/custom/img/kascv_logo_white_50_notext.png" class="btn-separator d-none d-sm-inline-block">
  43.                     {% endif %}
  44.                     {% set b = b + 1 %}
  45.                 {% endfor %}
  46.             {% endif %}
  47.         </div>
  48.     </div>
  49. <div class="container" style="margin-top: -110px">
  50.     <div class="row">
  51.         <div class="col-lg-9">
  52.             {% if objectinfo.alert != '' %}
  53.             <div class="alert alert-warning alert-light wow zoomInRight animation-delay-1" role="alert">
  54.                 <strong><i class="zmdi zmdi-alert-triangle"></i> Upozornění!</strong><br>{{ objectinfo.alert }}
  55.             </div>
  56.             {% endif %}
  57.             <article class="card card-primary wow zoomInRight animation-delay-1 mb-4" style="visibility: visible; animation-name: zoomInRight;">
  58.                 <div class="card-body overflow-hidden card-body-big" style="min-height: {% if objectinfo.alert != '' %}1330px{% else %}1460px{% endif %}">
  59.             {% if objectinfo.pictures|length > 0 %}
  60.                 <div class="row">
  61.                     {% for picture in objectinfo.pictures %}
  62.                         {# @var picture \App\Controller\Objects\Picture #}
  63.                         <div class="col-lg-4 col-md-4 col-sm-6">
  64.                             <div class="card wow zoomIn" style="visibility: visible; animation-name: zoomIn; box-shadow: none; border: solid 1px #dadada">
  65.                                 <div class="ms-thumbnail card-body p-05 ">
  66.                                     <div class="withripple zoom-img">
  67.                                         <a href="{{ picture.large }}" data-lightbox="gallery" data-title="{{ objectinfo.title }}">
  68.                                             <img src="{{ picture.small }}" alt="" class="img-fluid">
  69.                                         </a>
  70.                                         <div class="ripple-container"></div></div>
  71.                                 </div>
  72.                             </div>
  73.                         </div>
  74.                     {% endfor %}
  75.                 </div>
  76.             {% endif %}
  77.                 </div>
  78.             </article>
  79.         </div>
  80.         {% include 'partials/sidecol.html.twig' %}
  81.     </div>
  82. </div>
  83. {% endblock %}
  84. {% block map %}
  85.     <iframe style="width: 100%; height: 300px" id="id-gmap-embed" src="{{ objectinfo.mapLink }}"></iframe>
  86. {% endblock %}
  87. {% block address %}
  88.     <h3 class="ms-footbar-title mb-2 ms-footer-text">{{ objectinfo.title }}</h3>
  89.     <div class="ms-footbar-title">
  90.         <img src="/assets/custom/img/kascv_logo_white_50_notext.png">
  91.         <h3 class="no-m ms-site-title"><span>KULTURA</span>A<span>SPORT</span>CHOMUTOV</h3>
  92.     </div>
  93.     <address class="no-mb">
  94.         <p><i class="zmdi zmdi-pin mr-1"></i> {{ objectinfo.addressStreet }}</p>
  95.         <p><i class="zmdi zmdi-map mr-1"></i> {{ objectinfo.addressCity }}, {{ objectinfo.addressPostal }}</p>
  96.         {% if objectinfo.contactPhone != '' %}
  97.         <p><i class="zmdi zmdi-email mr-1"></i> <a href="mailto:{{ objectinfo.contactPhone }}">{{ objectinfo.contactPhone }}</a></p>
  98.         {% endif %}
  99.         {% if objectinfo.contactMail != '' %}
  100.         <p><i class="fa fa-fax mr-1"></i>{{ objectinfo.contactMail }}</p>
  101.         {% endif %}
  102.         <p><i class="color-danger-light zmdi zmdi-phone mr-1"></i> <a href="/kontakty">Kontakty</a></p>
  103.     </address>
  104. {% endblock %}
  105. {% block javascripts %}
  106.     {{ parent() }}
  107.     <script src="/assets/js/component-carousels-1.js"></script>
  108. {% endblock %}