templates/pages/aqua_termines.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.                 {% for button in objectinfo.buttons %}
  35.                     {# @var button \App\Controller\Objects\Link #}
  36.                     <a href="{{ button.link }}" class="btn btn-object">{{ button.title }}</a>
  37.                     {% if b < objectinfo.buttons|length %}
  38.                         <img src="/assets/custom/img/kascv_logo_white_50_notext.png" class="btn-separator">
  39.                     {% endif %}
  40.                     {% set b = b + 1 %}
  41.                 {% endfor %}
  42.             {% endif %}
  43.         </div>
  44.     </div>
  45. <div class="container" style="margin-top: -110px">
  46.     <div class="row">
  47.         <div class="col-lg-9">
  48.             {% if objectinfo.alert != '' %}
  49.             <div class="alert alert-warning alert-light wow zoomInRight animation-delay-1" role="alert">
  50.                 <strong><i class="zmdi zmdi-alert-triangle"></i> Upozornění!</strong><br>{{ objectinfo.alert }}
  51.             </div>
  52.             {% endif %}
  53.             <article class="card card-primary wow zoomInRight animation-delay-1 mb-4" style="visibility: visible; animation-name: zoomInRight;">
  54.                {{ html|raw }}
  55.             </article>
  56.         </div>
  57.         {% include 'partials/sidecol.html.twig' %}
  58.     </div>
  59. </div>
  60. {% endblock %}
  61. {% block map %}
  62.     <iframe style="width: 100%; height: 300px" id="id-gmap-embed" src="{{ objectinfo.mapLink }}"></iframe>
  63. {% endblock %}
  64. {% block address %}
  65.     <h3 class="ms-footbar-title mb-2 ms-footer-text">{{ objectinfo.title }}</h3>
  66.     <div class="ms-footbar-title">
  67.         <img src="/assets/custom/img/kascv_logo_white_50_notext.png">
  68.         <h3 class="no-m ms-site-title"><span>KULTURA</span>A<span>SPORT</span>CHOMUTOV</h3>
  69.     </div>
  70.     <address class="no-mb">
  71.         <p><i class="zmdi zmdi-pin mr-1"></i> {{ objectinfo.addressStreet }}</p>
  72.         <p><i class="zmdi zmdi-map mr-1"></i> {{ objectinfo.addressCity }}, {{ objectinfo.addressPostal }}</p>
  73.         {% if objectinfo.contactPhone != '' %}
  74.         <p><i class="zmdi zmdi-email mr-1"></i> <a href="mailto:{{ objectinfo.contactPhone }}">{{ objectinfo.contactPhone }}</a></p>
  75.         {% endif %}
  76.         {% if objectinfo.contactMail != '' %}
  77.         <p><i class="fa fa-fax mr-1"></i>{{ objectinfo.contactMail }}</p>
  78.         {% endif %}
  79.         <p><i class="color-danger-light zmdi zmdi-phone mr-1"></i> <a href="/kontakty">Kontakty</a></p>
  80.     </address>
  81. {% endblock %}
  82. {% block javascripts %}
  83.     {{ parent() }}
  84.     <script src="/assets/js/component-carousels-1.js"></script>
  85.     <script type="text/javascript">
  86.         $(function() {
  87.             ShowTab();
  88.             window.addEventListener('hashchange', function() {
  89.                 ShowTab();
  90.             });
  91.             $('#id-course-select').change(function() {
  92.                 setTimeout(function() {
  93.                     let id = $('#id-course-select').val();
  94.                     window.history.replaceState('', '', '#kurz'+id);
  95.                     ShowTab();
  96.                 }, 200);
  97.             });
  98.         });
  99.         function ShowTab() {
  100.             let id = '';
  101.             let href = '';
  102.             let hash = $(location).attr('hash');
  103.             if (hash!='') {
  104.                 /* content */
  105.                 $( ".tab-pane" ).each(function( index ) {
  106.                     id = '#'+$(this).attr('id');
  107.                     $(this).removeClass('active');
  108.                     $(this).removeClass('show');
  109.                     if (id==hash) {
  110.                         $(this).addClass('active');
  111.                         $(this).addClass('show');
  112.                     }
  113.                 });
  114.                 $('.selectpicker').selectpicker('val', hash.replace('#kurz', ''));
  115.             }
  116.         }
  117.     </script>
  118. {% endblock %}