templates/frontend/common/index.html.twig line 1

Open in your IDE?
  1. {# {% if (app.request.get('_route') == 'admin_pm' and is_granted('ROLE_ACCESS_PM_ADD'))
  2.     or (app.request.get('_route') == 'admin_tariffs' and is_granted('ROLE_ACCESS_TARIFFS_ADD'))
  3.     or (app.request.get('_route') == 'admin_servers' and is_granted('ROLE_ACCESS_SERVERS_ADD'))
  4.     or (app.request.get('_route') == 'admin_services' and is_granted('ROLE_ACCESS_SERVICES_ADD'))
  5.     or (app.request.get('_route') == 'admin_prices' and is_granted('ROLE_ACCESS_PRICES_ADD'))
  6.     or (app.request.get('_route') == 'admin_vouchers' and is_granted('ROLE_ACCESS_VOUCHERS_ADD'))
  7.     or (app.request.get('_route') == 'admin_usersServices' and is_granted('ROLE_ACCESS_US_ADD'))
  8.     or (app.request.get('_route') == 'admin_groups' and is_granted('ROLE_ACCESS_GROUPS_ADD'))
  9.     or (app.request.get('_route') == 'admin_users' and is_granted('ROLE_ACCESS_USERS_ADD')) %}
  10.     <div class="modal modal-right" id="modal_add" tabindex="-1" role="dialog" aria-labelledby="modal_add" aria-hidden="true">
  11.         <div class="modal-dialog" role="document">
  12.             <div class="modal-content">
  13.                 {% block modal_add %}{% endblock %}
  14.             </div>
  15.         </div>
  16.     </div>
  17. {% endif %} #}
  18. <!DOCTYPE html>
  19. <html class="no-js" lang="pl">
  20. <head>
  21.     <meta charset="utf-8" />
  22.     <meta http-equiv="x-ua-compatible" content="ie=edge" />
  23.     <title>{% block title %}{% endblock %}</title>
  24.     <meta name="description" content="" />
  25.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  26.     <link rel="shortcut icon" type="image/x-icon" href="{{ asset('assets/uploads/' ~ core.getSettings().pageLogo) }}" />
  27.     <!-- Web Font -->
  28.     <link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
  29.     <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
  30.     <link href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css" rel="stylesheet">
  31.     <!-- ========================= CSS here ========================= -->
  32.     <link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}" />
  33.     <link rel="stylesheet" href="{{ asset('assets/css/LineIcons.2.0.css') }}" />
  34.     <link rel="stylesheet" href="{{ asset('assets/css/animate.css') }}" />
  35.     <link rel="stylesheet" href="{{ asset('assets/css/tiny-slider.css') }}" />
  36.     <link rel="stylesheet" href="{{ asset('assets/css/glightbox.min.css') }}" />
  37.     <link rel="stylesheet" href="{{ asset('assets/css/main.css?v=2.0.3') }}" />
  38.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css">
  39. </head>
  40. <body data-theme="dark" style="--main-color: {{ pageColor }}">
  41.     {% block body %}{% endblock %}
  42.     <a href="#" class="scroll-top btn-hover">
  43.         <i class="lni lni-chevron-up"></i>
  44.     </a>
  45.     <script src="{{ asset('assets/js/popper.min.js') }}"></script>
  46.     <script src="{{ asset('assets/js/tippy-bundle.iife.min.js') }}"></script>
  47.     <script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
  48.     <script src="{{ asset('assets/js/wow.min.js') }}"></script>
  49.     <script src="{{ asset('assets/js/tiny-slider.js') }}"></script>
  50.     <script src="{{ asset('assets/js/glightbox.min.js') }}"></script>
  51.     <script src="{{ asset('assets/js/main.js') }}"></script>
  52.     <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
  53.     <script type="text/javascript">
  54.         const Toast = Swal.mixin({
  55.             toast: true,
  56.             position: 'center-end',
  57.             showConfirmButton: false,
  58.             timer: 3000,
  59.             timerProgressBar: true,
  60.             didOpen: (toast) => {
  61.                 toast.addEventListener('mouseenter', Swal.stopTimer)
  62.                 toast.addEventListener('mouseleave', Swal.resumeTimer)
  63.             }
  64.         });
  65.     </script>
  66.     <!-- Success notifications -->
  67.     {% for message in app.flashes('add_success') %}
  68.         <script type="text/javascript">
  69.             Toast.fire({
  70.                 icon: 'success',
  71.                 title: 'Sukces',
  72.                 text: '{{ message }}'
  73.             })
  74.         </script>
  75.     {% endfor %}
  76.     {% block javascripts %}{% endblock %}
  77. </body>
  78. </html>