<?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;
/* default/default.html.twig */
class __TwigTemplate_10e26db92c6bc4ff8cc002989f92ed25 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.html.twig";
}
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", "default/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/default.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "default/default.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo "
<main role=\"main\" class=\"";
// line 6
if ((twig_get_attribute($this->env, $this->source, 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.', 6, $this->source); })()), "request", [], "any", false, false, true, 6), "pathInfo", [], "any", false, false, true, 6) == "/")) {
echo " home ";
}
echo " ";
if (((twig_get_attribute($this->env, $this->source, 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.', 6, $this->source); })()), "request", [], "any", false, false, true, 6), "pathInfo", [], "any", false, false, true, 6) == "/it/contatti") || (twig_get_attribute($this->env, $this->source, 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.', 6, $this->source); })()), "request", [], "any", false, false, true, 6), "pathInfo", [], "any", false, false, true, 6) == "/en/contacts"))) {
echo " contacts ";
}
echo " mt-100 pt-0 pt-lg-100\">
";
// line 8
$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.', 8, $this->source); })()), "flashes", [], "any", false, false, true, 8));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 10
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 10, $this->source), "html", null, true);
echo " alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
";
// line 12
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 12, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo "
";
// line 17
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::breadcrumbsAction"));
echo "
";
// line 19
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "myAreablock");
echo "
";
// line 21
if (((twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "request", [], "any", false, false, true, 21), "pathInfo", [], "any", false, false, true, 21) == "/it/contatti") || (twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "request", [], "any", false, false, true, 21), "pathInfo", [], "any", false, false, true, 21) == "/en/contacts"))) {
// line 22
echo " <script>
function initMap() {
var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
var map = new google.maps.Map(document.getElementById('googleMap'), {
zoom: 16,
center: mycenter
});
var marker = new google.maps.Marker({
position: mycenter,
map: map
});
}
</script>
<script async defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap\"></script>
";
}
// line 37
echo "
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 146 => 37, 129 => 22, 127 => 21, 122 => 19, 117 => 17, 114 => 16, 108 => 15, 99 => 12, 93 => 10, 88 => 9, 84 => 8, 73 => 6, 70 => 5, 60 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
<main role=\"main\" class=\"{% if (app.request.pathInfo == '/') %} home {% endif %} {% if (app.request.pathInfo == '/it/contatti') or (app.request.pathInfo == '/en/contacts') %} contacts {% endif %} mt-100 pt-0 pt-lg-100\">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class=\"alert alert-{{ label }} alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
{{ message }}
</div>
{% endfor %}
{% endfor %}
{{ render(controller('App\\\\Controller\\\\MenuController::breadcrumbsAction')) }}
{{ pimcore_areablock(\"myAreablock\") }}
{% if app.request.pathInfo == '/it/contatti' or app.request.pathInfo == '/en/contacts' %}
<script>
function initMap() {
var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
var map = new google.maps.Map(document.getElementById('googleMap'), {
zoom: 16,
center: mycenter
});
var marker = new google.maps.Marker({
position: mycenter,
map: map
});
}
</script>
<script async defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap\"></script>
{% endif %}
</main>
{% endblock %}", "default/default.html.twig", "/var/www/html/templates/default/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 6, "for" => 8);
static $filters = array("escape" => 10);
static $functions = array("render" => 17, "controller" => 17, "pimcore_areablock" => 19);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape'],
['render', 'controller', 'pimcore_areablock']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}