src/Elements/Bundle/DemiFrontendBundle/Resources/views/Layout/list-layout.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     <script>
  5.         /* ga mock function */
  6.         (function(i,s,r){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  7.             (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
  8.         })(window,document,'ga');
  9.     </script>
  10.     {{ include('@ElementsDemiFrontend/Includes/layout/head.html.twig') }}
  11.     {{ include('Layout/includes/codeHead.html.twig') }}
  12. </head>
  13. <body>
  14. {% if demi_core_configuration("getIsWhitelabel", {}) %}
  15.     {% do jsConfig().add('affiliate', true) %}
  16.     {% do jsConfig().add('affiliateTarget', '_blank') %}
  17. {% endif %}
  18. {% if not demi_core_configuration("getIsWhitelabel", {}) and not editmode %}
  19.     {{ include('Navigation/navbar.html.twig') }}
  20. {% endif %}
  21. <main id="main" class="screen-wrapper {{ demi_core_configuration("getIsWhitelabel", {}) ? 'pt-0' : ''  }}" role="main">
  22.     <div class="list-wrapper">
  23.         {{ block('content') }}
  24.     </div>
  25. </main>
  26. {{ include('@ElementsDemiFrontend/Includes/layout/jsScripts.html.twig') }}
  27. {% set now = carbon().now() %}
  28. {% set earliestProposedFromDate = carbon().createFromFormat('Y-m-d H:i:s', '2020-03-19 12:00:00') %}
  29. {% set earliestProposedToDate = earliestProposedFromDate.copy().addDays(7) %}
  30. {% if earliestProposedFromDate.gt(now) %}
  31.     <script type="text/javascript" data-cookieconsent="ignore">
  32.         _initialState.searchForm.from = '{{ elements_customDateFormat(earliestProposedFromDate) }}';
  33.         _initialState.searchForm.to = '{{ elements_customDateFormat(earliestProposedToDate) }}';
  34.     </script>
  35. {% endif %}
  36. </body>
  37. </html>