var/cache/dev/twig/73/733e7b60bd3d5201dd9399457054cc95.php line 60

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. /* default/default.html.twig */
  14. class __TwigTemplate_10e26db92c6bc4ff8cc002989f92ed25 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layouts/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/default.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/default.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout.html.twig""default/default.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 4
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 5
  56.         echo "
  57. <main role=\"main\" class=\"";
  58.         // line 6
  59.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue6), "pathInfo", [], "any"falsefalsetrue6) == "/")) {
  60.             echo " home ";
  61.         }
  62.         echo " ";
  63.         if (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue6), "pathInfo", [], "any"falsefalsetrue6) == "/it/contatti") || (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue6), "pathInfo", [], "any"falsefalsetrue6) == "/en/contacts"))) {
  64.             echo " contacts ";
  65.         }
  66.         echo " mt-100 pt-0 pt-lg-100\">
  67.     ";
  68.         // line 8
  69.         $context['_parent'] = $context;
  70.         $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"falsefalsetrue8));
  71.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  72.             // line 9
  73.             echo "        ";
  74.             $context['_parent'] = $context;
  75.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  76.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  77.                 // line 10
  78.                 echo "            <div class=\"alert alert-";
  79.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["label"], 10$this->source), "html"nulltrue);
  80.                 echo " alert-dismissable\">
  81.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
  82.                 ";
  83.                 // line 12
  84.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["message"], 12$this->source), "html"nulltrue);
  85.                 echo "
  86.             </div>
  87.         ";
  88.             }
  89.             $_parent $context['_parent'];
  90.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  91.             $context array_intersect_key($context$_parent) + $_parent;
  92.             // line 15
  93.             echo "    ";
  94.         }
  95.         $_parent $context['_parent'];
  96.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  97.         $context array_intersect_key($context$_parent) + $_parent;
  98.         // line 16
  99.         echo "
  100.     ";
  101.         // line 17
  102.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::breadcrumbsAction"));
  103.         echo "
  104.     ";
  105.         // line 19
  106.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""myAreablock");
  107.         echo "
  108.     ";
  109.         // line 21
  110.         if (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue21), "pathInfo", [], "any"falsefalsetrue21) == "/it/contatti") || (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue21), "pathInfo", [], "any"falsefalsetrue21) == "/en/contacts"))) {
  111.             // line 22
  112.             echo "        <script>
  113.             function initMap() {
  114.                 var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
  115.                 var map = new google.maps.Map(document.getElementById('googleMap'), {
  116.                     zoom: 16,
  117.                     center: mycenter
  118.                 });
  119.                 var marker = new google.maps.Marker({
  120.                     position: mycenter,
  121.                     map: map
  122.                 });
  123.             }
  124.         </script>
  125.         <script async defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap\"></script>
  126.     ";
  127.         }
  128.         // line 37
  129.         echo "
  130. </main>
  131. ";
  132.         
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  134.         
  135.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "default/default.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         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,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'layouts/layout.html.twig' %}
  152. {% block content %}
  153. <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\">
  154.     {% for label, messages in app.flashes %}
  155.         {% for message in messages %}
  156.             <div class=\"alert alert-{{ label }} alert-dismissable\">
  157.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
  158.                 {{ message }}
  159.             </div>
  160.         {% endfor %}
  161.     {% endfor %}
  162.     {{ render(controller('App\\\\Controller\\\\MenuController::breadcrumbsAction')) }}
  163.     {{ pimcore_areablock(\"myAreablock\") }}
  164.     {% if app.request.pathInfo == '/it/contatti' or app.request.pathInfo == '/en/contacts' %}
  165.         <script>
  166.             function initMap() {
  167.                 var mycenter = {lat: 45.90928630655572, lng: 12.498461152126971};
  168.                 var map = new google.maps.Map(document.getElementById('googleMap'), {
  169.                     zoom: 16,
  170.                     center: mycenter
  171.                 });
  172.                 var marker = new google.maps.Marker({
  173.                     position: mycenter,
  174.                     map: map
  175.                 });
  176.             }
  177.         </script>
  178.         <script async defer src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyA0ebN15cx7-Fc5bhZLyZy9f4DEkknvONE&callback=initMap\"></script>
  179.     {% endif %}
  180. </main>
  181. {% endblock %}""default/default.html.twig""/var/www/html/templates/default/default.html.twig");
  182.     }
  183.     
  184.     public function checkSecurity()
  185.     {
  186.         static $tags = array("if" => 6"for" => 8);
  187.         static $filters = array("escape" => 10);
  188.         static $functions = array("render" => 17"controller" => 17"pimcore_areablock" => 19);
  189.         try {
  190.             $this->sandbox->checkSecurity(
  191.                 ['if''for'],
  192.                 ['escape'],
  193.                 ['render''controller''pimcore_areablock']
  194.             );
  195.         } catch (SecurityError $e) {
  196.             $e->setSourceContext($this->source);
  197.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  198.                 $e->setTemplateLine($tags[$e->getTagName()]);
  199.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  200.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  201.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  202.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  203.             }
  204.             throw $e;
  205.         }
  206.     }
  207. }