<?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;
/* areas/watch-landing/view.html.twig */
class __TwigTemplate_33fa179bd0abe7d195365792e1cc06e1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "areas/watch-landing/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/watch-landing/view.html.twig"));
// line 1
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
echo " <div style=\"display:flex;gap:20px\">
<div>
<h6 class=\"banner-style\">Szöveg elhelyezkedése</h6>
";
// line 5
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "layout", ["store" => [["left", "Balra"], ["right", "Jobbra"]], "defaultValue" => "left", "reload" => true]);
// line 12
echo "
<h6 class=\"banner-style\">Hír hozzákapcsolása </h6>
";
// line 14
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "additional_news", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["News"]]);
// line 20
echo "
</div>
<div style=\"\">
<h6 class=\"banner-style\">ÓRA MOBILE KÉP</h6>
";
// line 24
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "watch-mobile-example", ["reload" => true]);
echo "
</div>
</div>
";
}
// line 29
echo "
<div class=\"row row-custom-padding justify-content-center contact-container\" style=\"margin: auto\">
";
// line 31
if ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "layout"), "getData", [], "method", false, false, true, 31) == "right")) {
// line 32
echo " ";
$this->loadTemplate("areas/watch-landing/_image.html.twig", "areas/watch-landing/view.html.twig", 32)->display($context);
// line 33
echo " ";
$this->loadTemplate("areas/watch-landing/_text.html.twig", "areas/watch-landing/view.html.twig", 33)->display($context);
// line 34
echo " ";
} else {
// line 35
echo " ";
$this->loadTemplate("areas/watch-landing/_text.html.twig", "areas/watch-landing/view.html.twig", 35)->display($context);
// line 36
echo " ";
$this->loadTemplate("areas/watch-landing/_image.html.twig", "areas/watch-landing/view.html.twig", 36)->display($context);
// line 37
echo " ";
}
// line 38
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/watch-landing/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 98 => 38, 95 => 37, 92 => 36, 89 => 35, 86 => 34, 83 => 33, 80 => 32, 78 => 31, 74 => 29, 66 => 24, 60 => 20, 58 => 14, 54 => 12, 52 => 5, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if editmode %}
<div style=\"display:flex;gap:20px\">
<div>
<h6 class=\"banner-style\">Szöveg elhelyezkedése</h6>
{{ pimcore_select(\"layout\", {
\"store\": [
[\"left\", \"Balra\"],
[\"right\", \"Jobbra\"],
],
\"defaultValue\" : \"left\",
\"reload\": true
}) }}
<h6 class=\"banner-style\">Hír hozzákapcsolása </h6>
{{ pimcore_relation(\"additional_news\", {
\"types\": [\"object\"],
\"subtypes\": {
\"object\": [\"object\"]
},
\"classes\": [\"News\"]
}) }}
</div>
<div style=\"\">
<h6 class=\"banner-style\">ÓRA MOBILE KÉP</h6>
{{ pimcore_image('watch-mobile-example', {'reload':true}) }}
</div>
</div>
{% endif %}
<div class=\"row row-custom-padding justify-content-center contact-container\" style=\"margin: auto\">
{% if pimcore_select('layout').getData() == 'right' %}
{% include 'areas/watch-landing/_image.html.twig' %}
{% include 'areas/watch-landing/_text.html.twig' %}
{% else %}
{% include 'areas/watch-landing/_text.html.twig' %}
{% include 'areas/watch-landing/_image.html.twig' %}
{% endif %}
</div>", "areas/watch-landing/view.html.twig", "/home/zoltan/public_html/boutique-v2/templates/areas/watch-landing/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "include" => 32);
static $filters = array();
static $functions = array("pimcore_select" => 5, "pimcore_relation" => 14, "pimcore_image" => 24);
try {
$this->sandbox->checkSecurity(
['if', 'include'],
[],
['pimcore_select', 'pimcore_relation', 'pimcore_image']
);
} 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;
}
}
}