<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* frontend/common/index.html.twig */
class __TwigTemplate_0a3be61fbe78f6fee749dde58e1e8c24 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/common/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "frontend/common/index.html.twig"));
// line 18
echo "<!DOCTYPE html>
<html class=\"no-js\" lang=\"pl\">
<head>
<meta charset=\"utf-8\" />
<meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\" />
<title>";
// line 24
$this->displayBlock('title', $context, $blocks);
echo "</title>
<meta name=\"description\" content=\"\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("assets/uploads/" . twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 27), "pageLogo", [], "any", false, false, false, 27))), "html", null, true);
echo "\" />
<!-- Web Font -->
<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\">
<link href=\"https://fonts.googleapis.com/css2?family=Lato&display=swap\" rel=\"stylesheet\">
<link href=\"https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css\" rel=\"stylesheet\">
<!-- ========================= CSS here ========================= -->
<link rel=\"stylesheet\" href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.min.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/LineIcons.2.0.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/animate.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/tiny-slider.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/glightbox.min.css"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/main.css?v=2.0.3"), "html", null, true);
echo "\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css\">
</head>
<body data-theme=\"dark\" style=\"--main-color: ";
// line 45
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", null, true);
echo "\">
";
// line 46
$this->displayBlock('body', $context, $blocks);
// line 47
echo "
<a href=\"#\" class=\"scroll-top btn-hover\">
<i class=\"lni lni-chevron-up\"></i>
</a>
<script src=\"";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/popper.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/tippy-bundle.iife.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/wow.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/tiny-slider.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/glightbox.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/main.js"), "html", null, true);
echo "\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>
<script type=\"text/javascript\">
const Toast = Swal.mixin({
toast: true,
position: 'center-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
</script>
<!-- Success notifications -->
";
// line 76
$context['_parent'] = $context;
$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", [0 => "add_success"], "method", false, false, false, 76));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 77
echo " <script type=\"text/javascript\">
Toast.fire({
icon: 'success',
title: 'Sukces',
text: '";
// line 81
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "'
})
</script>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 85
echo "
";
// line 86
$this->displayBlock('javascripts', $context, $blocks);
// line 87
echo "</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 24
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 46
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 86
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "frontend/common/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# {% if (app.request.get('_route') == 'admin_pm' and is_granted('ROLE_ACCESS_PM_ADD'))
or (app.request.get('_route') == 'admin_tariffs' and is_granted('ROLE_ACCESS_TARIFFS_ADD'))
or (app.request.get('_route') == 'admin_servers' and is_granted('ROLE_ACCESS_SERVERS_ADD'))
or (app.request.get('_route') == 'admin_services' and is_granted('ROLE_ACCESS_SERVICES_ADD'))
or (app.request.get('_route') == 'admin_prices' and is_granted('ROLE_ACCESS_PRICES_ADD'))
or (app.request.get('_route') == 'admin_vouchers' and is_granted('ROLE_ACCESS_VOUCHERS_ADD'))
or (app.request.get('_route') == 'admin_usersServices' and is_granted('ROLE_ACCESS_US_ADD'))
or (app.request.get('_route') == 'admin_groups' and is_granted('ROLE_ACCESS_GROUPS_ADD'))
or (app.request.get('_route') == 'admin_users' and is_granted('ROLE_ACCESS_USERS_ADD')) %}
<div class=\"modal modal-right\" id=\"modal_add\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal_add\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
{% block modal_add %}{% endblock %}
</div>
</div>
</div>
{% endif %} #}
<!DOCTYPE html>
<html class=\"no-js\" lang=\"pl\">
<head>
<meta charset=\"utf-8\" />
<meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\" />
<title>{% block title %}{% endblock %}</title>
<meta name=\"description\" content=\"\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{{ asset('assets/uploads/' ~ core.getSettings().pageLogo) }}\" />
<!-- Web Font -->
<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\">
<link href=\"https://fonts.googleapis.com/css2?family=Lato&display=swap\" rel=\"stylesheet\">
<link href=\"https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css\" rel=\"stylesheet\">
<!-- ========================= CSS here ========================= -->
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/bootstrap.min.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/LineIcons.2.0.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/animate.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/tiny-slider.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/glightbox.min.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/main.css?v=2.0.3') }}\" />
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css\">
</head>
<body data-theme=\"dark\" style=\"--main-color: {{ pageColor }}\">
{% block body %}{% endblock %}
<a href=\"#\" class=\"scroll-top btn-hover\">
<i class=\"lni lni-chevron-up\"></i>
</a>
<script src=\"{{ asset('assets/js/popper.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/tippy-bundle.iife.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/bootstrap.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/wow.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/tiny-slider.js') }}\"></script>
<script src=\"{{ asset('assets/js/glightbox.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/main.js') }}\"></script>
<script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>
<script type=\"text/javascript\">
const Toast = Swal.mixin({
toast: true,
position: 'center-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
</script>
<!-- Success notifications -->
{% for message in app.flashes('add_success') %}
<script type=\"text/javascript\">
Toast.fire({
icon: 'success',
title: 'Sukces',
text: '{{ message }}'
})
</script>
{% endfor %}
{% block javascripts %}{% endblock %}
</body>
</html>", "frontend/common/index.html.twig", "/var/www/html/templates/frontend/common/index.html.twig");
}
}