var/cache/dev/twig/e2/e2481d7e59f701f8904e71d4b3228e87.php line 50

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. /* Content/portal.html.twig */
  14. class __TwigTemplate_bf65a82f00b4c361065f3e59a3b8ba02 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.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "views/product.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Content/portal.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Content/portal.html.twig"));
  40.         $this->parent $this->loadTemplate("views/product.html.twig""Content/portal.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57. <div id=\"site-announcemment-block\" class=\"clearfix\">
  58. \t";
  59.         // line 7
  60.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'7$this->source); })())) {
  61.             // line 8
  62.             echo "\t
  63. \t";
  64.             // line 9
  65.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""announce-hide-show", ["label" => "Hide/Show Announcement"]);
  66.             echo "
  67. \t";
  68.             // line 10
  69.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""site-announcemment", ["class" => "x-form-text-default mt-10""placeholder" => "Site Announcement"]);
  70.             // line 13
  71.             echo "
  72. \t
  73. ";
  74.         } else {
  75.             // line 15
  76.             echo 
  77. \t";
  78.             // line 16
  79.             if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""announce-hide-show"), "isChecked", [], "method"falsefalsetrue16)) {
  80.                 // line 17
  81.                 echo "\t\t<div class=\"marquee-cover\">
  82. \t\t\t<div class=\"container\">
  83. \t\t\t\t<!-- <span>Announcements</span> -->
  84. \t\t\t\t<div class=\"marquee\">
  85. \t\t\t\t\t<p>";
  86.                 // line 21
  87.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""site-announcemment");
  88.                 echo "</p>
  89. \t\t\t\t</div>
  90. \t\t\t</div>
  91. \t\t</div>
  92. \t";
  93.             }
  94.         }
  95.         // line 27
  96.         echo "</div>
  97. ";
  98.         // line 29
  99.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'29$this->source); })())) {
  100.             // line 30
  101.             echo "\t<section class=\"main-carousel\">
  102. ";
  103.         }
  104.         // line 32
  105.         echo "\t";
  106.         $context["myBlock"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""contentblock", ["reload" => true]);
  107.         // line 33
  108.         echo "\t";
  109.         $context['_parent'] = $context;
  110.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["myBlock"]) || array_key_exists("myBlock"$context) ? $context["myBlock"] : (function () { throw new RuntimeError('Variable "myBlock" does not exist.'33$this->source); })()), "iterator", [], "any"falsefalsetrue33));
  111.         foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  112.             // line 34
  113.             echo "\t\t";
  114.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'34$this->source); })())) {
  115.                 // line 35
  116.                 echo "\t\t  ";
  117.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""marqueeImage", ["thumbnail" => "sliderImage-scale""title" => "Drag your image here""width" => 200"height" => 200]);
  118.                 echo "
  119. \t\t";
  120.             }
  121.             // line 37
  122.             echo "\t\t ";
  123.             $context["img"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""marqueeImage"), "getSrc", [], "method"falsefalsetrue37);
  124.             // line 38
  125.             echo "\t\t<div style=\"background-image: url(";
  126.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'38$this->source); })()), 38$this->source), "html"nulltrue);
  127.             echo "); cursor: pointer\" ";
  128.             if (((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""marqueeButton"), "getTarget", [], "method"falsefalsetrue38) == "_blank") &&  !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'38$this->source); })()))) {
  129.                 echo " onclick=\"window.open('";
  130.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""marqueeButton"), "getHref", [], "method"falsefalsetrue38), 38$this->source), "html"nulltrue);
  131.                 echo "');\" ";
  132.             } elseif ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'38$this->source); })())) {
  133.                 echo " onclick=\"location.href='";
  134.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""marqueeButton"), "getHref", [], "method"falsefalsetrue38), 38$this->source), "html"nulltrue);
  135.                 echo "';\"";
  136.             }
  137.             echo "> 
  138. \t\t  <div class=\"content\" >
  139. \t\t  \t<div class=\"container row\">
  140. \t\t  \t\t<div class=\"section-text\">
  141. \t\t\t\t    <h1 class=\"header\">
  142. \t\t\t\t      ";
  143.             // line 43
  144.             if (($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline") || (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'43$this->source); })()))) {
  145.                 echo "<span class=\"marquee-header\">";
  146.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  147.                 echo "</span>";
  148.             }
  149.             // line 44
  150.             echo "\t\t\t\t    </h1>
  151. \t\t\t\t    ";
  152.             // line 45
  153.             if (($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline") || (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'45$this->source); })()))) {
  154.                 echo "<p class=\"subheader\">";
  155.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline");
  156.                 echo "</p>";
  157.             }
  158.             // line 46
  159.             echo "\t\t\t\t\t";
  160.             if ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""marqueeButton"), "getText", [], "method"falsefalsetrue46) || (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'46$this->source); })()))) {
  161.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""marqueeButton", ["class" => "sublink"]);
  162.             }
  163.             // line 47
  164.             echo "\t\t\t\t</div>
  165. \t\t\t</div>
  166. \t\t  </div>
  167. \t\t</div>
  168. \t";
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         // line 52
  174.         echo "
  175. ";
  176.         // line 53
  177.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'53$this->source); })())) {
  178.             // line 54
  179.             echo "\t</section>
  180. ";
  181.         }
  182.         // line 56
  183.         echo "
  184. ";
  185.         // line 57
  186.         $context["classes"] = "front-panels";
  187.         // line 58
  188.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'58$this->source); })())) {
  189.             // line 59
  190.             $context["heading"] = "<h4 class=\"mt-40\">Please Add Your Image-Text Blocks</h4>";
  191.             // line 60
  192.             $context["classes"] = "";
  193.         }
  194.         // line 62
  195.         echo "<section class=\"banner-img-txt-panel text-center clearfix ";
  196.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["classes"]) || array_key_exists("classes"$context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.'62$this->source); })()), 62$this->source), "html"nulltrue);
  197.         echo "\">
  198. \t";
  199.         // line 63
  200.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["heading"]) || array_key_exists("heading"$context) ? $context["heading"] : (function () { throw new RuntimeError('Variable "heading" does not exist.'63$this->source); })()), 63$this->source), "html"nulltrue);
  201.         echo "
  202. \t";
  203.         // line 64
  204.         $context['_parent'] = $context;
  205.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""banner-panel"), "iterator", [], "any"falsefalsetrue64));
  206.         foreach ($context['_seq'] as $context["_key"] => $context["bannerPanel"]) {
  207.             // line 65
  208.             echo "\t\t";
  209.             $context["blockWidth"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""banner-panel-width"), "getValue", [], "method"falsefalsetrue65);
  210.             // line 66
  211.             echo "\t\t\t";
  212.             if ((twig_test_empty((isset($context["blockWidth"]) || array_key_exists("blockWidth"$context) ? $context["blockWidth"] : (function () { throw new RuntimeError('Variable "blockWidth" does not exist.'66$this->source); })())) || (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'66$this->source); })()))) {
  213.                 // line 67
  214.                 echo "            ";
  215.                 $context["blockWidth"] = "100";
  216.                 // line 68
  217.                 echo "        ";
  218.             }
  219.             // line 69
  220.             echo "\t\t\t ";
  221.             $context["blockWidth"] = ($this->sandbox->ensureToStringAllowed((isset($context["blockWidth"]) || array_key_exists("blockWidth"$context) ? $context["blockWidth"] : (function () { throw new RuntimeError('Variable "blockWidth" does not exist.'69$this->source); })()), 69$this->source) . "%");
  222.             // line 70
  223.             echo "
  224. \t\t\t";
  225.             // line 71
  226.             $context["panelCoverimgUrl"] = "";
  227.             // line 72
  228.             echo "\t\t\t";
  229.             $context["panelBodyimgUrl"] = "";
  230.             // line 73
  231.             echo "\t\t\t";
  232.             if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'73$this->source); })())) {
  233.                 // line 74
  234.                 echo "\t\t\t\t";
  235.                 if (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""text-hide-show"), "isChecked", [], "method"falsefalsetrue74)) {
  236.                     // line 75
  237.                     echo "\t\t\t\t\t";
  238.                     $context["panelBodyimgUrl"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-panel-image"), "getThumbnail", ["imagePanel"], "method"falsefalsetrue75);
  239.                     // line 76
  240.                     echo "\t\t\t\t";
  241.                 } else {
  242.                     // line 77
  243.                     echo "\t\t\t\t\t";
  244.                     // line 78
  245.                     echo "\t\t\t\t\t
  246. \t\t\t\t";
  247.                 }
  248.                 // line 80
  249.                 echo "\t\t\t";
  250.             }
  251.             // line 81
  252.             echo "\t\t\t
  253. \t\t
  254. \t\t<div class=\"panel-cover\" style=\"width:";
  255.             // line 83
  256.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["blockWidth"]) || array_key_exists("blockWidth"$context) ? $context["blockWidth"] : (function () { throw new RuntimeError('Variable "blockWidth" does not exist.'83$this->source); })()), 83$this->source), "html"nulltrue);
  257.             echo "\">
  258. \t\t\t<div class=\"panel panel-default\" style=\"background-image: url(";
  259.             // line 84
  260.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["panelCoverimgUrl"]) || array_key_exists("panelCoverimgUrl"$context) ? $context["panelCoverimgUrl"] : (function () { throw new RuntimeError('Variable "panelCoverimgUrl" does not exist.'84$this->source); })()), 84$this->source), "html"nulltrue);
  261.             echo ")\">
  262. \t\t\t\t";
  263.             // line 85
  264.             if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'85$this->source); })()) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""banner-panel-url"), "getValue", [], "method"falsefalsetrue85)))) {
  265.                 // line 86
  266.                 echo "                    <a target=\"_blank\" href=\"\"></a>
  267.                 ";
  268.             }
  269.             // line 88
  270.             echo "\t\t\t\t";
  271.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'88$this->source); })())) {
  272.                 // line 89
  273.                 echo "\t\t\t\t\t<div class=\"panel-body\">
  274. \t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Url (http://):</strong></label>
  275. \t\t\t\t\t\t";
  276.                 // line 91
  277.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""banner-panel-url", ["class" => "x-form-text-default light-bg text-left mb-10""placeholder" => "Url"]);
  278.                 echo "
  279. \t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Width (%):</strong></label>
  280. \t\t\t\t\t\t";
  281.                 // line 93
  282.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""banner-panel-width", ["class" => "x-form-text-default light-bg text-left mb-10""placeholder" => "Set Width in percentage(%)"]);
  283.                 echo "
  284. \t\t\t\t\t\t";
  285.                 // line 95
  286.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-panel-image", ["thumbnail" => "imagePanel""hidetext" => true"width" => 250"height" => 150"title" => "Drag your image here"]);
  287.                 echo "
  288. \t\t\t\t\t\t<div class=\"text-left\">
  289. \t\t\t\t\t\t\t";
  290.                 // line 98
  291.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""text-hide-show", ["label" => "Hide/Show TextBox""reload" => true]);
  292.                 echo "
  293. \t\t\t\t\t\t</div>
  294. \t\t\t\t\t\t
  295. \t\t\t\t\t</div>
  296. \t\t\t\t";
  297.             } else {
  298.                 // line 103
  299.                 echo "\t\t\t\t\t<div class=\"panel-image\" style=\"background-image:url(";
  300.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["panelBodyimgUrl"]) || array_key_exists("panelBodyimgUrl"$context) ? $context["panelBodyimgUrl"] : (function () { throw new RuntimeError('Variable "panelBodyimgUrl" does not exist.'103$this->source); })()), 103$this->source), "html"nulltrue);
  301.                 echo ")\"></div>
  302. \t\t\t\t";
  303.             }
  304.             // line 105
  305.             echo "\t\t\t\t
  306. \t\t\t\t";
  307.             // line 106
  308.             if (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""text-hide-show"), "isChecked", [], "method"falsefalsetrue106)) {
  309.                 // line 107
  310.                 echo "\t\t\t\t<div class=\"panel-body\">
  311. \t\t\t\t\t";
  312.                 // line 108
  313.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""banner-panel-text", ["attr" => ["class" => "x-form-text-default light-bg text-left""height" => 90"placeholder" => "Please add text here"], "nl2br" => true]);
  314.                 echo "
  315. \t\t\t\t</div>
  316. \t\t\t\t";
  317.             }
  318.             // line 111
  319.             echo "
  320. \t\t\t\t";
  321.             // line 112
  322.             if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'112$this->source); })()) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""banner-panel-url"), "getValue", [], "method"falsefalsetrue112)))) {
  323.                 // line 113
  324.                 echo "                    </a>
  325.                 ";
  326.             }
  327.             // line 115
  328.             echo "\t\t\t</div>
  329. \t\t</div>
  330. \t";
  331.         }
  332.         $_parent $context['_parent'];
  333.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bannerPanel'], $context['_parent'], $context['loop']);
  334.         $context array_intersect_key($context$_parent) + $_parent;
  335.         // line 118
  336.         echo "</section>
  337. <div class=\"container\">
  338.     <h1 class=\"product-carousel-heading\">";
  339.         // line 121
  340.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""productcarouselheadline");
  341.         echo "</h1>
  342.     <section class=\"product-carousel\">
  343.         ";
  344.         // line 123
  345.         $context['_parent'] = $context;
  346.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'123$this->source); })()));
  347.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  348.             // line 124
  349.             echo "        <div class=\"product-wrapper\">
  350.             <div class=\"product\">
  351.                 <div class=\"product-wrap same-height\">
  352.                   <a href=\"";
  353.             // line 127
  354.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "getDetailUrl", [], "any"falsefalsetrue127), 127$this->source), "html"nulltrue);
  355.             echo "\">
  356.                   <div class=\"img-holder\">
  357.                     <div class=\"img-wrap\">
  358.                       ";
  359.             // line 130
  360.             if (twig_get_attribute($this->env$this->source$context["product"], "getFirstImage", ["productList", (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'130$this->source); })())], "method"falsefalsetrue130)) {
  361.                 // line 131
  362.                 echo "                      <img class=\"product-image\" src=\"";
  363.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "getFirstImage", ["productList", (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'131$this->source); })())], "method"falsefalsetrue131), 131$this->source), "html"nulltrue);
  364.                 echo "\">
  365.                       ";
  366.             }
  367.             // line 133
  368.             echo "                    </div>
  369.                   </div>
  370.                   ";
  371.             // line 146
  372.             echo "                  <span class=\"info\">";
  373.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["product"], "getName", [], "method"falsefalsetrue146), 146$this->source), "html"nulltrue);
  374.             echo "</span>
  375.                 </div>
  376.                 </a>
  377.                 ";
  378.             // line 156
  379.             echo "                <a href=\"";
  380.             ((((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'156$this->source); })()) || (isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'156$this->source); })()))) ? (print ("")) : (print (twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-add-to-cart", ["item" => twig_get_attribute($this->env$this->source$context["product"], "getId", [], "method"falsefalsetrue156)]), "html"nulltrue))));
  381.             echo "\" class=\"download-btn\"><span>";
  382.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.buy"), "html"nulltrue);
  383.             echo "</span></a>
  384.             </div>
  385.         </div>
  386.         ";
  387.         }
  388.         $_parent $context['_parent'];
  389.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  390.         $context array_intersect_key($context$_parent) + $_parent;
  391.         // line 160
  392.         echo "    </section>
  393. </div>
  394. ";
  395.         
  396.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  397.         
  398.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  399.     }
  400.     /**
  401.      * @codeCoverageIgnore
  402.      */
  403.     public function getTemplateName()
  404.     {
  405.         return "Content/portal.html.twig";
  406.     }
  407.     /**
  408.      * @codeCoverageIgnore
  409.      */
  410.     public function isTraitable()
  411.     {
  412.         return false;
  413.     }
  414.     /**
  415.      * @codeCoverageIgnore
  416.      */
  417.     public function getDebugInfo()
  418.     {
  419.         return array (  411 => 160,  398 => 156,  391 => 146,  387 => 133,  381 => 131,  379 => 130,  373 => 127,  368 => 124,  364 => 123,  359 => 121,  354 => 118,  346 => 115,  342 => 113,  340 => 112,  337 => 111,  331 => 108,  328 => 107,  326 => 106,  323 => 105,  317 => 103,  309 => 98,  303 => 95,  298 => 93,  293 => 91,  289 => 89,  286 => 88,  282 => 86,  280 => 85,  276 => 84,  272 => 83,  268 => 81,  265 => 80,  261 => 78,  259 => 77,  256 => 76,  253 => 75,  250 => 74,  247 => 73,  244 => 72,  242 => 71,  239 => 70,  236 => 69,  233 => 68,  230 => 67,  227 => 66,  224 => 65,  220 => 64,  216 => 63,  211 => 62,  208 => 60,  206 => 59,  204 => 58,  202 => 57,  199 => 56,  195 => 54,  193 => 53,  190 => 52,  180 => 47,  175 => 46,  169 => 45,  166 => 44,  160 => 43,  141 => 38,  138 => 37,  132 => 35,  129 => 34,  124 => 33,  121 => 32,  117 => 30,  115 => 29,  111 => 27,  102 => 21,  96 => 17,  94 => 16,  91 => 15,  86 => 13,  84 => 10,  80 => 9,  77 => 8,  75 => 7,  70 => 4,  60 => 3,  37 => 2,);
  420.     }
  421.     public function getSourceContext()
  422.     {
  423.         return new Source("
  424. {% extends 'views/product.html.twig' %}
  425. {% block content %}
  426. <div id=\"site-announcemment-block\" class=\"clearfix\">
  427. \t{% if editmode %}
  428. \t
  429. \t{{ pimcore_checkbox(\"announce-hide-show\", {'label': 'Hide/Show Announcement'}) }}
  430. \t{{ pimcore_input(\"site-announcemment\", {
  431. \t\t\"class\":\"x-form-text-default mt-10\", 
  432. \t\t\"placeholder\":\"Site Announcement\"
  433. \t}) }}
  434. \t
  435. {% else %} 
  436. \t{% if not pimcore_checkbox(\"announce-hide-show\").isChecked() %}
  437. \t\t<div class=\"marquee-cover\">
  438. \t\t\t<div class=\"container\">
  439. \t\t\t\t<!-- <span>Announcements</span> -->
  440. \t\t\t\t<div class=\"marquee\">
  441. \t\t\t\t\t<p>{{ pimcore_input(\"site-announcemment\") }}</p>
  442. \t\t\t\t</div>
  443. \t\t\t</div>
  444. \t\t</div>
  445. \t{% endif %}
  446. {% endif %}
  447. </div>
  448. {% if not editmode %}
  449. \t<section class=\"main-carousel\">
  450. {% endif %}
  451. \t{% set myBlock = pimcore_block('contentblock', {'reload': true}) %}
  452. \t{% for block in myBlock.iterator %}
  453. \t\t{% if editmode %}
  454. \t\t  {{ pimcore_image(\"marqueeImage\", {\"thumbnail\": \"sliderImage-scale\",\"title\": \"Drag your image here\",\"width\": 200,\"height\": 200}) }}
  455. \t\t{% endif %}
  456. \t\t {% set img = pimcore_image(\"marqueeImage\").getSrc() %}
  457. \t\t<div style=\"background-image: url({{ img }}); cursor: pointer\" {% if pimcore_link(\"marqueeButton\").getTarget() == \"_blank\" and not editmode %} onclick=\"window.open('{{ pimcore_link(\"marqueeButton\").getHref() }}');\" {% elseif not editmode %} onclick=\"location.href='{{ pimcore_link(\"marqueeButton\").getHref() }}';\"{% endif %}> 
  458. \t\t  <div class=\"content\" >
  459. \t\t  \t<div class=\"container row\">
  460. \t\t  \t\t<div class=\"section-text\">
  461. \t\t\t\t    <h1 class=\"header\">
  462. \t\t\t\t      {% if pimcore_input(\"headline\") or editmode %}<span class=\"marquee-header\">{{ pimcore_input(\"headline\") }}</span>{% endif %}
  463. \t\t\t\t    </h1>
  464. \t\t\t\t    {% if pimcore_input(\"subline\") or editmode %}<p class=\"subheader\">{{ pimcore_input(\"subline\") }}</p>{% endif %}
  465. \t\t\t\t\t{% if pimcore_link(\"marqueeButton\").getText() or editmode %}{{ pimcore_link(\"marqueeButton\", {'class': 'sublink'}) }}{% endif %}
  466. \t\t\t\t</div>
  467. \t\t\t</div>
  468. \t\t  </div>
  469. \t\t</div>
  470. \t{% endfor %}
  471. {% if not editmode %}
  472. \t</section>
  473. {% endif %}
  474. {% set classes = \"front-panels\" %}
  475. {% if editmode %}
  476. {% set heading = '<h4 class=\"mt-40\">Please Add Your Image-Text Blocks</h4>' %}
  477. {% set classes = \"\" %}
  478. {% endif %}
  479. <section class=\"banner-img-txt-panel text-center clearfix {{ classes }}\">
  480. \t{{ heading }}
  481. \t{% for bannerPanel in pimcore_block(\"banner-panel\").iterator %}
  482. \t\t{% set blockWidth = pimcore_input(\"banner-panel-width\").getValue() %}
  483. \t\t\t{% if blockWidth is empty or editmode %}
  484.             {% set blockWidth = '100' %}
  485.         {% endif %}
  486. \t\t\t {% set blockWidth = blockWidth ~ '%' %}
  487. \t\t\t{% set panelCoverimgUrl = '' %}
  488. \t\t\t{% set panelBodyimgUrl = '' %}
  489. \t\t\t{% if not editmode %}
  490. \t\t\t\t{% if pimcore_checkbox(\"text-hide-show\").isChecked() %}
  491. \t\t\t\t\t{% set panelBodyimgUrl = pimcore_image(\"banner-panel-image\").getThumbnail('imagePanel') %}
  492. \t\t\t\t{% else %}
  493. \t\t\t\t\t{# {% set panelCoverimgUrl = pimcore_image(\"banner-panel-image\").getThumbnail('imagePanel') %} #}
  494. \t\t\t\t\t
  495. \t\t\t\t{% endif %}
  496. \t\t\t{% endif %}
  497. \t\t\t
  498. \t\t
  499. \t\t<div class=\"panel-cover\" style=\"width:{{ blockWidth }}\">
  500. \t\t\t<div class=\"panel panel-default\" style=\"background-image: url({{ panelCoverimgUrl }})\">
  501. \t\t\t\t{% if not editmode and  pimcore_input(\"banner-panel-url\").getValue() is not empty %}
  502.                     <a target=\"_blank\" href=\"\"></a>
  503.                 {% endif %}
  504. \t\t\t\t{% if editmode %}
  505. \t\t\t\t\t<div class=\"panel-body\">
  506. \t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Url (http://):</strong></label>
  507. \t\t\t\t\t\t{{ pimcore_input(\"banner-panel-url\", {\"class\" : \"x-form-text-default light-bg text-left mb-10\",\"placeholder\" : \"Url\"}) }}
  508. \t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Width (%):</strong></label>
  509. \t\t\t\t\t\t{{ pimcore_input(\"banner-panel-width\", { \"class\" :\"x-form-text-default light-bg text-left mb-10\",\"placeholder\" : \"Set Width in percentage(%)\" }) }}
  510. \t\t\t\t\t\t{{ pimcore_image(\"banner-panel-image\", { 'thumbnail': 'imagePanel', 'hidetext': true, 'width': 250, 'height': 150, 'title': 'Drag your image here' }) }}
  511. \t\t\t\t\t\t<div class=\"text-left\">
  512. \t\t\t\t\t\t\t{{ pimcore_checkbox(\"text-hide-show\", { 'label': 'Hide/Show TextBox', 'reload': true }) }}
  513. \t\t\t\t\t\t</div>
  514. \t\t\t\t\t\t
  515. \t\t\t\t\t</div>
  516. \t\t\t\t{% else %}
  517. \t\t\t\t\t<div class=\"panel-image\" style=\"background-image:url({{ panelBodyimgUrl }})\"></div>
  518. \t\t\t\t{% endif %}
  519. \t\t\t\t
  520. \t\t\t\t{% if pimcore_checkbox(\"text-hide-show\").isChecked() %}
  521. \t\t\t\t<div class=\"panel-body\">
  522. \t\t\t\t\t{{ pimcore_textarea(\"banner-panel-text\", { 'attr': { 'class': 'x-form-text-default light-bg text-left', 'height': 90, 'placeholder': 'Please add text here' }, 'nl2br': true }) }}
  523. \t\t\t\t</div>
  524. \t\t\t\t{% endif %}
  525. \t\t\t\t{% if not editmode and  pimcore_input(\"banner-panel-url\").getValue() is not empty %}
  526.                     </a>
  527.                 {% endif %}
  528. \t\t\t</div>
  529. \t\t</div>
  530. \t{% endfor %}
  531. </section>
  532. <div class=\"container\">
  533.     <h1 class=\"product-carousel-heading\">{{ pimcore_input(\"productcarouselheadline\") }}</h1>
  534.     <section class=\"product-carousel\">
  535.         {% for product in products %}
  536.         <div class=\"product-wrapper\">
  537.             <div class=\"product\">
  538.                 <div class=\"product-wrap same-height\">
  539.                   <a href=\"{{ product.getDetailUrl }}\">
  540.                   <div class=\"img-holder\">
  541.                     <div class=\"img-wrap\">
  542.                       {% if product.getFirstImage('productList', country) %}
  543.                       <img class=\"product-image\" src=\"{{ product.getFirstImage('productList', country) }}\">
  544.                       {% endif %}
  545.                     </div>
  546.                   </div>
  547.                   {# {% set brands = product.getBrand() %}
  548. \t\t\t\t  {% set brandname ='' %}
  549.                   {% if brands %}
  550.                     {% for brand in brands %}
  551.                       {% set brandname = product.getBrandExtensionNameTrademark() %}
  552.                       {% if brandname is empty %}
  553.                         {% set brandname = product.getBrandExtensionName() %}
  554.                       {% endif %}
  555.                     {% endfor %}
  556.                   {% endif %}
  557.                   <span class=\"name\"><a class=\"name\" href=\"{{ editmode or preview ? '' : product.getDetailUrl }}\">{{ brandname }}</a></span> #}
  558.                   <span class=\"info\">{{ product.getName() }}</span>
  559.                 </div>
  560.                 </a>
  561.                 {# {% if product.getBrandExtensionDiscontinued() %}
  562.                 <span class=\"text-info red\">discontinued</span>
  563.                 {% elseif product.getCreationDate() > lastlogin %}
  564.                 <span class=\"text-info green\">new</span>
  565.                 {% elseif product.getmodificationDate() > lastlogin %}
  566.                 <span class=\"text-info yellow\">updates</span>
  567.                 {% endif %} #}
  568.                 <a href=\"{{ editmode or preview ? '' : path('shop-add-to-cart',{ item: product.getId()}) }}\" class=\"download-btn\"><span>{{ 'shop.buy'|trans }}</span></a>
  569.             </div>
  570.         </div>
  571.         {% endfor %}
  572.     </section>
  573. </div>
  574. {% endblock %}
  575. ""Content/portal.html.twig""/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Content/portal.html.twig");
  576.     }
  577.     
  578.     public function checkSecurity()
  579.     {
  580.         static $tags = array("if" => 7"set" => 32"for" => 33);
  581.         static $filters = array("escape" => 38"trans" => 156);
  582.         static $functions = array("pimcore_checkbox" => 9"pimcore_input" => 10"pimcore_block" => 32"pimcore_image" => 35"pimcore_link" => 38"pimcore_textarea" => 108"path" => 156);
  583.         try {
  584.             $this->sandbox->checkSecurity(
  585.                 ['if''set''for'],
  586.                 ['escape''trans'],
  587.                 ['pimcore_checkbox''pimcore_input''pimcore_block''pimcore_image''pimcore_link''pimcore_textarea''path']
  588.             );
  589.         } catch (SecurityError $e) {
  590.             $e->setSourceContext($this->source);
  591.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  592.                 $e->setTemplateLine($tags[$e->getTagName()]);
  593.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  594.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  595.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  596.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  597.             }
  598.             throw $e;
  599.         }
  600.     }
  601. }