var/cache/dev/twig/bd/bde38c0b380cd38d399a17f5bf8cf928.php line 158

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* frontend/common/index.html.twig */
  14. class __TwigTemplate_0a3be61fbe78f6fee749dde58e1e8c24 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'body' => [$this'block_body'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/common/index.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/common/index.html.twig"));
  36.         // line 18
  37.         echo "<!DOCTYPE html>
  38. <html class=\"no-js\" lang=\"pl\">
  39. <head>
  40.     <meta charset=\"utf-8\" />
  41.     <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\" />
  42.     <title>";
  43.         // line 24
  44.         $this->displayBlock('title'$context$blocks);
  45.         echo "</title>
  46.     <meta name=\"description\" content=\"\" />
  47.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
  48.     <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"";
  49.         // line 27
  50.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("assets/uploads/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["core"]) || array_key_exists("core"$context) ? $context["core"] : (function () { throw new RuntimeError('Variable "core" does not exist.'27$this->source); })()), "getSettings", [], "method"falsefalsefalse27), "pageLogo", [], "any"falsefalsefalse27))), "html"nulltrue);
  51.         echo "\" />
  52.     <!-- Web Font -->
  53.     <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\">
  54.     <link href=\"https://fonts.googleapis.com/css2?family=Lato&display=swap\" rel=\"stylesheet\">
  55.     <link href=\"https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css\" rel=\"stylesheet\">
  56.     <!-- ========================= CSS here ========================= -->
  57.     <link rel=\"stylesheet\" href=\"";
  58.         // line 35
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.css"), "html"nulltrue);
  60.         echo "\" />
  61.     <link rel=\"stylesheet\" href=\"";
  62.         // line 36
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/LineIcons.2.0.css"), "html"nulltrue);
  64.         echo "\" />
  65.     <link rel=\"stylesheet\" href=\"";
  66.         // line 37
  67.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/animate.css"), "html"nulltrue);
  68.         echo "\" />
  69.     <link rel=\"stylesheet\" href=\"";
  70.         // line 38
  71.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/tiny-slider.css"), "html"nulltrue);
  72.         echo "\" />
  73.     <link rel=\"stylesheet\" href=\"";
  74.         // line 39
  75.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/glightbox.min.css"), "html"nulltrue);
  76.         echo "\" />
  77.     <link rel=\"stylesheet\" href=\"";
  78.         // line 40
  79.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/main.css?v=2.0.3"), "html"nulltrue);
  80.         echo "\" />
  81.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css\">
  82. </head>
  83. <body data-theme=\"dark\" style=\"--main-color: ";
  84.         // line 45
  85.         echo twig_escape_filter($this->env, (isset($context["pageColor"]) || array_key_exists("pageColor"$context) ? $context["pageColor"] : (function () { throw new RuntimeError('Variable "pageColor" does not exist.'45$this->source); })()), "html"nulltrue);
  86.         echo "\">
  87.     ";
  88.         // line 46
  89.         $this->displayBlock('body'$context$blocks);
  90.         // line 47
  91.         echo "
  92.     <a href=\"#\" class=\"scroll-top btn-hover\">
  93.         <i class=\"lni lni-chevron-up\"></i>
  94.     </a>
  95.     <script src=\"";
  96.         // line 52
  97.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/popper.min.js"), "html"nulltrue);
  98.         echo "\"></script>
  99.     <script src=\"";
  100.         // line 53
  101.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/tippy-bundle.iife.min.js"), "html"nulltrue);
  102.         echo "\"></script>
  103.     <script src=\"";
  104.         // line 54
  105.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/bootstrap.min.js"), "html"nulltrue);
  106.         echo "\"></script>
  107.     <script src=\"";
  108.         // line 55
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/wow.min.js"), "html"nulltrue);
  110.         echo "\"></script>
  111.     <script src=\"";
  112.         // line 56
  113.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/tiny-slider.js"), "html"nulltrue);
  114.         echo "\"></script>
  115.     <script src=\"";
  116.         // line 57
  117.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/glightbox.min.js"), "html"nulltrue);
  118.         echo "\"></script>
  119.     <script src=\"";
  120.         // line 58
  121.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/main.js"), "html"nulltrue);
  122.         echo "\"></script>
  123.     <script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>
  124.     <script type=\"text/javascript\">
  125.         const Toast = Swal.mixin({
  126.             toast: true,
  127.             position: 'center-end',
  128.             showConfirmButton: false,
  129.             timer: 3000,
  130.             timerProgressBar: true,
  131.             didOpen: (toast) => {
  132.                 toast.addEventListener('mouseenter', Swal.stopTimer)
  133.                 toast.addEventListener('mouseleave', Swal.resumeTimer)
  134.             }
  135.         });
  136.     </script>
  137.     <!-- Success notifications -->
  138.     ";
  139.         // line 76
  140.         $context['_parent'] = $context;
  141.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'76$this->source); })()), "flashes", [=> "add_success"], "method"falsefalsefalse76));
  142.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  143.             // line 77
  144.             echo "        <script type=\"text/javascript\">
  145.             Toast.fire({
  146.                 icon: 'success',
  147.                 title: 'Sukces',
  148.                 text: '";
  149.             // line 81
  150.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  151.             echo "'
  152.             })
  153.         </script>
  154.     ";
  155.         }
  156.         $_parent $context['_parent'];
  157.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  158.         $context array_intersect_key($context$_parent) + $_parent;
  159.         // line 85
  160.         echo "
  161.     ";
  162.         // line 86
  163.         $this->displayBlock('javascripts'$context$blocks);
  164.         // line 87
  165.         echo "</body>
  166. </html>";
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.     }
  172.     // line 24
  173.     public function block_title($context, array $blocks = [])
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.     }
  185.     // line 46
  186.     public function block_body($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     // line 86
  199.     public function block_javascripts($context, array $blocks = [])
  200.     {
  201.         $macros $this->macros;
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     public function getTemplateName()
  212.     {
  213.         return "frontend/common/index.html.twig";
  214.     }
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  230 => 86,  212 => 46,  194 => 24,  182 => 87,  180 => 86,  177 => 85,  167 => 81,  161 => 77,  157 => 76,  136 => 58,  132 => 57,  128 => 56,  124 => 55,  120 => 54,  116 => 53,  112 => 52,  105 => 47,  103 => 46,  99 => 45,  91 => 40,  87 => 39,  83 => 38,  79 => 37,  75 => 36,  71 => 35,  60 => 27,  54 => 24,  46 => 18,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{# {% if (app.request.get('_route') == 'admin_pm' and is_granted('ROLE_ACCESS_PM_ADD'))
  226.     or (app.request.get('_route') == 'admin_tariffs' and is_granted('ROLE_ACCESS_TARIFFS_ADD'))
  227.     or (app.request.get('_route') == 'admin_servers' and is_granted('ROLE_ACCESS_SERVERS_ADD'))
  228.     or (app.request.get('_route') == 'admin_services' and is_granted('ROLE_ACCESS_SERVICES_ADD'))
  229.     or (app.request.get('_route') == 'admin_prices' and is_granted('ROLE_ACCESS_PRICES_ADD'))
  230.     or (app.request.get('_route') == 'admin_vouchers' and is_granted('ROLE_ACCESS_VOUCHERS_ADD'))
  231.     or (app.request.get('_route') == 'admin_usersServices' and is_granted('ROLE_ACCESS_US_ADD'))
  232.     or (app.request.get('_route') == 'admin_groups' and is_granted('ROLE_ACCESS_GROUPS_ADD'))
  233.     or (app.request.get('_route') == 'admin_users' and is_granted('ROLE_ACCESS_USERS_ADD')) %}
  234.     <div class=\"modal modal-right\" id=\"modal_add\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal_add\" aria-hidden=\"true\">
  235.         <div class=\"modal-dialog\" role=\"document\">
  236.             <div class=\"modal-content\">
  237.                 {% block modal_add %}{% endblock %}
  238.             </div>
  239.         </div>
  240.     </div>
  241. {% endif %} #}
  242. <!DOCTYPE html>
  243. <html class=\"no-js\" lang=\"pl\">
  244. <head>
  245.     <meta charset=\"utf-8\" />
  246.     <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\" />
  247.     <title>{% block title %}{% endblock %}</title>
  248.     <meta name=\"description\" content=\"\" />
  249.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
  250.     <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{{ asset('assets/uploads/' ~ core.getSettings().pageLogo) }}\" />
  251.     <!-- Web Font -->
  252.     <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\">
  253.     <link href=\"https://fonts.googleapis.com/css2?family=Lato&display=swap\" rel=\"stylesheet\">
  254.     <link href=\"https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css\" rel=\"stylesheet\">
  255.     <!-- ========================= CSS here ========================= -->
  256.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/bootstrap.min.css') }}\" />
  257.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/LineIcons.2.0.css') }}\" />
  258.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/animate.css') }}\" />
  259.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/tiny-slider.css') }}\" />
  260.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/glightbox.min.css') }}\" />
  261.     <link rel=\"stylesheet\" href=\"{{ asset('assets/css/main.css?v=2.0.3') }}\" />
  262.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css\">
  263. </head>
  264. <body data-theme=\"dark\" style=\"--main-color: {{ pageColor }}\">
  265.     {% block body %}{% endblock %}
  266.     <a href=\"#\" class=\"scroll-top btn-hover\">
  267.         <i class=\"lni lni-chevron-up\"></i>
  268.     </a>
  269.     <script src=\"{{ asset('assets/js/popper.min.js') }}\"></script>
  270.     <script src=\"{{ asset('assets/js/tippy-bundle.iife.min.js') }}\"></script>
  271.     <script src=\"{{ asset('assets/js/bootstrap.min.js') }}\"></script>
  272.     <script src=\"{{ asset('assets/js/wow.min.js') }}\"></script>
  273.     <script src=\"{{ asset('assets/js/tiny-slider.js') }}\"></script>
  274.     <script src=\"{{ asset('assets/js/glightbox.min.js') }}\"></script>
  275.     <script src=\"{{ asset('assets/js/main.js') }}\"></script>
  276.     <script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>
  277.     <script type=\"text/javascript\">
  278.         const Toast = Swal.mixin({
  279.             toast: true,
  280.             position: 'center-end',
  281.             showConfirmButton: false,
  282.             timer: 3000,
  283.             timerProgressBar: true,
  284.             didOpen: (toast) => {
  285.                 toast.addEventListener('mouseenter', Swal.stopTimer)
  286.                 toast.addEventListener('mouseleave', Swal.resumeTimer)
  287.             }
  288.         });
  289.     </script>
  290.     <!-- Success notifications -->
  291.     {% for message in app.flashes('add_success') %}
  292.         <script type=\"text/javascript\">
  293.             Toast.fire({
  294.                 icon: 'success',
  295.                 title: 'Sukces',
  296.                 text: '{{ message }}'
  297.             })
  298.         </script>
  299.     {% endfor %}
  300.     {% block javascripts %}{% endblock %}
  301. </body>
  302. </html>""frontend/common/index.html.twig""/var/www/html/templates/frontend/common/index.html.twig");
  303.     }
  304. }