templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  6.         <meta name="description" content=""/>
  7.         <meta name="author" content=""/>
  8.         <title>
  9.             {% block title %}Vítejte na MojeZpráva.cz!
  10.             {% endblock %}
  11.         </title>
  12.         <!-- Favicon-->
  13.         <link
  14.         rel="icon" type="image/x-icon" href="{{ asset('images/favicon.ico') }}"/>
  15.         <!-- Bootstrap Icons-->
  16.         <link
  17.         href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet"/>
  18.         <!-- CSS only -->
  19.         <link
  20.         href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
  21.         <!-- Google fonts-->
  22.         <link href="https://fonts.googleapis.com/css?family=Merriweather+Sans:400,700" rel="stylesheet"/>
  23.         <link
  24.         href="https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic" rel="stylesheet" type="text/css"/>
  25.         <!-- SimpleLightbox plugin CSS-->
  26.         <link
  27.         href="https://cdnjs.cloudflare.com/ajax/libs/SimpleLightbox/2.1.0/simpleLightbox.min.css" rel="stylesheet"/>
  28.         <!-- Core theme CSS (includes Bootstrap)-->
  29.         <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  30.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
  31.         <link href="{{ asset('styles/bootstrap-datepicker3.css') }}" rel="stylesheet"/>
  32.         <link href="{{ asset('styles/styles.css') }}" rel="stylesheet"/>
  33.         {% block stylesheets %}
  34.             {{ encore_entry_link_tags('app') }}
  35.             <style>
  36.                 .disable {
  37.                     pointer-events: none;
  38.                     background: grey;
  39.                 }
  40.             </style>
  41.         {% endblock %}
  42.         <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  43.         {{ encore_entry_script_tags('app') }}
  44.         <!-- SimpleLightbox plugin JS-->
  45.         <script src="https://cdnjs.cloudflare.com/ajax/libs/SimpleLightbox/2.1.0/simpleLightbox.min.js"></script>
  46.         <!-- JavaScript Bundle with Popper -->
  47.         <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
  48.         <script src="{{ asset('js/bootstrap-datepicker.js') }}"></script>
  49.         <script src="{{ asset('js/bootstrap-datepicker.cs.min.js') }}"></script>
  50.         <script src="{{ asset('js/scripts.js') }}"></script>
  51.         <script src="https://cdn.startbootstrap.com/sb-forms-latest.js"></script>
  52.         {% block javascripts %}{% endblock %}
  53.     </head>
  54.     <body
  55.         class="body">
  56.         <!-- Navigation-->
  57.         <nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" id="mainNav">
  58.             <div class="container px-4 px-lg-5">
  59.                 <a class="navbar-brand" href="{{ path('homepage') }}">Moje zpráva</a>
  60.                 <button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
  61.                     <span class="navbar-toggler-icon"></span>
  62.                 </button>
  63.                 <div class="collapse navbar-collapse" id="navbarResponsive">
  64.                     <ul class="navbar-nav ms-auto my-2 my-lg-0">
  65.                         <li class="nav-item">
  66.                             <a class="nav-link" href="{{ path('app_order') }}">{{ 'New message' | trans }}</a>
  67.                         </li>
  68.                         {% if app.request.attributes.get('_route') == 'homepage' %}
  69.                             <li class="nav-item">
  70.                                 <a class="nav-link" href="#services">{{ 'Services' | trans }}</a>
  71.                             </li>
  72.                         {% else %}
  73.                             <li class="nav-item">
  74.                                 <a class="nav-link" href="{{ path('homepage') }}#services">{{ 'Services' | trans }}</a>
  75.                             </li>
  76.                         {% endif %}
  77.                         <li class="nav-item dropdown">
  78.                             <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ 'Special offer' | trans }}</a>
  79.                             <ul class="dropdown-menu">
  80.                                 <li>
  81.                                     <a class="dropdown-item" href="{{ path('app_wedding_day') }}">{{ 'Wedding day' | trans }}</a>
  82.                                 </li>
  83.                                 <li>
  84.                                     <a class="dropdown-item" href="{{ path('app_for_companies') }}">{{ 'For companies' | trans }}</a>
  85.                                 </li>
  86.                                 <li>
  87.                                     <a class="dropdown-item" href="{{ path('app_for_prom') }}">{{ 'For Prom' | trans }}</a>
  88.                                 </li>
  89.                             </ul>
  90.                         </li>
  91.                         <li class="nav-item">
  92.                             <a class="nav-link" href="{{ path('app_faq') }}">{{ 'FAQ' | trans }}</a>
  93.                         </li>
  94.                         {% if app.request.attributes.get('_route') == 'homepage' %}
  95.                             <li class="nav-item">
  96.                                 <a class="nav-link" href="#contact">{{ 'Contact' | trans }}</a>
  97.                             </li>
  98.                         {% else %}
  99.                             <li class="nav-item">
  100.                                 <a class="nav-link" href="{{ path('homepage') }}#contact">{{ 'Contact' | trans }}</a>
  101.                             </li>
  102.                         {% endif %}
  103.                         <li class="nav-item dropdown">
  104.                             <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ 'Documents' | trans }}</a>
  105.                             <ul class="dropdown-menu">
  106.                                 <li>
  107.                                     <a class="dropdown-item" href="{{ path('app_general_terms_and_conditions') }}">{{ 'General terms and conditions' | trans }}</a>
  108.                                 </li>
  109.                                 <li>
  110.                                     <a class="dropdown-item" href="{{ path('app_withdrawal_from_the_contract') }}">{{ 'Withdrawal from the contract' | trans }}</a>
  111.                                 </li>
  112.                                 <li>
  113.                                     <a class="dropdown-item" href="{{ path('app_general_data_protection_regulation') }}">{{ 'General data protection regulation' | trans }}</a>
  114.                                 </li>
  115.                             </ul>
  116.                         </li>
  117.                         {% if not is_granted('ROLE_USER') %}
  118.                             <li class="nav-item {% if app.request.attributes.get('_route') starts with 'app_register' %}active{% endif %}">
  119.                                 <a class="nav-link" href="{{ path('app_register') }}">
  120.                                     <i class="fas fa-user-plus"></i>
  121.                                     {{ 'Register' | trans }}</a>
  122.                             </li>
  123.                             <li class="nav-item {% if app.request.attributes.get('_route') starts with 'app_login' %}active{% endif %}">
  124.                                 <a class="nav-link" href="{{ path('app_login') }}">
  125.                                     <i class="fas fa-sign-in-alt"></i>
  126.                                     {{ 'Log in' | trans }}</a>
  127.                             </li>
  128.                         {% endif %}
  129.                         {% if is_granted('ROLE_USER') %}
  130.                             {% if is_granted('ROLE_ADMIN') %}
  131.                                 <li class="nav-item {% if app.request.attributes.get('_route') starts with 'admin' %}active{% endif %}">
  132.                                     <a class="nav-link" href="{{ path('admin') }}">
  133.                                         <i class="fas fa-tools"></i>
  134.                                         {{ 'Administration' | trans }}</a>
  135.                                 </li>
  136.                             {% endif %}
  137.                             <li class="nav-item {% if app.request.attributes.get('_route') starts with 'user_panel' %}active{% endif %}">
  138.                                 <a class="nav-link" href="{{ path('app_user_panel') }}">
  139.                                     <i class="fas fa-user-cog"></i>
  140.                                     {{ 'User profile' | trans }}</a>
  141.                             </li>
  142.                             <li class="nav-item {% if app.request.attributes.get('_route') starts with 'app_logout' %}active{% endif %}">
  143.                                 <a class="nav-link" href="{{ path('app_logout') }}">
  144.                                     <i class="fas fa-sign-out-alt"></i>
  145.                                     {{ 'Log out' | trans }}</a>
  146.                             </li>
  147.                         {% endif %}
  148.                     </ul>
  149.                 </div>
  150.             </div>
  151.         </nav>
  152.         <div class="alert-zone">
  153.             {% for message in app.session.flashbag.get('success') %}
  154.                 <div class="alert alert-success alert-dismissible" role="alert">
  155.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  156.                     <p>{{ message }}</p>
  157.                 </div>
  158.             {% endfor %}
  159.             {% for message in app.session.flashbag.get('info') %}
  160.                 <div class="alert alert-info alert-dismissible" role="alert">
  161.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  162.                     <p>{{ message }}</p>
  163.                 </div>
  164.             {% endfor %}
  165.             {% for message in app.session.flashbag.get('warning') %}
  166.                 <div class="alert alert-warning alert-dismissible" role="alert">
  167.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  168.                     <p>{{ message }}</p>
  169.                 </div>
  170.             {% endfor %}
  171.             {% for message in app.session.flashbag.get('danger') %}
  172.                 <div class="alert alert-danger alert-dismissible" role="alert">
  173.                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  174.                     <p>{{ message }}</p>
  175.                 </div>
  176.             {% endfor %}
  177.         </div>
  178.         {% block body %}{% endblock %}
  179.         <div
  180.             id="share">
  181.             <!-- facebook share button -->
  182.             <a href="https://www.facebook.com/mojezprava" target="blank">
  183.                 <i class="fab"><img width="35" height="35" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Facebook_logo_%28square%29.png/600px-Facebook_logo_%28square%29.png"/></i>
  184.             </a>
  185.             <!-- instagram share button-->
  186.             <a href="https://www.instagram.com/mojezprava/" target="blank">
  187.                 <i class="fab"><img width="35" height="35" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Instagram_icon.png/600px-Instagram_icon.png?20200512141346"/></i>
  188.             </a>
  189.         </div>
  190.         {% include 'default/cookies_popup.html.twig' %}
  191.         <!-- Footer-->
  192.         <footer class="bg-light py-5 footer">
  193.             <div class="container px-4 px-lg-5">
  194.                 <div class="small text-center text-muted">Copyright &copy; 2023 - MojeZpráva.cz</div>
  195.             </div>
  196.         </footer>
  197.     </body>
  198. </html>