<?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;
/* Content/portal.html.twig */
class __TwigTemplate_bf65a82f00b4c361065f3e59a3b8ba02 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 2
return "views/product.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", "Content/portal.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Content/portal.html.twig"));
$this->parent = $this->loadTemplate("views/product.html.twig", "Content/portal.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo "
<div id=\"site-announcemment-block\" class=\"clearfix\">
\t";
// line 7
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 7, $this->source); })())) {
// line 8
echo "\t
\t";
// line 9
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "announce-hide-show", ["label" => "Hide/Show Announcement"]);
echo "
\t";
// line 10
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "site-announcemment", ["class" => "x-form-text-default mt-10", "placeholder" => "Site Announcement"]);
// line 13
echo "
\t
";
} else {
// line 15
echo "
\t";
// line 16
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "announce-hide-show"), "isChecked", [], "method", false, false, true, 16)) {
// line 17
echo "\t\t<div class=\"marquee-cover\">
\t\t\t<div class=\"container\">
\t\t\t\t<!-- <span>Announcements</span> -->
\t\t\t\t<div class=\"marquee\">
\t\t\t\t\t<p>";
// line 21
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "site-announcemment");
echo "</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t";
}
}
// line 27
echo "</div>
";
// line 29
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 29, $this->source); })())) {
// line 30
echo "\t<section class=\"main-carousel\">
";
}
// line 32
echo "\t";
$context["myBlock"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock", ["reload" => true]);
// line 33
echo "\t";
$context['_parent'] = $context;
$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", false, false, true, 33));
foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
// line 34
echo "\t\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 34, $this->source); })())) {
// line 35
echo "\t\t ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "marqueeImage", ["thumbnail" => "sliderImage-scale", "title" => "Drag your image here", "width" => 200, "height" => 200]);
echo "
\t\t";
}
// line 37
echo "\t\t ";
$context["img"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "marqueeImage"), "getSrc", [], "method", false, false, true, 37);
// line 38
echo "\t\t<div style=\"background-image: url(";
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", null, true);
echo "); cursor: pointer\" ";
if (((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "marqueeButton"), "getTarget", [], "method", false, false, true, 38) == "_blank") && !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 38, $this->source); })()))) {
echo " onclick=\"window.open('";
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", false, false, true, 38), 38, $this->source), "html", null, true);
echo "');\" ";
} elseif ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 38, $this->source); })())) {
echo " onclick=\"location.href='";
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", false, false, true, 38), 38, $this->source), "html", null, true);
echo "';\"";
}
echo ">
\t\t <div class=\"content\" >
\t\t \t<div class=\"container row\">
\t\t \t\t<div class=\"section-text\">
\t\t\t\t <h1 class=\"header\">
\t\t\t\t ";
// line 43
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); })()))) {
echo "<span class=\"marquee-header\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline");
echo "</span>";
}
// line 44
echo "\t\t\t\t </h1>
\t\t\t\t ";
// line 45
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); })()))) {
echo "<p class=\"subheader\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subline");
echo "</p>";
}
// line 46
echo "\t\t\t\t\t";
if ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "marqueeButton"), "getText", [], "method", false, false, true, 46) || (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 46, $this->source); })()))) {
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "marqueeButton", ["class" => "sublink"]);
}
// line 47
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t </div>
\t\t</div>
\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo "
";
// line 53
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 53, $this->source); })())) {
// line 54
echo "\t</section>
";
}
// line 56
echo "
";
// line 57
$context["classes"] = "front-panels";
// line 58
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 58, $this->source); })())) {
// line 59
$context["heading"] = "<h4 class=\"mt-40\">Please Add Your Image-Text Blocks</h4>";
// line 60
$context["classes"] = "";
}
// line 62
echo "<section class=\"banner-img-txt-panel text-center clearfix ";
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", null, true);
echo "\">
\t";
// line 63
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", null, true);
echo "
\t";
// line 64
$context['_parent'] = $context;
$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", false, false, true, 64));
foreach ($context['_seq'] as $context["_key"] => $context["bannerPanel"]) {
// line 65
echo "\t\t";
$context["blockWidth"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "banner-panel-width"), "getValue", [], "method", false, false, true, 65);
// line 66
echo "\t\t\t";
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); })()))) {
// line 67
echo " ";
$context["blockWidth"] = "100";
// line 68
echo " ";
}
// line 69
echo "\t\t\t ";
$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) . "%");
// line 70
echo "
\t\t\t";
// line 71
$context["panelCoverimgUrl"] = "";
// line 72
echo "\t\t\t";
$context["panelBodyimgUrl"] = "";
// line 73
echo "\t\t\t";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 73, $this->source); })())) {
// line 74
echo "\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "text-hide-show"), "isChecked", [], "method", false, false, true, 74)) {
// line 75
echo "\t\t\t\t\t";
$context["panelBodyimgUrl"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-panel-image"), "getThumbnail", ["imagePanel"], "method", false, false, true, 75);
// line 76
echo "\t\t\t\t";
} else {
// line 77
echo "\t\t\t\t\t";
// line 78
echo "\t\t\t\t\t
\t\t\t\t";
}
// line 80
echo "\t\t\t";
}
// line 81
echo "\t\t\t
\t\t
\t\t<div class=\"panel-cover\" style=\"width:";
// line 83
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", null, true);
echo "\">
\t\t\t<div class=\"panel panel-default\" style=\"background-image: url(";
// line 84
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", null, true);
echo ")\">
\t\t\t\t";
// line 85
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", false, false, true, 85)))) {
// line 86
echo " <a target=\"_blank\" href=\"\"></a>
";
}
// line 88
echo "\t\t\t\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 88, $this->source); })())) {
// line 89
echo "\t\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Url (http://):</strong></label>
\t\t\t\t\t\t";
// line 91
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"]);
echo "
\t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Width (%):</strong></label>
\t\t\t\t\t\t";
// line 93
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(%)"]);
echo "
\t\t\t\t\t\t";
// line 95
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"]);
echo "
\t\t\t\t\t\t<div class=\"text-left\">
\t\t\t\t\t\t\t";
// line 98
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "text-hide-show", ["label" => "Hide/Show TextBox", "reload" => true]);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t";
} else {
// line 103
echo "\t\t\t\t\t<div class=\"panel-image\" style=\"background-image:url(";
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", null, true);
echo ")\"></div>
\t\t\t\t";
}
// line 105
echo "\t\t\t\t
\t\t\t\t";
// line 106
if (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "text-hide-show"), "isChecked", [], "method", false, false, true, 106)) {
// line 107
echo "\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t";
// line 108
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]);
echo "
\t\t\t\t</div>
\t\t\t\t";
}
// line 111
echo "
\t\t\t\t";
// line 112
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", false, false, true, 112)))) {
// line 113
echo " </a>
";
}
// line 115
echo "\t\t\t</div>
\t\t</div>
\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bannerPanel'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo "</section>
<div class=\"container\">
<h1 class=\"product-carousel-heading\">";
// line 121
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "productcarouselheadline");
echo "</h1>
<section class=\"product-carousel\">
";
// line 123
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 124
echo " <div class=\"product-wrapper\">
<div class=\"product\">
<div class=\"product-wrap same-height\">
<a href=\"";
// line 127
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "getDetailUrl", [], "any", false, false, true, 127), 127, $this->source), "html", null, true);
echo "\">
<div class=\"img-holder\">
<div class=\"img-wrap\">
";
// line 130
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", false, false, true, 130)) {
// line 131
echo " <img class=\"product-image\" src=\"";
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", false, false, true, 131), 131, $this->source), "html", null, true);
echo "\">
";
}
// line 133
echo " </div>
</div>
";
// line 146
echo " <span class=\"info\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "getName", [], "method", false, false, true, 146), 146, $this->source), "html", null, true);
echo "</span>
</div>
</a>
";
// line 156
echo " <a href=\"";
((((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", false, false, true, 156)]), "html", null, true))));
echo "\" class=\"download-btn\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shop.buy"), "html", null, true);
echo "</span></a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " </section>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Content/portal.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("
{% extends 'views/product.html.twig' %}
{% block content %}
<div id=\"site-announcemment-block\" class=\"clearfix\">
\t{% if editmode %}
\t
\t{{ pimcore_checkbox(\"announce-hide-show\", {'label': 'Hide/Show Announcement'}) }}
\t{{ pimcore_input(\"site-announcemment\", {
\t\t\"class\":\"x-form-text-default mt-10\",
\t\t\"placeholder\":\"Site Announcement\"
\t}) }}
\t
{% else %}
\t{% if not pimcore_checkbox(\"announce-hide-show\").isChecked() %}
\t\t<div class=\"marquee-cover\">
\t\t\t<div class=\"container\">
\t\t\t\t<!-- <span>Announcements</span> -->
\t\t\t\t<div class=\"marquee\">
\t\t\t\t\t<p>{{ pimcore_input(\"site-announcemment\") }}</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endif %}
{% endif %}
</div>
{% if not editmode %}
\t<section class=\"main-carousel\">
{% endif %}
\t{% set myBlock = pimcore_block('contentblock', {'reload': true}) %}
\t{% for block in myBlock.iterator %}
\t\t{% if editmode %}
\t\t {{ pimcore_image(\"marqueeImage\", {\"thumbnail\": \"sliderImage-scale\",\"title\": \"Drag your image here\",\"width\": 200,\"height\": 200}) }}
\t\t{% endif %}
\t\t {% set img = pimcore_image(\"marqueeImage\").getSrc() %}
\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 %}>
\t\t <div class=\"content\" >
\t\t \t<div class=\"container row\">
\t\t \t\t<div class=\"section-text\">
\t\t\t\t <h1 class=\"header\">
\t\t\t\t {% if pimcore_input(\"headline\") or editmode %}<span class=\"marquee-header\">{{ pimcore_input(\"headline\") }}</span>{% endif %}
\t\t\t\t </h1>
\t\t\t\t {% if pimcore_input(\"subline\") or editmode %}<p class=\"subheader\">{{ pimcore_input(\"subline\") }}</p>{% endif %}
\t\t\t\t\t{% if pimcore_link(\"marqueeButton\").getText() or editmode %}{{ pimcore_link(\"marqueeButton\", {'class': 'sublink'}) }}{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t </div>
\t\t</div>
\t{% endfor %}
{% if not editmode %}
\t</section>
{% endif %}
{% set classes = \"front-panels\" %}
{% if editmode %}
{% set heading = '<h4 class=\"mt-40\">Please Add Your Image-Text Blocks</h4>' %}
{% set classes = \"\" %}
{% endif %}
<section class=\"banner-img-txt-panel text-center clearfix {{ classes }}\">
\t{{ heading }}
\t{% for bannerPanel in pimcore_block(\"banner-panel\").iterator %}
\t\t{% set blockWidth = pimcore_input(\"banner-panel-width\").getValue() %}
\t\t\t{% if blockWidth is empty or editmode %}
{% set blockWidth = '100' %}
{% endif %}
\t\t\t {% set blockWidth = blockWidth ~ '%' %}
\t\t\t{% set panelCoverimgUrl = '' %}
\t\t\t{% set panelBodyimgUrl = '' %}
\t\t\t{% if not editmode %}
\t\t\t\t{% if pimcore_checkbox(\"text-hide-show\").isChecked() %}
\t\t\t\t\t{% set panelBodyimgUrl = pimcore_image(\"banner-panel-image\").getThumbnail('imagePanel') %}
\t\t\t\t{% else %}
\t\t\t\t\t{# {% set panelCoverimgUrl = pimcore_image(\"banner-panel-image\").getThumbnail('imagePanel') %} #}
\t\t\t\t\t
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t\t
\t\t
\t\t<div class=\"panel-cover\" style=\"width:{{ blockWidth }}\">
\t\t\t<div class=\"panel panel-default\" style=\"background-image: url({{ panelCoverimgUrl }})\">
\t\t\t\t{% if not editmode and pimcore_input(\"banner-panel-url\").getValue() is not empty %}
<a target=\"_blank\" href=\"\"></a>
{% endif %}
\t\t\t\t{% if editmode %}
\t\t\t\t\t<div class=\"panel-body\">
\t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Url (http://):</strong></label>
\t\t\t\t\t\t{{ pimcore_input(\"banner-panel-url\", {\"class\" : \"x-form-text-default light-bg text-left mb-10\",\"placeholder\" : \"Url\"}) }}
\t\t\t\t\t\t<label class=\"text-left w-100\"><strong>Section Width (%):</strong></label>
\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(%)\" }) }}
\t\t\t\t\t\t{{ pimcore_image(\"banner-panel-image\", { 'thumbnail': 'imagePanel', 'hidetext': true, 'width': 250, 'height': 150, 'title': 'Drag your image here' }) }}
\t\t\t\t\t\t<div class=\"text-left\">
\t\t\t\t\t\t\t{{ pimcore_checkbox(\"text-hide-show\", { 'label': 'Hide/Show TextBox', 'reload': true }) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t</div>
\t\t\t\t{% else %}
\t\t\t\t\t<div class=\"panel-image\" style=\"background-image:url({{ panelBodyimgUrl }})\"></div>
\t\t\t\t{% endif %}
\t\t\t\t
\t\t\t\t{% if pimcore_checkbox(\"text-hide-show\").isChecked() %}
\t\t\t\t<div class=\"panel-body\">
\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 }) }}
\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t{% if not editmode and pimcore_input(\"banner-panel-url\").getValue() is not empty %}
</a>
{% endif %}
\t\t\t</div>
\t\t</div>
\t{% endfor %}
</section>
<div class=\"container\">
<h1 class=\"product-carousel-heading\">{{ pimcore_input(\"productcarouselheadline\") }}</h1>
<section class=\"product-carousel\">
{% for product in products %}
<div class=\"product-wrapper\">
<div class=\"product\">
<div class=\"product-wrap same-height\">
<a href=\"{{ product.getDetailUrl }}\">
<div class=\"img-holder\">
<div class=\"img-wrap\">
{% if product.getFirstImage('productList', country) %}
<img class=\"product-image\" src=\"{{ product.getFirstImage('productList', country) }}\">
{% endif %}
</div>
</div>
{# {% set brands = product.getBrand() %}
\t\t\t\t {% set brandname ='' %}
{% if brands %}
{% for brand in brands %}
{% set brandname = product.getBrandExtensionNameTrademark() %}
{% if brandname is empty %}
{% set brandname = product.getBrandExtensionName() %}
{% endif %}
{% endfor %}
{% endif %}
<span class=\"name\"><a class=\"name\" href=\"{{ editmode or preview ? '' : product.getDetailUrl }}\">{{ brandname }}</a></span> #}
<span class=\"info\">{{ product.getName() }}</span>
</div>
</a>
{# {% if product.getBrandExtensionDiscontinued() %}
<span class=\"text-info red\">discontinued</span>
{% elseif product.getCreationDate() > lastlogin %}
<span class=\"text-info green\">new</span>
{% elseif product.getmodificationDate() > lastlogin %}
<span class=\"text-info yellow\">updates</span>
{% endif %} #}
<a href=\"{{ editmode or preview ? '' : path('shop-add-to-cart',{ item: product.getId()}) }}\" class=\"download-btn\"><span>{{ 'shop.buy'|trans }}</span></a>
</div>
</div>
{% endfor %}
</section>
</div>
{% endblock %}
", "Content/portal.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Content/portal.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 7, "set" => 32, "for" => 33);
static $filters = array("escape" => 38, "trans" => 156);
static $functions = array("pimcore_checkbox" => 9, "pimcore_input" => 10, "pimcore_block" => 32, "pimcore_image" => 35, "pimcore_link" => 38, "pimcore_textarea" => 108, "path" => 156);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['escape', 'trans'],
['pimcore_checkbox', 'pimcore_input', 'pimcore_block', 'pimcore_image', 'pimcore_link', 'pimcore_textarea', 'path']
);
} 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;
}
}
}