<?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/kapcsolat.html.twig */
class __TwigTemplate_58aa07f8500ff8bc91899ca714300d1d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "@CoreShopFrontend/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/kapcsolat.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/kapcsolat.html.twig"));
// line 2
$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);
// line 1
$this->parent = $this->loadTemplate("@CoreShopFrontend/layout.html.twig", "default/kapcsolat.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 " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
echo " <div style=\"height: 100px;\">a</div>
";
}
// line 8
echo " <div class=\"container\">
";
// line 9
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
(isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 19, $this->source); })())]]]);
// line 22
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 26
public function block_scripts($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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 27
echo " ";
$this->displayParentBlock("scripts", $context, $blocks);
echo "
";
// line 28
if ((isset($context["apiKey"]) || array_key_exists("apiKey", $context) ? $context["apiKey"] : (function () { throw new RuntimeError('Variable "apiKey" does not exist.', 28, $this->source); })())) {
// line 29
echo " ";
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", false, false, true, 29);
// line 30
echo " <script>
\$(document).ready(() => {
const phoneInput = document.querySelector('input#contact_mobile');
if (phoneInput instanceof HTMLInputElement) {
const cleave = new Cleave(phoneInput, {
phone: true,
phoneRegionCode: 'hu',
noImmediatePrefix: true,
prefix: '+36'
});
}
});
</script>
<script src=\"https://maps.googleapis.com/maps/api/js?key=";
// line 43
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", null, true);
echo "&callback=initMap\"
defer></script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/kapcsolat.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@CoreShopFrontend/layout.html.twig' %}
{% form_theme form 'form/reg_login_form_layout.html.twig' %}
{% block content %}
{% if editmode %}
<div style=\"height: 100px;\">a</div>
{% endif %}
<div class=\"container\">
{{ pimcore_areablock('contactblock', {
'allowed' : ['hero', 'contact-body', 'info-row'],
'reload': true,
'limits' : {
'contact-body': 1,
'info-row': 1,
'hero': 1
},
'params': {
'contact-body': {
'form': form
},
}
}) }}
</div>
{% endblock %}
{% block scripts %}
{{ parent() }}
{% if apiKey %}
{% do pimcore_head_script().appendFile(asset('js/map.js')) %}
<script>
\$(document).ready(() => {
const phoneInput = document.querySelector('input#contact_mobile');
if (phoneInput instanceof HTMLInputElement) {
const cleave = new Cleave(phoneInput, {
phone: true,
phoneRegionCode: 'hu',
noImmediatePrefix: true,
prefix: '+36'
});
}
});
</script>
<script src=\"https://maps.googleapis.com/maps/api/js?key={{ apiKey }}&callback=initMap\"
defer></script>
{% endif %}
{% endblock %}", "default/kapcsolat.html.twig", "/home/zoltan/public_html/boutique-v2/templates/default/kapcsolat.html.twig");
}
public function checkSecurity()
{
static $tags = array("form_theme" => 2, "if" => 5, "do" => 29);
static $filters = array("escape" => 43);
static $functions = array("pimcore_areablock" => 9, "pimcore_head_script" => 29, "asset" => 29);
try {
$this->sandbox->checkSecurity(
['form_theme', 'if', 'do'],
['escape'],
['pimcore_areablock', 'pimcore_head_script', 'asset']
);
} 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;
}
}
}