var/cache/dev/twig/3a/3a3cae378b9d0175f118a1ec228ee7ef.php line 94

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/_image.html.twig */
  14. class __TwigTemplate_de6a546e644bbb5f390d9fd5c2c60f53 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/_image.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/_image.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"col-lg-6 watch-landing-example-container\">
  37.     ";
  38.         // line 2
  39.         $context["thumbnailName"] = "seiko_productDetails";
  40.         // line 3
  41.         echo "    ";
  42.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })())) {
  43.             // line 4
  44.             echo "        <div style=\"width: 300px; height: 430px\">
  45.             <div>
  46.                 <h6 class=\"banner-style\">THUMBNAIL</h6>
  47.                 ";
  48.             // line 7
  49.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""thumbnail_for_image", ["store" => [["seiko_productDetails""Seiko ProductDetails"], ["seiko_brandAmbassadorDetails""Seiko Brandambassador Details"]], "defaultValue" => "seiko_productDetails"]);
  50.             // line 13
  51.             echo "
  52.             </div>
  53.             <h6 class=\"banner-style\">ÓRA WEB KÉP</h6>
  54.             ";
  55.             // line 16
  56.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""watch-example", ["reload" => true]);
  57.             echo "
  58.             <h6 class=\"banner-style\">Link a képen ";
  59.             // line 17
  60.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""picture_link");
  61.             echo "</h6>
  62.         </div>
  63.     ";
  64.         } else {
  65.             // line 20
  66.             echo "        ";
  67.             $context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""watch-example");
  68.             // line 21
  69.             echo "        ";
  70.             if (((isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'21$this->source); })()) && twig_get_attribute($this->env$this->source, (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'21$this->source); })()), "getImage", [], "method"falsefalsetrue21))) {
  71.                 // line 22
  72.                 echo "            ";
  73.                 if (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""thumbnail_for_image"), "getData", [], "method"falsefalsetrue22)) {
  74.                     // line 23
  75.                     echo "                ";
  76.                     $context["thumbnailName"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""thumbnail_for_image"), "getData", [], "method"falsefalsetrue23);
  77.                     // line 24
  78.                     echo "            ";
  79.                 }
  80.                 // line 25
  81.                 echo "            ";
  82.                 $context["anchorNeeded"] = ($this->env->getTest('instanceof')->getCallable()(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""additional_news"), "getElement", [], "method"falsefalsetrue25), "\\Pimcore\\Model\\DataObject\\News") &&  !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'25$this->source); })()));
  83.                 // line 26
  84.                 echo "            ";
  85.                 if (( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""picture_link"), "isEmpty", [], "method"falsefalsetrue26) &&  !(isset($context["anchorNeeded"]) || array_key_exists("anchorNeeded"$context) ? $context["anchorNeeded"] : (function () { throw new RuntimeError('Variable "anchorNeeded" does not exist.'26$this->source); })()))) {
  86.                     // line 27
  87.                     echo "                ";
  88.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""picture_link", ["noText" => true"textPrefix" => $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,                     // line 29
  89. (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'29$this->source); })()), "getImage", [], "method"falsefalsetrue29), "thumbnail", [(isset($context["thumbnailName"]) || array_key_exists("thumbnailName"$context) ? $context["thumbnailName"] : (function () { throw new RuntimeError('Variable "thumbnailName" does not exist.'29$this->source); })())], "method"falsefalsetrue29), "getHtml", [["imgAttributes" => ["alt" => "example""class" => "img-fluid"]]], "method"falsefalsetrue29), 29$this->source)]);
  90.                     // line 35
  91.                     echo "
  92.             ";
  93.                 } else {
  94.                     // line 37
  95.                     echo "
  96.                 ";
  97.                     // line 38
  98.                     if ((isset($context["anchorNeeded"]) || array_key_exists("anchorNeeded"$context) ? $context["anchorNeeded"] : (function () { throw new RuntimeError('Variable "anchorNeeded" does not exist.'38$this->source); })())) {
  99.                         // line 39
  100.                         echo "                    <a class=\"div-link\" href=\"";
  101.                         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["object" => twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""additional_news"), "getElement", [], "method"falsefalsetrue39)]), "html"nulltrue);
  102.                         echo "\">
  103.                 ";
  104.                     }
  105.                     // line 41
  106.                     echo "                ";
  107.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["image"]) || array_key_exists("image"$context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.'41$this->source); })()), "getImage", [], "method"falsefalsetrue41), "thumbnail", [(isset($context["thumbnailName"]) || array_key_exists("thumbnailName"$context) ? $context["thumbnailName"] : (function () { throw new RuntimeError('Variable "thumbnailName" does not exist.'41$this->source); })())], "method"falsefalsetrue41), "getHtml", [["imgAttributes" => ["alt" => "example""class" => "img-fluid"]]], "method"falsefalsetrue41), 41$this->source);
  108.                     // line 46
  109.                     echo "
  110.                 ";
  111.                     // line 47
  112.                     if ((isset($context["anchorNeeded"]) || array_key_exists("anchorNeeded"$context) ? $context["anchorNeeded"] : (function () { throw new RuntimeError('Variable "anchorNeeded" does not exist.'47$this->source); })())) {
  113.                         // line 48
  114.                         echo "                    </a>
  115.                 ";
  116.                     }
  117.                     // line 50
  118.                     echo "
  119.             ";
  120.                 }
  121.                 // line 52
  122.                 echo "        ";
  123.             }
  124.             // line 53
  125.             echo "    ";
  126.         }
  127.         // line 54
  128.         echo "</div>";
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.         
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133.     }
  134.     public function getTemplateName()
  135.     {
  136.         return "areas/watch-landing/_image.html.twig";
  137.     }
  138.     public function isTraitable()
  139.     {
  140.         return false;
  141.     }
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  137 => 54,  134 => 53,  131 => 52,  127 => 50,  123 => 48,  121 => 47,  118 => 46,  115 => 41,  109 => 39,  107 => 38,  104 => 37,  100 => 35,  98 => 29,  96 => 27,  93 => 26,  90 => 25,  87 => 24,  84 => 23,  81 => 22,  78 => 21,  75 => 20,  69 => 17,  65 => 16,  60 => 13,  58 => 7,  53 => 4,  50 => 3,  48 => 2,  45 => 1,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("<div class=\"col-lg-6 watch-landing-example-container\">
  149.     {% set thumbnailName = 'seiko_productDetails' %}
  150.     {% if editmode %}
  151.         <div style=\"width: 300px; height: 430px\">
  152.             <div>
  153.                 <h6 class=\"banner-style\">THUMBNAIL</h6>
  154.                 {{ pimcore_select(\"thumbnail_for_image\", {
  155.                     \"store\": [
  156.                         [\"seiko_productDetails\", \"Seiko ProductDetails\"],
  157.                         [\"seiko_brandAmbassadorDetails\", \"Seiko Brandambassador Details\"],
  158.                     ],
  159.                     \"defaultValue\": \"seiko_productDetails\"
  160.                 }) }}
  161.             </div>
  162.             <h6 class=\"banner-style\">ÓRA WEB KÉP</h6>
  163.             {{ pimcore_image('watch-example', {'reload':true}) }}
  164.             <h6 class=\"banner-style\">Link a képen {{ pimcore_link('picture_link') }}</h6>
  165.         </div>
  166.     {% else %}
  167.         {% set image = pimcore_image('watch-example') %}
  168.         {% if image and image.getImage() %}
  169.             {% if pimcore_select(\"thumbnail_for_image\").getData() %}
  170.                 {% set thumbnailName = pimcore_select(\"thumbnail_for_image\").getData() %}
  171.             {% endif %}
  172.             {% set anchorNeeded = pimcore_relation(\"additional_news\").getElement() is instanceof('\\\\Pimcore\\\\Model\\\\DataObject\\\\News') and not editmode %}
  173.             {% if not pimcore_link('picture_link').isEmpty() and not anchorNeeded %}
  174.                 {{ pimcore_link('picture_link', {
  175.                     'noText': true,
  176.                     'textPrefix': image.getImage().thumbnail(thumbnailName).getHtml({
  177.                         'imgAttributes': {
  178.                             'alt': 'example',
  179.                             'class': 'img-fluid'
  180.                         }
  181.                     }) | raw
  182.                 }) }}
  183.             {% else %}
  184.                 {% if anchorNeeded %}
  185.                     <a class=\"div-link\" href=\"{{ pimcore_url({'object': pimcore_relation(\"additional_news\").getElement()}) }}\">
  186.                 {% endif %}
  187.                 {{ image.getImage().thumbnail(thumbnailName).getHtml({
  188.                     'imgAttributes': {
  189.                         'alt': 'example',
  190.                         'class': 'img-fluid'
  191.                     }
  192.                 }) | raw }}
  193.                 {% if anchorNeeded %}
  194.                     </a>
  195.                 {% endif %}
  196.             {% endif %}
  197.         {% endif %}
  198.     {% endif %}
  199. </div>""areas/watch-landing/_image.html.twig""/home/zoltan/public_html/boutique-v2/templates/areas/watch-landing/_image.html.twig");
  200.     }
  201.     
  202.     public function checkSecurity()
  203.     {
  204.         static $tags = array("set" => 2"if" => 3);
  205.         static $filters = array("raw" => 34"escape" => 39);
  206.         static $functions = array("pimcore_select" => 7"pimcore_image" => 16"pimcore_link" => 17"pimcore_relation" => 25"pimcore_url" => 39);
  207.         try {
  208.             $this->sandbox->checkSecurity(
  209.                 ['set''if'],
  210.                 ['raw''escape'],
  211.                 ['pimcore_select''pimcore_image''pimcore_link''pimcore_relation''pimcore_url']
  212.             );
  213.         } catch (SecurityError $e) {
  214.             $e->setSourceContext($this->source);
  215.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  216.                 $e->setTemplateLine($tags[$e->getTagName()]);
  217.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  218.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  219.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  220.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  221.             }
  222.             throw $e;
  223.         }
  224.     }
  225. }