templates/base.frontend.html.twig line 1

  1. {% trans_default_domain "base" %}
  2. <!DOCTYPE html>
  3. <html class="no-js" lang="cs">
  4. <head>
  5. {#    {% include 'metatags.frontend.html.twig' %}#}
  6.     <title>{% block title %}{% endblock %}{{ app_front_name }}</title>
  7.     <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  8.     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  9.     {% if project_name == 'laurie' %}
  10.         {% include "template_laurie/favicon.html.twig" %}
  11.     {% elseif project_name == 'rccvp' %}
  12.         {% include "template_rccvp/favicon.html.twig" %}
  13.     {% elseif project_name == 'hccvp' %}
  14.         {% include "template_hccvp/favicon.html.twig" %}
  15.     {% elseif project_name == 'vinci' %}
  16.         {% include "template_vinci/favicon.html.twig" %}
  17.     {% elseif project_name == 'demovp' %}
  18.         {% include "template_demovp/favicon.html.twig" %}
  19.     {% else %}
  20.         {% include "template_default/favicon.html.twig" %}
  21.     {% endif %}
  22.     <meta name="description" content="{{ app_front_description | capitalize }}"/>
  23.     <meta name="author" content="{{ app_front_author | capitalize }}"/>
  24.     <meta name="application-name" content="{{ app_front_name | capitalize }}"/>
  25.     <meta name="robots" content="index,follow"/>
  26.     {% block stylesheets %}
  27.         {{ encore_entry_link_tags('cookieconsent_css') }}
  28.         {{ encore_entry_link_tags('main_css') }}
  29.         {% if project_name == 'laurie' %}
  30.             {{ encore_entry_link_tags('laurie_css') }}
  31.         {% elseif project_name == 'rccvp' %}
  32.             {{ encore_entry_link_tags('rccvp_css') }}
  33.         {% elseif project_name == 'hccvp' %}
  34.             {{ encore_entry_link_tags('hccvp_css') }}
  35.         {% elseif project_name == 'vinci' %}
  36.             {{ encore_entry_link_tags('vinci_css') }}
  37.         {% elseif project_name == 'demovp' %}
  38.             {{ encore_entry_link_tags('demovp_css') }}
  39.         {% endif %}
  40.     {% endblock %}
  41.     {# <script src="https://use.fontawesome.com/1cf17de8a1.js"></script>-->  #}
  42.     {% if google_analytics_id != '' %}
  43.         <!-- Global site tag (gtag.js) - Google Analytics -->
  44.         <script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics_id }}"></script>
  45.         <script>
  46.             window.dataLayer = window.dataLayer || [];
  47.             function gtag(){dataLayer.push(arguments);}
  48.             gtag('js', new Date());
  49.             gtag('config', '{{ google_analytics_id }}');
  50.         </script>
  51.     {% endif %}
  52. </head>
  53. <body>
  54. {#{% block topbar %}
  55. {% endblock %}#}
  56. <div class="wrapper">
  57. <div class="navbar">
  58.     {% if project_name == 'laurie' or project_name == 'vinci' %}
  59.         <div class="grid-container">
  60.             {% if project_name == 'laurie' %}
  61.                 {% include "template_laurie/navbar_logo.html.twig" %}
  62.             {% endif %}
  63.             {% if project_name == 'vinci' %}
  64.                 {% include "template_vinci/navbar_logo.html.twig" %}
  65.             {% endif %}
  66.             <div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
  67.                 <button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
  68.             </div>
  69.             <div class="top-bar" id="responsive-menu">
  70.                 <div class="top-bar-right">
  71.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  72.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  73.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  74.                         </li>
  75.                         {% for route in app.session.get('activeRoutes') %}
  76.                             {% if route.alias == 'about' %}
  77.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  78.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  79.                                 </li>
  80.                             {% elseif route.alias == 'contacts' %}
  81.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  82.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  83.                                 </li>
  84.                             {% endif %}
  85.                         {% endfor %}
  86.                         {% if project_name == 'laurie' %}
  87.                             {% set langList = {'bg': 'https://bg.laurie-project.com/','cs': 'https://cs.laurie-project.com/','en': 'https://patients.laurie-project.com/','it': 'https://it.laurie-project.com/','es': 'https://es.laurie-project.com/','ru': 'https://ru.laurie-project.com/','sk': 'https://sk.laurie-project.com/'} %}
  88.                         <li>
  89.                             {% for key, url in langList %}
  90.                                 {% if key == subdomain %}
  91.                                     <a href="/">
  92.                                         {{ ("lang.name."~key)|trans }}
  93.                                     </a>
  94.                                 {% endif %}
  95.                             {% endfor %}
  96.                             <ul class="menu change-language">
  97.                                 {% for key,url in langList %}
  98.                                     <li>
  99.                                         {% if key != subdomain %}
  100.                                             <a href="{{ url|raw }}">
  101.                                         {% else %}
  102.                                             <span class="no-link-item">
  103.                                         {% endif %}
  104.                                         {{ ("lang.name."~key)|trans }}
  105.                                         {% if key != subdomain %}
  106.                                             </a>
  107.                                         {% else %}
  108.                                             </span>
  109.                                         {% endif %}
  110.                                     </li>
  111.                                 {% endfor %}
  112.                             </ul>
  113.                         </li>
  114.                         {% endif %}
  115.                     </ul>
  116.                 </div>
  117.                 <div class="no-top-bar-right">
  118.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  119.                         <li class="show-for-medium">
  120.                             <a href="" style="padding: 19px 16px !important;">|</a>
  121.                         </li>
  122.                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  123.                             {% if is_granted('ROLE_ADMIN') %}
  124.                                 <li>
  125.                                     <a class="admin-link" href="{{ path('module-scenario-grid') }}">{{ 'admin'|trans }}</a>
  126.                                 </li>
  127.                             {% endif %}
  128.                             {% if is_granted('ROLE_STAT') %}
  129.                                 <li>
  130.                                     <a class="gotostat-link" href="{{ path('admin-stat-index') }}">{{ 'admin'|trans }}</a>
  131.                                 </li>
  132.                             {% endif %}
  133.                             <li{% if 'user-detail' in app.request.get('_route') or 'user-edit' in app.request.get('_route') %} class="is-active"{% endif %}>
  134.                                 <a class="goto-user-detail-link" href="{{ path('user-detail') }}">{{ 'profile'|trans }}</a>
  135.                             </li>
  136.                             <li>
  137.                                 <a class="logout-link" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
  138.                             </li>
  139.                         {% else %}
  140.                             <li{% if 'login' in app.request.get('_route') %} class="is-active"{% endif %}>
  141.                                 <a class="login-link" href="{{ path('login') }}">{{ 'login'|trans }}</a>
  142.                             </li>
  143.                         {% endif %}
  144.                         {#                    <li class="hide-for-small-only">
  145.                                             <a href="#" data-toggle="example-dropdown-1"><i class="fa fa-search"></i></a>
  146.                                         </li>
  147.                                         <li class="show-for-small-only">
  148.                                             <input class="text-input" type="text" placeholder="Hledej...">
  149.                                         </li>#}
  150.                     </ul>
  151.                 </div>
  152.             </div>
  153.             <p class="clearfix"></p>
  154.         </div>
  155.     {% elseif project_name == 'rccvp' %}
  156.         <div class="grid-container">
  157.             {% include "template_rccvp/navbar_logo.html.twig" %}
  158.             <div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
  159.                 <button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
  160.             </div>
  161.             <div class="top-bar" id="responsive-menu">
  162.                 <div class="top-bar-right">
  163.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  164.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  165.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  166.                         </li>
  167.                         {% for route in app.session.get('activeRoutes') %}
  168.                             {% if route.alias == 'about' %}
  169.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  170.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  171.                                 </li>
  172.                             {% elseif route.alias == 'contacts' %}
  173.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  174.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  175.                                 </li>
  176.                             {% endif %}
  177.                         {% endfor %}
  178.                         {% set langList = {'cs': 'https://cs.rcc-vp.com/','en': 'https://patients.rcc-vp.com/','hu': 'https://hu.rcc-vp.com/','ro': 'https://ro.rcc-vp.com/'} %}
  179.                         <li>
  180.                             {% for key, url in langList %}
  181.                                 {% if key == subdomain %}
  182.                                     <a href="/">
  183.                                         {{ ("lang.name."~key)|trans }}
  184.                                     </a>
  185.                                 {% endif %}
  186.                             {% endfor %}
  187.                             <ul class="menu change-language">
  188.                                 {% for key,url in langList %}
  189.                                     <li>
  190.                                         {% if key != subdomain %}
  191.                                             <a href="{{ url|raw }}">
  192.                                         {% else %}
  193.                                             <span class="no-link-item">
  194.                                         {% endif %}
  195.                                         {{ ("lang.name."~key)|trans }}
  196.                                         {% if key != subdomain %}
  197.                                             </a>
  198.                                         {% else %}
  199.                                             </span>
  200.                                         {% endif %}
  201.                                     </li>
  202.                                 {% endfor %}
  203.                             </ul>
  204.                         </li>
  205.                     </ul>
  206.                 </div>
  207.                 <div class="no-top-bar-right">
  208.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  209.                         <li class="show-for-medium">
  210.                             <a href="" style="padding: 19px 16px !important;">|</a>
  211.                         </li>
  212.                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  213.                             {% if is_granted('ROLE_ADMIN') %}
  214.                                 <li>
  215.                                     <a class="admin-link" href="{{ path('module-scenario-grid') }}">{{ 'admin'|trans }}</a>
  216.                                 </li>
  217.                             {% endif %}
  218.                             {% if is_granted('ROLE_STAT') %}
  219.                                 <li>
  220.                                     <a class="gotostat-link" href="{{ path('admin-stat-index') }}">{{ 'admin'|trans }}</a>
  221.                                 </li>
  222.                             {% endif %}
  223.                             <li{% if 'user-detail' in app.request.get('_route') or 'user-edit' in app.request.get('_route') %} class="is-active"{% endif %}>
  224.                                 <a class="goto-user-detail-link" href="{{ path('user-detail') }}">{{ 'profile'|trans }}</a>
  225.                             </li>
  226.                             <li>
  227.                                 <a class="logout-link" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
  228.                             </li>
  229.                         {% else %}
  230.                             <li{% if 'login' in app.request.get('_route') %} class="is-active"{% endif %}>
  231.                                 <a class="login-link" href="{{ path('login') }}">{{ 'login'|trans }}</a>
  232.                             </li>
  233.                         {% endif %}
  234.                         {#                    <li class="hide-for-small-only">
  235.                                             <a href="#" data-toggle="example-dropdown-1"><i class="fa fa-search"></i></a>
  236.                                         </li>
  237.                                         <li class="show-for-small-only">
  238.                                             <input class="text-input" type="text" placeholder="Hledej...">
  239.                                         </li>#}
  240.                     </ul>
  241.                 </div>
  242.             </div>
  243.             <p class="clearfix"></p>
  244.         </div>
  245.     {% elseif project_name == 'hccvp' %}
  246.         <div class="grid-container">
  247.             {% include "template_hccvp/navbar_logo.html.twig" %}
  248.             <div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
  249.                 <button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
  250.             </div>
  251.             <div class="top-bar" id="responsive-menu">
  252.                 <div class="top-bar-right">
  253.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  254.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  255.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  256.                         </li>
  257.                         {% for route in app.session.get('activeRoutes') %}
  258.                             {% if route.alias == 'about' %}
  259.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  260.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  261.                                 </li>
  262.                             {% elseif route.alias == 'contacts' %}
  263.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  264.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  265.                                 </li>
  266.                             {% endif %}
  267.                         {% endfor %}
  268.                         {% set langList = {'cs': 'https://cs.hcc-vp.com/','en': 'https://patients.hcc-vp.com/','hu': 'https://hu.hcc-vp.com/','ro': 'https://ro.hcc-vp.com/'} %}
  269.                         <li>
  270.                             {% for key, url in langList %}
  271.                                 {% if key == subdomain %}
  272.                                     <a href="/">
  273.                                         {{ ("lang.name."~key)|trans }}
  274.                                     </a>
  275.                                 {% endif %}
  276.                             {% endfor %}
  277.                             <ul class="menu change-language">
  278.                                 {% for key,url in langList %}
  279.                                     <li>
  280.                                         {% if key != subdomain %}
  281.                                         <a href="{{ url|raw }}">
  282.                                             {% else %}
  283.                                             <span class="no-link-item">
  284.                                         {% endif %}
  285.                                                 {{ ("lang.name."~key)|trans }}
  286.                                                 {% if key != subdomain %}
  287.                                         </a>
  288.                                     {% else %}
  289.                                         </span>
  290.                                         {% endif %}
  291.                                     </li>
  292.                                 {% endfor %}
  293.                             </ul>
  294.                         </li>
  295.                     </ul>
  296.                 </div>
  297.                 <div class="no-top-bar-right">
  298.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  299.                         <li class="show-for-medium">
  300.                             <a href="" style="padding: 19px 16px !important;">|</a>
  301.                         </li>
  302.                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  303.                             {% if is_granted('ROLE_ADMIN') %}
  304.                                 <li>
  305.                                     <a class="admin-link" href="{{ path('module-scenario-grid') }}">{{ 'admin'|trans }}</a>
  306.                                 </li>
  307.                             {% endif %}
  308.                             {% if is_granted('ROLE_STAT') %}
  309.                                 <li>
  310.                                     <a class="gotostat-link" href="{{ path('admin-stat-index') }}">{{ 'admin'|trans }}</a>
  311.                                 </li>
  312.                             {% endif %}
  313.                             <li{% if 'user-detail' in app.request.get('_route') or 'user-edit' in app.request.get('_route') %} class="is-active"{% endif %}>
  314.                                 <a class="goto-user-detail-link" href="{{ path('user-detail') }}">{{ 'profile'|trans }}</a>
  315.                             </li>
  316.                             <li>
  317.                                 <a class="logout-link" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
  318.                             </li>
  319.                         {% else %}
  320.                             <li{% if 'login' in app.request.get('_route') %} class="is-active"{% endif %}>
  321.                                 <a class="login-link" href="{{ path('login') }}">{{ 'login'|trans }}</a>
  322.                             </li>
  323.                         {% endif %}
  324.                         {#                    <li class="hide-for-small-only">
  325.                                             <a href="#" data-toggle="example-dropdown-1"><i class="fa fa-search"></i></a>
  326.                                         </li>
  327.                                         <li class="show-for-small-only">
  328.                                             <input class="text-input" type="text" placeholder="Hledej...">
  329.                                         </li>#}
  330.                     </ul>
  331.                 </div>
  332.             </div>
  333.             <p class="clearfix"></p>
  334.         </div>
  335.     {% elseif project_name == 'demovp' %}
  336.         <div class="grid-container">
  337.             {% include "template_demovp/navbar_logo.html.twig" %}
  338.             <div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
  339.                 <button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
  340.             </div>
  341.             <div class="top-bar" id="responsive-menu">
  342.                 <div class="top-bar-right">
  343.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  344.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  345.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  346.                         </li>
  347.                         {% for route in app.session.get('activeRoutes') %}
  348.                             {% if route.alias == 'about' %}
  349.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  350.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  351.                                 </li>
  352.                             {% elseif route.alias == 'contacts' %}
  353.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  354.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  355.                                 </li>
  356.                             {% endif %}
  357.                         {% endfor %}
  358.                     </ul>
  359.                 </div>
  360.                 <div class="no-top-bar-right">
  361.                     <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  362.                         <li class="show-for-medium">
  363.                             <a href="" style="padding: 19px 16px !important;">|</a>
  364.                         </li>
  365.                         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  366.                             {% if is_granted('ROLE_ADMIN') %}
  367.                                 <li>
  368.                                     <a class="admin-link" href="{{ path('module-scenario-grid') }}">{{ 'admin'|trans }}</a>
  369.                                 </li>
  370.                             {% endif %}
  371.                             {% if is_granted('ROLE_STAT') %}
  372.                                 <li>
  373.                                     <a class="gotostat-link" href="{{ path('admin-stat-index') }}">{{ 'admin'|trans }}</a>
  374.                                 </li>
  375.                             {% endif %}
  376.                             <li{% if 'user-detail' in app.request.get('_route') or 'user-edit' in app.request.get('_route') %} class="is-active"{% endif %}>
  377.                                 <a class="goto-user-detail-link" href="{{ path('user-detail') }}">{{ 'profile'|trans }}</a>
  378.                             </li>
  379.                             <li>
  380.                                 <a class="logout-link" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
  381.                             </li>
  382.                         {% else %}
  383.                             <li{% if 'login' in app.request.get('_route') %} class="is-active"{% endif %}>
  384.                                 <a class="login-link" href="{{ path('login') }}">{{ 'login'|trans }}</a>
  385.                             </li>
  386.                         {% endif %}
  387.                         {#                    <li class="hide-for-small-only">
  388.                                             <a href="#" data-toggle="example-dropdown-1"><i class="fa fa-search"></i></a>
  389.                                         </li>
  390.                                         <li class="show-for-small-only">
  391.                                             <input class="text-input" type="text" placeholder="Hledej...">
  392.                                         </li>#}
  393.                     </ul>
  394.                 </div>
  395.             </div>
  396.         </div>
  397.         {% else %}
  398.             <div class="grid-container">
  399.                 {% include "template_default/navbar_logo.html.twig" %}
  400.                 <div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
  401.                     <button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
  402.                 </div>
  403.                 <div class="top-bar" id="responsive-menu">
  404.                     <div class="top-bar-left">
  405.                         <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  406.                             <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  407.                                 <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  408.                             </li>
  409.                             {% for route in app.session.get('activeRoutes') %}
  410.                                 {% if route.alias == 'about' %}
  411.                                     <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  412.                                         <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  413.                                     </li>
  414.                                 {% elseif route.alias == 'contacts' %}
  415.                                     <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  416.                                         <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  417.                                     </li>
  418.                                 {% endif %}
  419.                             {% endfor %}
  420.                         </ul>
  421.                     </div>
  422.                     <div class="top-bar-right">
  423.                         <ul class="vertical medium-horizontal menu" data-responsive-menu="accordion medium-dropdown">
  424.                             {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  425.                                 {% if is_granted('ROLE_ADMIN') %}
  426.                                     <li>
  427.                                         <a class="admin-link" href="{{ path('module-scenario-grid') }}">{{ 'admin'|trans }}</a>
  428.                                     </li>
  429.                                 {% endif %}
  430.                                 <li{% if 'user-detail' in app.request.get('_route') or 'user-edit' in app.request.get('_route') %} class="is-active"{% endif %}>
  431.                                     <a class="goto-user-detail-link" href="{{ path('user-detail') }}">{{ 'profile'|trans }}</a>
  432.                                 </li>
  433.                                 <li>
  434.                                     <a class="logout-link" href="{{ path('logout') }}">{{ 'logout'|trans }}</a>
  435.                                 </li>
  436.                             {% else %}
  437.                                 <li{% if 'login' in app.request.get('_route') %} class="is-active"{% endif %}>
  438.                                     <a class="login-link" href="{{ path('login') }}">{{ 'login'|trans }}</a>
  439.                                 </li>
  440.                             {% endif %}
  441.                             {#                    <li class="hide-for-small-only">
  442.                                             <a href="#" data-toggle="example-dropdown-1"><i class="fa fa-search"></i></a>
  443.                                         </li>
  444.                                         <li class="show-for-small-only">
  445.                                             <input class="text-input" type="text" placeholder="Hledej...">
  446.                                         </li>#}
  447.                         </ul>
  448.                     </div>
  449.                 </div>
  450.             </div>
  451.     {% endif %}
  452.     <div class="dropdown-pane search-box" id="example-dropdown-1" data-dropdown data-auto-focus="true"
  453.          data-close-on-click="true">
  454.         <div class="grid-container">
  455.             <input type="text" placeholder="{{ 'search'|trans }}">
  456.         </div>
  457.     </div>
  458. </div>
  459. {% block flash_messages_frontend %}
  460. <div class="grid-container">
  461.     <div class="grid-x grid-padding-x">
  462.         <div class="cell" data-sticky-container>
  463.             {% for flash_message in app.session.flashBag.get('notice') %}
  464.                 <div class="callout success" data-closable>
  465.                     {{ flash_message }}
  466.                     <button class="close-button" aria-label="Dismiss" type="button" data-close>
  467.                         <span aria-hidden="true">&times;</span>
  468.                     </button>
  469.                 </div>
  470.             {% endfor %}
  471.             {% for flash_message in app.session.flashBag.get('error') %}
  472.                 <div class="callout alert" data-closable>
  473.                     {{ flash_message }}
  474.                     <button class="close-button" aria-label="Dismiss" type="button" data-close>
  475.                         <span aria-hidden="true">&times;</span>
  476.                     </button>
  477.                 </div>
  478.             {% endfor %}
  479.             {% for flash_message in app.session.flashBag.get('warning') %}
  480.                 <div class="callout warning" data-closable>
  481.                     {{ flash_message }}
  482.                     <button class="close-button" aria-label="Dismiss" type="button" data-close>
  483.                         <span aria-hidden="true">&times;</span>
  484.                     </button>
  485.                 </div>
  486.             {% endfor %}
  487.         </div>
  488.     </div>
  489. </div>
  490. {% endblock %}
  491. {#{{ app.request.get('_route') }}
  492. <br>
  493. {{ dump(app.request.attributes) }}
  494. <br>
  495. {{ dump(app.request.attributes.get('_route_params')['page']) }}#}
  496. {% block body %}{% endblock %}
  497.     <div class="push"></div>
  498. </div>
  499. <footer class="footer">
  500.     <div class="footer-primary">
  501.         <div class="grid-container">
  502.             {% if project_name == 'laurie' or  project_name == 'vinci' %}
  503.                 {% if project_name == 'laurie' %}
  504.                     {% include "template_laurie/footer_primary.html.twig" %}
  505.                 {% endif %}
  506.                 {% if project_name == 'vinci' %}
  507.                     {% include "template_vinci/footer_primary.html.twig" %}
  508.                 {% endif %}
  509.                 <div class="footer-right footer-navbar">
  510.                     <ul>
  511.                         <li{% if 'home' in app.request.get('_route') %} class="is-active"{% endif %}>
  512.                             <a href="{{ path('homepage') }}">{{ 'intro'|trans }}</a>
  513.                         </li>
  514.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  515.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  516.                         </li>
  517.                         {% for route in app.session.get('activeRoutes') %}
  518.                             {% if route.alias == 'about' %}
  519.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  520.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  521.                                 </li>
  522.                             {% elseif route.alias == 'contacts' %}
  523.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  524.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  525.                                 </li>
  526.                             {% endif %}
  527.                         {% endfor %}
  528.                     </ul>
  529.                 </div>
  530.             {% elseif project_name == 'rccvp' %}
  531.                 {% include "template_rccvp/footer_primary.html.twig" %}
  532.                 <div class="footer-right footer-navbar">
  533.                     <ul>
  534.                         <li{% if 'home' in app.request.get('_route') %} class="is-active"{% endif %}>
  535.                             <a href="{{ path('homepage') }}">{{ 'intro'|trans }}</a>
  536.                         </li>
  537.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  538.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  539.                         </li>
  540.                         {% for route in app.session.get('activeRoutes') %}
  541.                             {% if route.alias == 'about' %}
  542.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  543.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  544.                                 </li>
  545.                             {% elseif route.alias == 'contacts' %}
  546.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  547.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  548.                                 </li>
  549.                             {% endif %}
  550.                         {% endfor %}
  551.                     </ul>
  552.                 </div>
  553.             {% elseif project_name == 'hccvp' %}
  554.                 {% include "template_hccvp/footer_primary.html.twig" %}
  555.                 <div class="footer-right footer-navbar">
  556.                     <ul>
  557.                         <li{% if 'home' in app.request.get('_route') %} class="is-active"{% endif %}>
  558.                             <a href="{{ path('homepage') }}">{{ 'intro'|trans }}</a>
  559.                         </li>
  560.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  561.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  562.                         </li>
  563.                         {% for route in app.session.get('activeRoutes') %}
  564.                             {% if route.alias == 'about' %}
  565.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  566.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  567.                                 </li>
  568.                             {% elseif route.alias == 'contacts' %}
  569.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  570.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  571.                                 </li>
  572.                             {% endif %}
  573.                         {% endfor %}
  574.                     </ul>
  575.                 </div>
  576.             {% elseif project_name == 'demovp' %}
  577.                 {% include "template_demovp/footer_primary.html.twig" %}
  578.                 <div class="footer-right footer-navbar">
  579.                     <ul>
  580.                         <li{% if 'home' in app.request.get('_route') %} class="is-active"{% endif %}>
  581.                             <a href="{{ path('homepage') }}">{{ 'intro'|trans }}</a>
  582.                         </li>
  583.                         <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  584.                             <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  585.                         </li>
  586.                         {% for route in app.session.get('activeRoutes') %}
  587.                             {% if route.alias == 'about' %}
  588.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  589.                                     <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  590.                                 </li>
  591.                             {% elseif route.alias == 'contacts' %}
  592.                                 <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  593.                                     <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  594.                                 </li>
  595.                             {% endif %}
  596.                         {% endfor %}
  597.                     </ul>
  598.                 </div>
  599.                 {% else %}
  600.                     {% include "template_default/footer_primary.html.twig" %}
  601.                     <div class="footer-right footer-navbar">
  602.                         <ul>
  603.                             <li{% if 'home' in app.request.get('_route') %} class="is-active"{% endif %}>
  604.                                 <a href="{{ path('homepage') }}">{{ 'intro'|trans }}</a>
  605.                             </li>
  606.                             <li{% if ( 'virtual-patients' in app.request.get('_route') or 'scenario' in app.request.get('_route') ) %} class="is-active"{% endif %}>
  607.                                 <a href="{{ path('virtual-patients') }}">{{ 'vp'|trans }}</a>
  608.                             </li>
  609.                             {% for route in app.session.get('activeRoutes') %}
  610.                                 {% if route.alias == 'about' %}
  611.                                     <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'o-projektu' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  612.                                         <a href="{{ path('o-projektu') }}">{{ 'about'|trans }}</a>
  613.                                     </li>
  614.                                 {% elseif route.alias == 'contacts' %}
  615.                                     <li{% if ( app.request.attributes.get('_route_params') is not empty and app.request.attributes.get('_route_params')['page'] is defined and 'kontakty' in app.request.attributes.get('_route_params')['page'] ) %} class="is-active"{% endif %}>
  616.                                         <a href="{{ path('kontakty') }}">{{ 'contact'|trans }}</a>
  617.                                     </li>
  618.                                 {% endif %}
  619.                             {% endfor %}
  620.                         </ul>
  621.                     </div>
  622.             {% endif %}
  623.         </div>
  624.     </div>
  625.     <div class="reveal text-center" id="introMedicModal" data-reveal data-close-on-click="false"
  626.          data-close-on-esc="false" data-animation-in="fa-inp fast">
  627.         <div class="status-icon">
  628.             <i class="fa fa-user-md"></i>
  629.         </div>
  630.         <p>
  631.             {{ 'warning'|trans }}
  632.         </p>
  633.         <h3 class="mb-25">{{ 'question'|trans }}</h3>
  634.         <p>
  635.             {{ 'declaration'|trans }}
  636.         </p>
  637.         <button class="button primary success-button mr-10" data-close aria-label="Close reveal">{{ 'yes'|trans }}</button>
  638.         {% if project_name == 'laurie' %}
  639.             <a href="{{ 'no_redirect'|trans }}" class="button primary warning-button ml-10" data-close
  640.                aria-label="Close reveal">{{ 'no'|trans }}</a>
  641.         {% elseif project_name == 'rccvp' %}
  642.             <a href="{{ 'no_redirect_rccvp'|trans }}" class="button primary warning-button ml-10" data-close
  643.                aria-label="Close reveal">{{ 'no'|trans }}</a>
  644.         {% elseif project_name == 'vinci' %}
  645.             <a href="https://www.virtualni-pacient.cz/" class="button primary warning-button ml-10" data-close
  646.                aria-label="Close reveal">{{ 'no'|trans }}</a>
  647.         {% elseif project_name == 'demovp' %}
  648.             <a href="https://www.virtualni-pacient.cz/" class="button primary warning-button ml-10" data-close
  649.                aria-label="Close reveal">{{ 'no'|trans }}</a>
  650.         {% else %}
  651.             <a href="https://www.virtualni-pacient.cz/" class="button primary warning-button ml-10" data-close
  652.                aria-label="Close reveal">{{ 'no'|trans }}</a>
  653.         {% endif %}
  654.     </div>
  655.     <div class="footer-secondary">
  656.         <div class="grid-container" style="text-align: center">
  657.             {% if project_name == 'demovp' %}
  658.                 <span>{{ 'info1'|trans }} <a href="https://www.virtualni-pacient.cz/">virtualni-pacient.cz</a>, {{ 'info2'|trans }} <a
  659.                             href="https://www.biostatistika.cz/">Institut biostatistiky a analýz, s.r.o.</a></span><br>
  660.                 <span style="text-align: center">
  661.                      <p><small>{{ 'system.version'|trans }}: 22.18</small></p>
  662.                 </span>
  663.             {% else %}
  664.                 <a href="https://www.virtualni-pacient.cz/"><img class="logo-virtualni-pacient" src="{{ asset('/build/images/frontend/logo-virtualnipacient.svg') }}"
  665.                                                                  alt="Logo VP"/></a>
  666.                 <span>{{ 'info1'|trans }} <a href="https://www.virtualni-pacient.cz/">virtualni-pacient.cz</a>, {{ 'info2'|trans }} <a
  667.                             href="https://www.biostatistika.cz/">Institut biostatistiky a analýz, s.r.o.</a></span><br>
  668.                 <div style="text-align: center">
  669.                      <p><small id="app-version">{{ 'system.version'|trans }}: {{ labyrinther_version() }}</small></p>
  670.                 </div>
  671.             {% endif %}
  672.         </div>
  673.     </div>
  674. </footer>
  675. {% block javascripts %}
  676.     {{ encore_entry_script_tags('app') }}
  677.     {{ encore_entry_script_tags('main_js') }}
  678.     {{ encore_entry_script_tags('cookieconsent_js') }}
  679. {% endblock %}
  680. {% block scripts %}
  681.     <script>
  682.         COOKIE_NAME = 'medicookie';
  683.         $(document).ready(function () {
  684.             $('#introMedicModal').css('z-index', 9999999);
  685.             var options = {path: '/', expires: 150};
  686.             if ($.cookie(COOKIE_NAME) != 'yes') $('#introMedicModal').foundation('open');
  687.             $('#introMedicModal .success-button').click(function () {
  688.                 $.cookie(COOKIE_NAME, 'yes', options);
  689.                 $('#introMedicModal').foundation('close');
  690.             });
  691.         })
  692.         {% if show_cookie_confirmation is defined and show_cookie_confirmation %}
  693.             {% include "template_default/cookie_content.html.twig" %}
  694.         {% endif %}
  695.     </script>
  696. {% endblock %}
  697. </body>
  698. </html>