var/cache/dev/twig/d2/d2b4d7affb57286cbc9ba9826df89b26.php line 93

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. /* areas/watch-landing/view.html.twig */
  14. class __TwigTemplate_33fa179bd0abe7d195365792e1cc06e1 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/watch-landing/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/watch-landing/view.html.twig"));
  35.         // line 1
  36.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })())) {
  37.             // line 2
  38.             echo "    <div style=\"display:flex;gap:20px\">
  39.         <div>
  40.             <h6 class=\"banner-style\">Szöveg elhelyezkedése</h6>
  41.             ";
  42.             // line 5
  43.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""layout", ["store" => [["left""Balra"], ["right""Jobbra"]], "defaultValue" => "left""reload" => true]);
  44.             // line 12
  45.             echo "
  46.             <h6 class=\"banner-style\">Hír hozzákapcsolása </h6>
  47.             ";
  48.             // line 14
  49.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""additional_news", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["News"]]);
  50.             // line 20
  51.             echo "
  52.         </div>
  53.         <div style=\"\">
  54.             <h6 class=\"banner-style\">ÓRA MOBILE KÉP</h6>
  55.             ";
  56.             // line 24
  57.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""watch-mobile-example", ["reload" => true]);
  58.             echo "
  59.         </div>
  60.     </div>
  61. ";
  62.         }
  63.         // line 29
  64.         echo "
  65. <div class=\"row row-custom-padding justify-content-center contact-container\" style=\"margin: auto\">
  66.     ";
  67.         // line 31
  68.         if ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""layout"), "getData", [], "method"falsefalsetrue31) == "right")) {
  69.             // line 32
  70.             echo "        ";
  71.             $this->loadTemplate("areas/watch-landing/_image.html.twig""areas/watch-landing/view.html.twig"32)->display($context);
  72.             // line 33
  73.             echo "        ";
  74.             $this->loadTemplate("areas/watch-landing/_text.html.twig""areas/watch-landing/view.html.twig"33)->display($context);
  75.             // line 34
  76.             echo "    ";
  77.         } else {
  78.             // line 35
  79.             echo "        ";
  80.             $this->loadTemplate("areas/watch-landing/_text.html.twig""areas/watch-landing/view.html.twig"35)->display($context);
  81.             // line 36
  82.             echo "        ";
  83.             $this->loadTemplate("areas/watch-landing/_image.html.twig""areas/watch-landing/view.html.twig"36)->display($context);
  84.             // line 37
  85.             echo "    ";
  86.         }
  87.         // line 38
  88.         echo "</div>";
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.     }
  94.     public function getTemplateName()
  95.     {
  96.         return "areas/watch-landing/view.html.twig";
  97.     }
  98.     public function isTraitable()
  99.     {
  100.         return false;
  101.     }
  102.     public function getDebugInfo()
  103.     {
  104.         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,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("{% if editmode %}
  109.     <div style=\"display:flex;gap:20px\">
  110.         <div>
  111.             <h6 class=\"banner-style\">Szöveg elhelyezkedése</h6>
  112.             {{ pimcore_select(\"layout\", {
  113.                 \"store\": [
  114.                     [\"left\", \"Balra\"],
  115.                     [\"right\", \"Jobbra\"],
  116.                 ],
  117.                 \"defaultValue\" : \"left\",
  118.                 \"reload\": true
  119.             }) }}
  120.             <h6 class=\"banner-style\">Hír hozzákapcsolása </h6>
  121.             {{ pimcore_relation(\"additional_news\", {
  122.                 \"types\": [\"object\"],
  123.                 \"subtypes\": {
  124.                     \"object\": [\"object\"]
  125.                 },
  126.                 \"classes\": [\"News\"]
  127.             }) }}
  128.         </div>
  129.         <div style=\"\">
  130.             <h6 class=\"banner-style\">ÓRA MOBILE KÉP</h6>
  131.             {{ pimcore_image('watch-mobile-example', {'reload':true}) }}
  132.         </div>
  133.     </div>
  134. {% endif %}
  135. <div class=\"row row-custom-padding justify-content-center contact-container\" style=\"margin: auto\">
  136.     {% if pimcore_select('layout').getData() == 'right' %}
  137.         {% include 'areas/watch-landing/_image.html.twig' %}
  138.         {% include 'areas/watch-landing/_text.html.twig' %}
  139.     {% else %}
  140.         {% include 'areas/watch-landing/_text.html.twig' %}
  141.         {% include 'areas/watch-landing/_image.html.twig' %}
  142.     {% endif %}
  143. </div>""areas/watch-landing/view.html.twig""/home/zoltan/public_html/boutique-v2/templates/areas/watch-landing/view.html.twig");
  144.     }
  145.     
  146.     public function checkSecurity()
  147.     {
  148.         static $tags = array("if" => 1"include" => 32);
  149.         static $filters = array();
  150.         static $functions = array("pimcore_select" => 5"pimcore_relation" => 14"pimcore_image" => 24);
  151.         try {
  152.             $this->sandbox->checkSecurity(
  153.                 ['if''include'],
  154.                 [],
  155.                 ['pimcore_select''pimcore_relation''pimcore_image']
  156.             );
  157.         } catch (SecurityError $e) {
  158.             $e->setSourceContext($this->source);
  159.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  160.                 $e->setTemplateLine($tags[$e->getTagName()]);
  161.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  162.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  163.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  164.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  165.             }
  166.             throw $e;
  167.         }
  168.     }
  169. }