templates/pages/page.html.twig line 11

Open in your IDE?
  1. {# @var page \App\Controller\Objects\Page #}
  2. {% extends 'base.html.twig' %}
  3. {% block customcss %}
  4.     {{ parent() }}
  5.     <link rel="stylesheet" type="text/css" href="/assets/custom/css/media.min.{{ app.request.server.get('APP_PREVCACHE') }}.css" />
  6. {% endblock %}
  7. {% block body %}
  8.     <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('{{ page.picture.small }}');">
  9.         {% if pageinfo.info != '' %}
  10.             <div class="container" style="position: relative; top: -80px">
  11.                 <div id="id-header-news">
  12.                     <i class="fa fa-info-circle"></i>
  13.                     <marquee>{{ pageinfo.info|raw }}</marquee>
  14.                 </div>
  15.             </div>
  16.         {% endif %}
  17.         <div class="text-center color-white mt-6 mb-6 index-1">
  18.             <h1>{{ page.title }}</h1>
  19.         </div>
  20.     </div>
  21.     {% if html|raw|slice(20, 5) == 'list1' %}
  22.         <article class="container" style="margin-top: -110px">
  23.             <div class="row">
  24.                 <div class="col-lg-8">
  25.                     {{ html|raw }}
  26.                 </div>
  27.                 {% include 'partials/sidecol.html.twig' %}
  28.             </div>
  29.         </article>
  30.     {% else %}
  31.         <div class="container" style="margin-top: -110px">
  32.         <div class="row">
  33.             <div class="col-lg-9">
  34.                 {{ html|raw }}
  35.             </div>
  36.             {% include 'partials/sidecol.html.twig' %}
  37.         </div>
  38.     {% endif %}
  39. </div>
  40. {% endblock %}
  41. {% block javascripts %}
  42.     {{ parent() }}
  43.     <script src="/assets/js/component-carousels-1.js"></script>
  44.     <script>
  45.         $(document).ready(function(){
  46.             {% if html|raw|slice(20, 5) != 'list1' %}
  47.                 $('article.card').css('min-height', '1460px');
  48.             {% endif %}
  49.             $( 'a.custom-collapsed' ).click(function( index ) {
  50.                 console.log(element_id);
  51.                     var element_id = $(this).data('id');
  52.                     var toggle = $(this).data('toggle');
  53.                     if (toggle == 'collapse') {
  54.                         $(this).removeClass('collapsed');
  55.                         $(this).addClass('collapse');
  56.                         $(this).data('toggle', 'collapsed');
  57.                         $('#'+element_id).collapse('show');
  58.                     }
  59.                     else {
  60.                         $(this).removeClass('collapse');
  61.                         $(this).addClass('collapsed');
  62.                         $(this).data('collapse');
  63.                         $(this).data('toggle', 'collapse');
  64.                         $('#'+element_id).collapse('hide');
  65.                     }
  66.             });
  67.             //<a class="collapsed" role="button" data-toggle="collapse" data-id="collapse16" aria-expanded="false" aria-controls="collapse16">
  68.         });
  69.     </script>
  70. {% endblock %}