vendor/score/cms/src/Resources/views/Public/idsk/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="sk" class="govuk-template app-no-canvas-background">
  3.     <head>
  4.         <meta charset="utf-8" />
  5.         <meta name="viewport" content="width=device-width, initial-scale=1,viewport-fit=cover" />
  6.         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  7.         <title>
  8.             {% block title %}
  9.                 {{app.request.host()|split('.')|filter(v => v != "www")[0]|upper}}
  10.             {% endblock %}
  11.         </title>
  12.         <link href="{{ asset('bundles/scorecms/idsk/css/main.css') }}" rel="stylesheet"/> 
  13.         <link href="{{ asset('bundles/scorecms/css/public.css') }}" rel="stylesheet"/> 
  14.         {% block stylesheets %}
  15.         {% endblock %}
  16.         {% import "@ScoreBase/Default/macros.html.twig" as m_layout %}
  17.         {% set layout_reactFiles = (page is defined and page.pageBlocks|map(pb => pb.block.type) | filter(v => v == 'form') | length) ? [] : cms_react_apps(['form'])  %} {# LEBO KED SA TO NACITA DVA KRAT TAK TO NEFUNGUJE #}
  18.         {{ m_layout.filterCss(layout_reactFiles) }}
  19.         <style>
  20.             [data-form-id="nahlaseniechyby"] .cms-form form.items {
  21.                 display: block;
  22.             }
  23.             
  24.             span.text-tiny {
  25.                 font-size: 0.7em;
  26.             }
  27.             span.text-small {
  28.                 font-size: 0.85em;
  29.             }
  30.             span.text-big {
  31.                 font-size: 1.4em;
  32.             }
  33.             span.text-huge {
  34.                 font-size: 1.8em;
  35.             }
  36.             img {
  37.                 max-width: 100%;
  38.                 height: auto;
  39.                 vertical-align: middle;
  40.             }
  41.             div p+.image-style-side {
  42.                 margin-top: 0;
  43.             }
  44.             .image-style-side {
  45.                 float: right;
  46.                 max-width: 50%;
  47.             }
  48.                         
  49.             .image {
  50.                 clear: both;
  51.                 display: table;
  52.                 margin: 0.9em auto;
  53.                 min-width: 50px;
  54.                 text-align: center;
  55.             }
  56.             [id^="cms-block-"]:after {
  57.                 content:"";
  58.                 display:block;
  59.                 clear:both;
  60.             }
  61.         </style>
  62.     </head>
  63.     <body class="govuk-template__body ">
  64.             <script>
  65.                 document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
  66.             </script>
  67.             {{ include('@ScoreCms/Public/idsk/_cookie_banner.html.twig') }}
  68.             <a href="#main-content" class="govuk-skip-link">Preskočiť na hlavný obsah</a>
  69.             
  70.             {{ include('@ScoreCms/Public/idsk/_header.html.twig') }}
  71.             <div class="govuk-width-container">
  72.                 <main class="govuk-main-wrapper govuk-main-wrapper--auto-spacing govuk-body" id="main-content" role="main"> 
  73.                     {% block body %}
  74.                     {% endblock %}
  75.                 </main>
  76.             </div>
  77.                 <div data-module="idsk-footer-extended">
  78.                     <footer class="idsk-footer-extended  idsk-footer-extended--up-button-enabled " role="contentinfo">
  79.                         <div class="idsk-footer-extended-up-button-div" id="footer-extended-up-button">
  80.                             <div class="govuk-width-container">
  81.                                 <div class="govuk-grid-column-full">
  82.                                     <a href="#" role="button" draggable="false" class="idsk-button idsk-button--start idsk-footer-extended-up-button-a" data-module="idsk-button">
  83.                                         <svg class="idsk-footer-extended__up-button-svg" width="20" height="15" viewbox="0 0 20 15" fill="none" xmlns="http://www.w3.org/2000/svg">
  84.                                             <path fill-rule="evenodd" clip-rule="evenodd" d="M10 5.5984L0 15L0 9.40174L10 0L10 5.5984Z" fill="white"/>
  85.                                             <path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M20 9.4016L10 0V5.59826L20 15V9.4016Z" fill="white"/>
  86.                                         </svg>
  87.                                         Hore
  88.                                     </a>
  89.                                 </div>
  90.                             </div>
  91.                         </div>
  92.                         
  93.                         {{ include('@ScoreCms/Public/idsk/_feedback.html.twig') }}
  94.                         <div class="idsk-footer-extended-main-content">
  95.                             <div class="govuk-width-container">
  96.                                 <div class="govuk-grid-column-full">
  97.                                     <div class="idsk-footer-extended-description-panel">
  98.                                         <div class="idsk-footer-extended-meta-item">
  99.                                             <ul class="idsk-footer-extended-inline-list ">
  100.                                                 <li class="idsk-footer-extended-inline-list-item">
  101.                                                     <a class="govuk-link" title="Cookies" href="{{ path('cookies') }}">
  102.                                                         Cookies
  103.                                                     </a>
  104.                                                 </li>
  105.                                                 <li class="idsk-footer-extended-inline-list-item">
  106.                                                     <a class="govuk-link" title="Ochrana osobných údajov" href="{{ path('default_subpage',{'seoid':'ochrana-osobnych-udajov'}) }}">
  107.                                                         Ochrana osobných údajov
  108.                                                     </a>
  109.                                                 </li>
  110.                                                 <li class="idsk-footer-extended-inline-list-item">
  111.                                                     <a class="govuk-link" title="Vyhlásenie o prístupnosti" href="{{ path('default_subpage',{'seoid':'vyhlasenie-o-pristupnosti'}) }}">
  112.                                                         Vyhlásenie o prístupnosti
  113.                                                     </a>
  114.                                                 </li>
  115.                                             </ul>
  116.                                         </div>
  117.                                         <div class="govuk-grid-column-two-thirds idsk-footer-extended-info-links">
  118.                                             <p class="idsk-footer-extended-frame">Vytvorené v súlade s
  119.                                                 <a class="govuk-link" title="Jednotným dizajn manuálom elektronických služieb." href="https://idsk.gov.sk/">
  120.                                                     Jednotným dizajn manuálom elektronických služieb.
  121.                                                 </a>
  122.                                             </p>
  123.                                             <p class="idsk-footer-extended-frame">
  124.                                                 Prevádzkovateľom služby je <a href="https://www.sazp.sk">Slovenská agentúra životného prostredia</a>
  125.                                             </p>
  126.                                         </div>
  127.                                         <div class="govuk-grid-column-one-third idsk-footer-extended-logo-box">
  128.                                             <a href="/" title="domov">
  129.                                                 <div class="idsk-footer-extended-logo">
  130.                                                     {% block footer_logo %}
  131.                 
  132.                                                     {% endblock %}
  133.                                                 </div>
  134.                                             </a>
  135.                                         </div>
  136.                                     </div>
  137.                                 </div>
  138.                             </div>
  139.                         </div>
  140.                     </footer>
  141.                 </div>
  142.                 <script src="{{ asset('bundles/scorecms/idsk/assets/all.js') }}"></script>
  143.                 <script>
  144.                     window.GOVUKFrontend.initAll()
  145.                 </script>
  146.                 <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.15/iframeResizer.min.js" integrity="sha256-NZjCYaMfryuJQRMgekHuC02c/Wv4sMRzHG2zyhrVwKU=" crossorigin="anonymous"></script>
  147.                 <!--[if lte IE 8]>
  148.                     <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.15/ie8.polyfils.min.js"></script>
  149.                   <![endif]-->
  150.                 <script type="text/javascript">
  151.                     var domReady = function (a, b, c) {
  152.                     b = document,
  153.                     c = 'addEventListener';
  154.                     b[c] ? b[c]('DOMContentLoaded', a) : window.attachEvent('onload', a)
  155.                     }
  156.                     domReady(iFrameResize({}, '.js-component-preview'))
  157.                 </script>
  158.             
  159.                 <script>
  160.                     function fireAnalytics(){
  161.                         if(localStorage.getItem('googleAnalytics') === 'true')
  162.                         {
  163.                             //analytics scripts
  164.                         }
  165.                     }
  166.                     fireAnalytics();
  167.                     var cookieBanner = document.querySelector('.idsk-cookie-banner');
  168.                     var cookieBannerAccepted = document.querySelector('.js-cookie-banner-accepted');
  169.                     var cookieBannerRejected = document.querySelector('.js-cookie-banner-rejected');
  170.                     var cookieMessage = document.querySelector('.idsk-cookie-banner__message');
  171.                     var acceptButton = document.querySelector('.js-cookies-button-accept');
  172.                     var rejectButton = document.querySelector('.js-cookies-button-reject');
  173.                     var acceptedButtonHide = document.querySelector('.js-cookies-button-accepted-hide');
  174.                     var rejectedButtonHide = document.querySelector('.js-cookies-button-rejected-hide');
  175.                     if (cookieBanner) {
  176.                     cookieBanner.hidden = (localStorage.getItem('acceptedCookieBanner') === 'true');
  177.                     acceptButton.addEventListener('click', function (event) {
  178.                         cookieMessage.hidden = true;
  179.                         cookieBannerAccepted.hidden = false;
  180.                         localStorage.setItem('googleAnalytics', 'true');
  181.                         localStorage.setItem('acceptedCookieBanner', 'true');
  182.                         fireAnalytics();
  183.                         event.preventDefault();
  184.                     })
  185.                     rejectButton.addEventListener('click', function (event) {
  186.                         cookieMessage.hidden = true;
  187.                         cookieBannerRejected.hidden = false;
  188.                         localStorage.setItem('googleAnalytics', 'false');
  189.                         localStorage.setItem('acceptedCookieBanner', 'true');
  190.                         event.preventDefault();
  191.                     })
  192.                     acceptedButtonHide.addEventListener('click', function (event) {
  193.                         cookieBanner.hidden = true;
  194.                         event.preventDefault();
  195.                     })
  196.                     rejectedButtonHide.addEventListener('click', function (event) {
  197.                         cookieBanner.hidden = true;
  198.                         event.preventDefault();
  199.                     })
  200.                     }
  201.                 </script>
  202.                 <script> 
  203.                     // HORNY  ALERT
  204.                     let c_text = document.querySelector('.js-alert-hore .govuk-body-s').innerText;
  205.                     let c_btn = document.querySelector('.js-alert-hore button');
  206.                     if (localStorage.getItem('idsk_header_banner_text') === c_text) {
  207.                         //c_btn.click();
  208.                     } else {
  209.                         document.querySelector('.js-alert-hore').classList.remove("idsk-header-web__banner--hide")
  210.                     }
  211.                     
  212.                     c_btn.addEventListener('click', function (event) {
  213.                         localStorage.setItem('idsk_header_banner_text', c_text);
  214.                     })
  215.                 </script>
  216.                 {{ m_layout.filterJs(layout_reactFiles) }}
  217.                 {% block javascripts %}
  218.                 {% endblock %}
  219.             </body>
  220.         </html>