var/cache/dev/twig/4c/4cf3fa057365e19907a733c8ce2126c1.php line 41

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/kapcsolat.html.twig */
  14. class __TwigTemplate_58aa07f8500ff8bc91899ca714300d1d 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.             'scripts' => [$this'block_scripts'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@CoreShopFrontend/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/kapcsolat.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/kapcsolat.html.twig"));
  41.         // line 2
  42.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'2$this->source); })()), ["form/reg_login_form_layout.html.twig"], true);
  43.         // line 1
  44.         $this->parent $this->loadTemplate("@CoreShopFrontend/layout.html.twig""default/kapcsolat.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 4
  52.     public function block_content($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         // line 5
  60.         echo "    ";
  61.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'5$this->source); })())) {
  62.             // line 6
  63.             echo "        <div style=\"height: 100px;\">a</div>
  64.     ";
  65.         }
  66.         // line 8
  67.         echo "    <div class=\"container\">
  68.         ";
  69.         // line 9
  70.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""contactblock", ["allowed" => ["hero""contact-body""info-row"], "reload" => true"limits" => ["contact-body" => 1"info-row" => 1"hero" => 1], "params" => ["contact-body" => ["form" =>         // line 19
  71. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'19$this->source); })())]]]);
  72.         // line 22
  73.         echo "
  74.     </div>
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 26
  82.     public function block_scripts($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  89.         // line 27
  90.         echo "    ";
  91.         $this->displayParentBlock("scripts"$context$blocks);
  92.         echo "
  93.     ";
  94.         // line 28
  95.         if ((isset($context["apiKey"]) || array_key_exists("apiKey"$context) ? $context["apiKey"] : (function () { throw new RuntimeError('Variable "apiKey" does not exist.'28$this->source); })())) {
  96.             // line 29
  97.             echo "        ";
  98.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/map.js")], "method"falsefalsetrue29);
  99.             // line 30
  100.             echo "        <script>
  101.             \$(document).ready(() => {
  102.                 const phoneInput = document.querySelector('input#contact_mobile');
  103.                 if (phoneInput instanceof HTMLInputElement) {
  104.                     const cleave = new Cleave(phoneInput, {
  105.                         phone: true,
  106.                         phoneRegionCode: 'hu',
  107.                         noImmediatePrefix: true,
  108.                         prefix: '+36'
  109.                     });
  110.                 }
  111.             });
  112.         </script>
  113.         <script src=\"https://maps.googleapis.com/maps/api/js?key=";
  114.             // line 43
  115.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["apiKey"]) || array_key_exists("apiKey"$context) ? $context["apiKey"] : (function () { throw new RuntimeError('Variable "apiKey" does not exist.'43$this->source); })()), 43$this->source), "html"nulltrue);
  116.             echo "&callback=initMap\"
  117.                 defer></script>
  118.     ";
  119.         }
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     public function getTemplateName()
  126.     {
  127.         return "default/kapcsolat.html.twig";
  128.     }
  129.     public function isTraitable()
  130.     {
  131.         return false;
  132.     }
  133.     public function getDebugInfo()
  134.     {
  135.         return array (  134 => 43,  119 => 30,  116 => 29,  114 => 28,  109 => 27,  99 => 26,  87 => 22,  85 => 19,  84 => 9,  81 => 8,  77 => 6,  74 => 5,  64 => 4,  53 => 1,  51 => 2,  38 => 1,);
  136.     }
  137.     public function getSourceContext()
  138.     {
  139.         return new Source("{% extends '@CoreShopFrontend/layout.html.twig' %}
  140. {% form_theme form 'form/reg_login_form_layout.html.twig' %}
  141. {% block content %}
  142.     {% if editmode %}
  143.         <div style=\"height: 100px;\">a</div>
  144.     {% endif %}
  145.     <div class=\"container\">
  146.         {{ pimcore_areablock('contactblock', {
  147.             'allowed' : ['hero', 'contact-body', 'info-row'],
  148.             'reload': true,
  149.             'limits' : {
  150.                 'contact-body': 1,
  151.                 'info-row': 1,
  152.                 'hero': 1
  153.             },
  154.             'params': {
  155.                 'contact-body': {
  156.                     'form': form
  157.                 },
  158.             }
  159.         }) }}
  160.     </div>
  161. {% endblock %}
  162. {% block scripts %}
  163.     {{ parent() }}
  164.     {% if apiKey %}
  165.         {% do pimcore_head_script().appendFile(asset('js/map.js')) %}
  166.         <script>
  167.             \$(document).ready(() => {
  168.                 const phoneInput = document.querySelector('input#contact_mobile');
  169.                 if (phoneInput instanceof HTMLInputElement) {
  170.                     const cleave = new Cleave(phoneInput, {
  171.                         phone: true,
  172.                         phoneRegionCode: 'hu',
  173.                         noImmediatePrefix: true,
  174.                         prefix: '+36'
  175.                     });
  176.                 }
  177.             });
  178.         </script>
  179.         <script src=\"https://maps.googleapis.com/maps/api/js?key={{ apiKey }}&callback=initMap\"
  180.                 defer></script>
  181.     {% endif %}
  182. {% endblock %}""default/kapcsolat.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/kapcsolat.html.twig");
  183.     }
  184.     
  185.     public function checkSecurity()
  186.     {
  187.         static $tags = array("form_theme" => 2"if" => 5"do" => 29);
  188.         static $filters = array("escape" => 43);
  189.         static $functions = array("pimcore_areablock" => 9"pimcore_head_script" => 29"asset" => 29);
  190.         try {
  191.             $this->sandbox->checkSecurity(
  192.                 ['form_theme''if''do'],
  193.                 ['escape'],
  194.                 ['pimcore_areablock''pimcore_head_script''asset']
  195.             );
  196.         } catch (SecurityError $e) {
  197.             $e->setSourceContext($this->source);
  198.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  199.                 $e->setTemplateLine($tags[$e->getTagName()]);
  200.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  201.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  202.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  203.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  204.             }
  205.             throw $e;
  206.         }
  207.     }
  208. }