<?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;
/* Shop/detail.html.twig */
class __TwigTemplate_f061c779803bfe016c2ade322cb3dca1 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 1
return "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", "Shop/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Shop/detail.html.twig"));
$this->parent = $this->loadTemplate("product.html.twig", "Shop/detail.html.twig", 1);
$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 "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
";
// line 6
if (( !array_key_exists("document", $context) || !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 6, $this->source); })()))) {
// line 7
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 10
echo "<div class=\"breadcrumb-block\">
<div class=\"container\">
<!-- breadcrumb of the page -->
<ul class=\"breadcrumb\">
<li>
<a href=\"/";
// line 15
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 15, $this->source); })()), 15, $this->source), "html", null, true);
echo "/\" class=\"home\">
";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.home"), "html", null, true);
echo "
</a>
</li>
<li>
<a href=\"";
// line 20
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["prefix" => (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 20, $this->source); })())], "product-landing"), "html", null, true);
echo "\">
";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.header.our-products"), "html", null, true);
echo "
</a>
</li>
";
// line 24
$context["rootCategory"] = "";
// line 25
echo "
";
// line 26
if (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 26, $this->source); })()), "getCategories", [], "method", false, false, true, 26)) {
// line 27
echo " ";
$context["category"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 27, $this->source); })()), "getCategories", [], "method", false, false, true, 27), 0, [], "array", false, false, true, 27);
// line 28
echo " ";
$context["parentcategory"] = twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 28, $this->source); })()), "getParent", [], "method", false, false, true, 28);
// line 29
echo " ";
if ((((isset($context["parentcategory"]) || array_key_exists("parentcategory", $context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.', 29, $this->source); })()) && (twig_get_attribute($this->env, $this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory", $context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.', 29, $this->source); })()), "getType", [], "method", false, false, true, 29) == "object")) && (twig_get_attribute($this->env, $this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory", $context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.', 29, $this->source); })()), "getClassname", [], "method", false, false, true, 29) == "CategoryAlcoholType"))) {
// line 30
echo " ";
$context["parenturl"] = twig_get_attribute($this->env, $this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory", $context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.', 30, $this->source); })()), "getDetailUrl", [["rootCategory" => (isset($context["rootCategory"]) || array_key_exists("rootCategory", $context) ? $context["rootCategory"] : (function () { throw new RuntimeError('Variable "rootCategory" does not exist.', 30, $this->source); })()), "document" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 30, $this->source); })())]], "method", false, false, true, 30);
// line 31
echo " <li>
<a href=\"";
// line 32
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["parenturl"]) || array_key_exists("parenturl", $context) ? $context["parenturl"] : (function () { throw new RuntimeError('Variable "parenturl" does not exist.', 32, $this->source); })()), 32, $this->source), "html", null, true);
echo "\">
";
// line 33
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["parentcategory"]) || array_key_exists("parentcategory", $context) ? $context["parentcategory"] : (function () { throw new RuntimeError('Variable "parentcategory" does not exist.', 33, $this->source); })()), "getName", [], "method", false, false, true, 33), 33, $this->source), "html", null, true);
echo "
</a>
</li>
";
}
// line 37
echo " ";
}
// line 38
echo " <li class=\"active\">
<a href=\"";
// line 39
(((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 39, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 39, $this->source); })()), "getDetailUrl", [["rootCategory" => (isset($context["rootCategory"]) || array_key_exists("rootCategory", $context) ? $context["rootCategory"] : (function () { throw new RuntimeError('Variable "rootCategory" does not exist.', 39, $this->source); })()), "document" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 39, $this->source); })())]], "method", false, false, true, 39), "html", null, true))) : (print ("")));
echo "\">
";
// line 40
(((isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 40, $this->source); })())) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 40, $this->source); })()), "getName", [], "method", false, false, true, 40), "html", null, true))) : (print ("")));
echo "
</a>
</li>
</ul>
</div>
</div>
<div class=\"container\">
<div class=\"heading-holder\">
<!-- main heading of the page -->
<h1>";
// line 49
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })()), "getOSName", [], "method", false, false, true, 49), 49, $this->source), "html", null, true);
echo "</h1>
<h2 class=\"sub-heading\">";
// line 50
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })()), "getContent", [], "method", false, false, true, 50), 50, $this->source), "html", null, true);
echo "</h2>
</div>
<div class=\"detail-block\">
<div class=\"row\">
<div class=\"col-sm-3\">
<div class=\"widget-block\">
";
// line 56
$context["brand"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 56, $this->source); })()), "getBrand", [], "method", false, false, true, 56);
// line 57
echo " ";
if ((isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 57, $this->source); })())) {
// line 58
echo " <div class=\"widget\" style=\"margin-bottom: 10px;\">
<div class=\"heading\">
<h2>Image type</h2>
</div>
<ul class=\"link-list\">
";
// line 63
$context["brandimage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 63, $this->source); })()), 0, [], "array", false, false, true, 63), "getObject", [], "method", false, false, true, 63), "getBrandMarkImage", [], "method", false, false, true, 63);
echo "
<!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
</ul>
</div>\t\t
<div class=\"widget\">
<div class=\"logo-link-holder\">
<a class=\"download-btn button\" href=\"";
// line 70
echo twig_escape_filter($this->env, ((("/" . $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 70, $this->source); })()), 70, $this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 70, $this->source); })()), 0, [], "array", false, false, true, 70), "getObject", [], "method", false, false, true, 70), "getId", [], "method", false, false, true, 70), 70, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.viewall"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 70, $this->source); })()), 0, [], "array", false, false, true, 70), "getObject", [], "method", false, false, true, 70), "getBrandName", [], "method", false, false, true, 70), 70, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.products"), "html", null, true);
echo "</a>
</div>
<div class=\"logo-holder\">
<div class=\"logo-wrap\">
<a href=\"";
// line 74
echo twig_escape_filter($this->env, ((("/" . $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 74, $this->source); })()), 74, $this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 74, $this->source); })()), 0, [], "array", false, false, true, 74), "getObject", [], "method", false, false, true, 74), "getId", [], "method", false, false, true, 74), 74, $this->source)), "html", null, true);
echo "\">
";
// line 75
if ((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 75, $this->source); })())) {
// line 76
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 76, $this->source); })()), "DocumentImage", [], "any", false, false, true, 76), "getThumbnail", [["width" => 221]], "method", false, false, true, 76), 76, $this->source), "html", null, true);
echo "\">
";
} else {
// line 78
echo " <h2>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 78, $this->source); })()), "getName", [], "method", false, false, true, 78), 78, $this->source), "html", null, true);
echo "</h2>
";
}
// line 80
echo " </a>
</div>
</div>
<div class=\"download-logo\" style=\"margin-top: 10px;\">
<a class=\"download-btn button\" href=\"";
// line 84
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 84, $this->source); })()), "DocumentImage", [], "any", false, false, true, 84), "getFullPath", [], "method", false, false, true, 84), 84, $this->source), ["/var/www/html/web" => ""]), "html", null, true);
echo "\" download>Download Image</a>
</div>
</div>
";
}
// line 88
echo " </div>
</div>
<div class=\"col-sm-6\">
<div class=\"product-info\">
<div class=\"heading-holder\">
<h2 class=\"sub-heading\">Description</h2>
</div>
";
// line 95
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 95, $this->source); })()), "description", [], "any", false, false, true, 95), 95, $this->source);
echo "
</div>
</div>
<div class=\"col-sm-3\">
<div class=\"widget-block\">
";
// line 100
$context["brand"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 100, $this->source); })()), "getBrand", [], "method", false, false, true, 100);
// line 101
echo " ";
if ((isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 101, $this->source); })())) {
// line 102
echo " <div class=\"widget\" style=\"margin-bottom: 10px;\">
<div class=\"heading\">
<h2>Image type</h2>
</div>
<ul class=\"link-list\">
";
// line 107
$context["brandimage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 107, $this->source); })()), 0, [], "array", false, false, true, 107), "getObject", [], "method", false, false, true, 107), "getBrandMarkImage", [], "method", false, false, true, 107);
echo "
<!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
</ul>
</div>\t\t
<div class=\"widget\">
<div class=\"logo-link-holder\">
<a class=\"download-btn button\" href=\"";
// line 114
echo twig_escape_filter($this->env, ((("/" . $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 114, $this->source); })()), 114, $this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 114, $this->source); })()), 0, [], "array", false, false, true, 114), "getObject", [], "method", false, false, true, 114), "getId", [], "method", false, false, true, 114), 114, $this->source)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.viewall"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 114, $this->source); })()), 0, [], "array", false, false, true, 114), "getObject", [], "method", false, false, true, 114), "getBrandName", [], "method", false, false, true, 114), 114, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.products"), "html", null, true);
echo "</a>
</div>
<div class=\"logo-holder\">
<div class=\"logo-wrap\">
<a href=\"";
// line 118
echo twig_escape_filter($this->env, ((("/" . $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 118, $this->source); })()), 118, $this->source)) . "/product/list?Brand=") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 118, $this->source); })()), 0, [], "array", false, false, true, 118), "getObject", [], "method", false, false, true, 118), "getId", [], "method", false, false, true, 118), 118, $this->source)), "html", null, true);
echo "\">
";
// line 119
if ((isset($context["brandimage"]) || array_key_exists("brandimage", $context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.', 119, $this->source); })())) {
// line 120
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["brandimage"]) || array_key_exists("brandimage", $context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.', 120, $this->source); })()), "getThumbnail", [["width" => 151]], "method", false, false, true, 120), 120, $this->source), "html", null, true);
echo "\">
";
} else {
// line 122
echo " <h2>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 122, $this->source); })()), 0, [], "array", false, false, true, 122), "getObject", [], "method", false, false, true, 122), "getBrandName", [], "method", false, false, true, 122), 122, $this->source), "html", null, true);
echo "</h2>
";
}
// line 124
echo " </a>
</div>
</div>
<div class=\"download-logo\" style=\"margin-top: 10px;\">
<a class=\"download-btn button\" href=\"";
// line 128
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["brandimage"]) || array_key_exists("brandimage", $context) ? $context["brandimage"] : (function () { throw new RuntimeError('Variable "brandimage" does not exist.', 128, $this->source); })()), "getFullPath", [], "method", false, false, true, 128), 128, $this->source), ["/var/www/html/web" => ""]), "html", null, true);
echo "\" download>Download Logo</a>
</div>
</div>
";
}
// line 132
echo " </div>
</div>
</div>
</div>
<div class=\"tab-holder\">
<ul class=\"tabset\">
<li class=\"first\"><a href=\"#tab1\" ><span>Photos</span></a></li>
";
// line 140
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 140, $this->source); })()), "getVideoList", [], "method", false, false, true, 140) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 140, $this->source); })()), "getVideoList", [], "method", false, false, true, 140)) > 0))) {
// line 141
echo " <li class=\"seventh\"><a href=\"#tab2\"><span>Video</span></a></li>
";
}
// line 143
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 143, $this->source); })()), "getDocumentList", [], "method", false, false, true, 143) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 143, $this->source); })()), "getDocumentList", [], "method", false, false, true, 143)) > 0))) {
// line 144
echo " <li class=\"seventh\"><a href=\"#tab3\" class=\"active\"><span>Documents</span></a></li>
";
}
// line 146
echo " </ul>
<div class=\"tab-content\">
<div class=\"accordion\">
";
// line 149
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 149, $this->source); })()), "getImages", [], "method", false, false, true, 149))) {
echo "
<div class=\"accordion-holder active\">
<a href=\"#\" class=\"accordion-opener\">";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.product-photos"), "html", null, true);
echo "</a>
<div id=\"here\" class=\"accordion-slide\">
<div id=\"tab1\" class=\"tab-data\">
<div class=\"content-wrap\">
";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 155, $this->source); })()), "getImages", [], "method", false, false, true, 155));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 156
echo " <div class=\"col-sm-4\">
<div class=\"product-post hover-js\">
<div class=\"img-holder\">
";
// line 159
if (twig_get_attribute($this->env, $this->source, $context["image"], "getImage", [], "method", false, false, true, 159)) {
// line 160
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "getImage", [], "method", false, false, true, 160), "getThumbnail", ["alcoholtype"], "method", false, false, true, 160), "getHtml", [["width" => 300, "height" => 222]], "method", false, false, true, 160), 160, $this->source);
echo "
";
}
// line 161
echo "
</div>
<a class=\"download-btn button video-download-btn\" data-basename=\"";
// line 163
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "getImage", [], "method", false, false, true, 163), "getFilename", [], "method", false, false, true, 163), 163, $this->source)), "html", null, true);
echo "\" data-brand=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 163, $this->source); })()), 0, [], "array", false, false, true, 163), "getObject", [], "method", false, false, true, 163), "getBrandName", [], "method", false, false, true, 163), 163, $this->source), "html", null, true);
echo "\" download href=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "getImage", [], "method", false, false, true, 163), "getPath", [], "method", false, false, true, 163), 163, $this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "getImage", [], "method", false, false, true, 163), "getFilename", [], "method", false, false, true, 163), 163, $this->source)), "html", null, true);
echo "\">Download Image</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 167
echo " </div>
</div>
</div>
</div>
";
}
// line 172
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 172, $this->source); })()), "getVideoList", [], "method", false, false, true, 172) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 172, $this->source); })()), "getVideoList", [], "method", false, false, true, 172)) > 0))) {
// line 173
echo " <div class=\"accordion-holder\">
<a href=\"#\" class=\"accordion-opener\">";
// line 174
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.video"), "html", null, true);
echo "</a>
<div class=\"accordion-slide\">
<div id=\"tab2\" class=\"tab-data\">
<div class=\"content-wrap\">
";
// line 178
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 178, $this->source); })()), "getVideoList", [], "method", false, false, true, 178));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 179
echo " ";
$context["src"] = ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "getPath", [], "method", false, false, true, 179), 179, $this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "getFilename", [], "method", false, false, true, 179), 179, $this->source));
// line 180
echo " <div class=\"video_holder\">
<video controls>
<source src=\"";
// line 183
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["src"]) || array_key_exists("src", $context) ? $context["src"] : (function () { throw new RuntimeError('Variable "src" does not exist.', 183, $this->source); })()), 183, $this->source), "html", null, true);
echo "\" type=\"video/mp4\">
</video>
\t\t\t\t\t\t\t <a class=\"download-btn button video-download-btn\" data-basename=\"";
// line 185
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "getFilename", [], "method", false, false, true, 185), 185, $this->source)), "html", null, true);
echo "\" data-brand=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 185, $this->source); })()), 0, [], "array", false, false, true, 185), "getObject", [], "method", false, false, true, 185), "getBrandName", [], "method", false, false, true, 185), 185, $this->source), "html", null, true);
echo "\" download href=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "getPath", [], "method", false, false, true, 185), 185, $this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "getFilename", [], "method", false, false, true, 185), 185, $this->source)), "html", null, true);
echo "\">Download Video</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 188
echo " </div>
</div>
</div>
</div>
";
}
// line 193
echo "
";
// line 194
if ((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 194, $this->source); })()), "getDocumentList", [], "method", false, false, true, 194) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 194, $this->source); })()), "getDocumentList", [], "method", false, false, true, 194)) > 0))) {
// line 195
echo " <div class=\"accordion-holder\">
<a href=\"#\" class=\"accordion-opener\">";
// line 196
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.detail.video"), "html", null, true);
echo "</a>
<div class=\"accordion-slide\">
<div id=\"tab3\" class=\"tab-data\">
<div class=\"content-wrap\">
<table class=\"table table-striped\">
<thead>
<tr>
<th>Document Name</th>
<th>Document Size</th>
<th>Document Type</th>
<th>Download</th>
</tr>
</thead>
<tbody>
";
// line 210
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 210, $this->source); })()), "getDocumentList", [], "method", false, false, true, 210));
foreach ($context['_seq'] as $context["_key"] => $context["document"]) {
echo "
<tr>
<td>";
// line 212
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "filename", [], "any", false, false, true, 212), 212, $this->source), "html", null, true);
echo "</td>
<td>";
// line 213
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->formatBytes($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "getFileSize", [], "method", false, false, true, 213), 213, $this->source)), "html", null, true);
echo "</td>
<td><i class=\"";
// line 214
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->getDocumentIcon($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "mimeType", [], "any", false, false, true, 214), 214, $this->source)), "html", null, true);
echo "\" style=\"font-size:24px;\"></i></td> <!-- Example using Font Awesome icons -->
<td><a class=\"download-btn button video-download-btn\" data-basename=\"";
// line 215
echo twig_escape_filter($this->env, $this->extensions['App\Twig\AppExtension']->basenameFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "getFilename", [], "method", false, false, true, 215), 215, $this->source)), "html", null, true);
echo "\" data-brand=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["brand"]) || array_key_exists("brand", $context) ? $context["brand"] : (function () { throw new RuntimeError('Variable "brand" does not exist.', 215, $this->source); })()), 0, [], "array", false, false, true, 215), "getObject", [], "method", false, false, true, 215), "getBrandName", [], "method", false, false, true, 215), 215, $this->source), "html", null, true);
echo "\" download href=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "getPath", [], "method", false, false, true, 215), 215, $this->source) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["document"], "getFilename", [], "method", false, false, true, 215), 215, $this->source)), "html", null, true);
echo "\">Download</a></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['document'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 217
echo "
</tbody>
</table>
</div>
</div>
</div>
</div>
";
}
// line 225
echo "
";
// line 351
echo "
</div>
</div>
</div>
</div>
";
// line 434
echo "
";
// line 698
echo "<iframe id=\"my_iframe\" style=\"display:none;\"></iframe>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Shop/detail.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 545 => 698, 541 => 434, 529 => 351, 524 => 225, 514 => 217, 501 => 215, 497 => 214, 493 => 213, 489 => 212, 482 => 210, 465 => 196, 462 => 195, 460 => 194, 457 => 193, 450 => 188, 437 => 185, 432 => 183, 427 => 180, 424 => 179, 420 => 178, 413 => 174, 410 => 173, 407 => 172, 400 => 167, 386 => 163, 382 => 161, 376 => 160, 374 => 159, 369 => 156, 365 => 155, 358 => 151, 353 => 149, 348 => 146, 344 => 144, 341 => 143, 337 => 141, 335 => 140, 325 => 132, 318 => 128, 312 => 124, 306 => 122, 300 => 120, 298 => 119, 294 => 118, 281 => 114, 271 => 107, 264 => 102, 261 => 101, 259 => 100, 251 => 95, 242 => 88, 235 => 84, 229 => 80, 223 => 78, 217 => 76, 215 => 75, 211 => 74, 198 => 70, 188 => 63, 181 => 58, 178 => 57, 176 => 56, 167 => 50, 163 => 49, 151 => 40, 147 => 39, 144 => 38, 141 => 37, 134 => 33, 130 => 32, 127 => 31, 124 => 30, 121 => 29, 118 => 28, 115 => 27, 113 => 26, 110 => 25, 108 => 24, 102 => 21, 98 => 20, 91 => 16, 87 => 15, 80 => 10, 76 => 7, 74 => 6, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'product.html.twig' %}
{% block content %}
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css\">
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{# {% set product = product.parent %} #}
<div class=\"breadcrumb-block\">
<div class=\"container\">
<!-- breadcrumb of the page -->
<ul class=\"breadcrumb\">
<li>
<a href=\"/{{ locale }}/\" class=\"home\">
{{ 'espirits.header.home'|trans }}
</a>
</li>
<li>
<a href=\"{{ pimcore_url({prefix: locale},'product-landing') }}\">
{{ 'espirits.header.our-products'|trans }}
</a>
</li>
{% set rootCategory = '' %}
{% if product.getCategories() %}
{% set category = product.getCategories()[0] %}
{% set parentcategory = category.getParent() %}
{% if parentcategory and parentcategory.getType() == \"object\" and parentcategory.getClassname() == \"CategoryAlcoholType\" %}
{% set parenturl = parentcategory.getDetailUrl({\"rootCategory\" : rootCategory, \"document\" : document}) %}
<li>
<a href=\"{{ parenturl }}\">
{{ parentcategory.getName() }}
</a>
</li>
{% endif %}
{% endif %}
<li class=\"active\">
<a href=\"{{ category ? category.getDetailUrl({\"rootCategory\" : rootCategory, \"document\" : document}) : \"\" }}\">
{{ category ? category.getName() : \"\" }}
</a>
</li>
</ul>
</div>
</div>
<div class=\"container\">
<div class=\"heading-holder\">
<!-- main heading of the page -->
<h1>{{ product.getOSName() }}</h1>
<h2 class=\"sub-heading\">{{ product.getContent() }}</h2>
</div>
<div class=\"detail-block\">
<div class=\"row\">
<div class=\"col-sm-3\">
<div class=\"widget-block\">
{% set brand = product.getBrand() %}
{% if brand %}
<div class=\"widget\" style=\"margin-bottom: 10px;\">
<div class=\"heading\">
<h2>Image type</h2>
</div>
<ul class=\"link-list\">
{% set brandimage = brand[0].getObject().getBrandMarkImage() %}
<!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
</ul>
</div>\t\t
<div class=\"widget\">
<div class=\"logo-link-holder\">
<a class=\"download-btn button\" href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
</div>
<div class=\"logo-holder\">
<div class=\"logo-wrap\">
<a href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">
{% if product %}
<img src=\"{{ product.DocumentImage.getThumbnail({ width: 221 }) }}\">
{% else %}
<h2>{{ product.getName() }}</h2>
{% endif %}
</a>
</div>
</div>
<div class=\"download-logo\" style=\"margin-top: 10px;\">
<a class=\"download-btn button\" href=\"{{ product.DocumentImage.getFullPath()|replace({'/var/www/html/web' : ''}) }}\" download>Download Image</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class=\"col-sm-6\">
<div class=\"product-info\">
<div class=\"heading-holder\">
<h2 class=\"sub-heading\">Description</h2>
</div>
{{product.description|raw}}
</div>
</div>
<div class=\"col-sm-3\">
<div class=\"widget-block\">
{% set brand = product.getBrand() %}
{% if brand %}
<div class=\"widget\" style=\"margin-bottom: 10px;\">
<div class=\"heading\">
<h2>Image type</h2>
</div>
<ul class=\"link-list\">
{% set brandimage = brand[0].getObject().getBrandMarkImage() %}
<!--<li><a href=\"#\" class=\"pencil\">Brand Details</a></li>-->
</ul>
</div>\t\t
<div class=\"widget\">
<div class=\"logo-link-holder\">
<a class=\"download-btn button\" href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
</div>
<div class=\"logo-holder\">
<div class=\"logo-wrap\">
<a href=\"{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}\">
{% if brandimage %}
<img src=\"{{ brandimage.getThumbnail({ width: 151 }) }}\">
{% else %}
<h2>{{ brand[0].getObject().getBrandName() }}</h2>
{% endif %}
</a>
</div>
</div>
<div class=\"download-logo\" style=\"margin-top: 10px;\">
<a class=\"download-btn button\" href=\"{{ brandimage.getFullPath()|replace({'/var/www/html/web' : ''}) }}\" download>Download Logo</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class=\"tab-holder\">
<ul class=\"tabset\">
<li class=\"first\"><a href=\"#tab1\" ><span>Photos</span></a></li>
{% if product.getVideoList() and product.getVideoList()|length > 0 %}
<li class=\"seventh\"><a href=\"#tab2\"><span>Video</span></a></li>
{% endif %}
{% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
<li class=\"seventh\"><a href=\"#tab3\" class=\"active\"><span>Documents</span></a></li>
{% endif %}
</ul>
<div class=\"tab-content\">
<div class=\"accordion\">
{% if product.getImages() is not empty %}
<div class=\"accordion-holder active\">
<a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.product-photos'|trans }}</a>
<div id=\"here\" class=\"accordion-slide\">
<div id=\"tab1\" class=\"tab-data\">
<div class=\"content-wrap\">
{% for image in product.getImages() %}
<div class=\"col-sm-4\">
<div class=\"product-post hover-js\">
<div class=\"img-holder\">
{% if image.getImage() %}
{{ image.getImage().getThumbnail('alcoholtype').getHtml({ 'width': 300, 'height': 222 })|raw }}
{% endif %}
</div>
<a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(image.getImage().getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ image.getImage().getPath() ~ image.getImage().getFilename() }}\">Download Image</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% if product.getVideoList() and product.getVideoList()|length > 0 %}
<div class=\"accordion-holder\">
<a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.video'|trans }}</a>
<div class=\"accordion-slide\">
<div id=\"tab2\" class=\"tab-data\">
<div class=\"content-wrap\">
{% for video in product.getVideoList() %}
{% set src = video.getPath() ~ video.getFilename() %}
<div class=\"video_holder\">
<video controls>
<source src=\"{{ src }}\" type=\"video/mp4\">
</video>
\t\t\t\t\t\t\t <a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(video.getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ video.getPath() ~ video.getFilename() }}\">Download Video</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
<div class=\"accordion-holder\">
<a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.video'|trans }}</a>
<div class=\"accordion-slide\">
<div id=\"tab3\" class=\"tab-data\">
<div class=\"content-wrap\">
<table class=\"table table-striped\">
<thead>
<tr>
<th>Document Name</th>
<th>Document Size</th>
<th>Document Type</th>
<th>Download</th>
</tr>
</thead>
<tbody>
{% for document in product.getDocumentList() %}
<tr>
<td>{{document.filename}}</td>
<td>{{format_bytes(document.getFileSize())}}</td>
<td><i class=\"{{ document_icon(document.mimeType) }}\" style=\"font-size:24px;\"></i></td> <!-- Example using Font Awesome icons -->
<td><a class=\"download-btn button video-download-btn\" data-basename=\"{{ basename(document.getFilename()) }}\" data-brand=\"{{ brand[0].getObject().getBrandName() }}\" download href=\"{{ document.getPath() ~ document.getFilename() }}\">Download</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endif %}
{# {% if sizeVariants is not empty %}
<div class=\"accordion-holder active\">
<a href=\"#\" class=\"accordion-opener\">{{ 'espirits.detail.product-photos'|trans }}</a>
<div id=\"here\" class=\"accordion-slide\">
<div id=\"tab10\" class=\"tab-data\">
<div class=\"content-wrap\">
<div class=\"row\">
<div class=\"col-sm-6 col-md-5\">
<div class=\"wrap\">
<h3>{{ 'espirits.detail.bottle-sizes'|trans }}</h3>
<div id=\"bottle-sizes\">
<ul class=\"type-list\">
{% set firstimage = null %}
{% if sizeVariants is not empty %}
{% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
{% if variant.getBottlePhoto() is not empty %}
{% if not firstimage %}
{% set firstimage = variant.getBottlePhoto() %}
<li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"active\">
<a href=\"#\"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% else %}
<li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\">
<a href=\"#\"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% endif %}
{% else %}
<li id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\">
<a class=\"disabled\"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</ul>
</div>
</div>
</div>
<div class=\"col-sm-6 col-md-7\">
{% if sizeVariants is not empty %}
<h3>Bottle Details</h3>
<div id=\"image-block\">
{% set i = 1 %}
{% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
<div id=\"{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"{{ (i == 1) ? 'active' : '' }}\">
<div class=\"extra-info\">
<dl>
<dt>GTIN</dt>
<dd>{{ variant.getGTIN()|default('N/A') }}</dd>
</dl>
{% if variant.getBottleMaterial() is not empty %}
<dl>
<dt>Material</dt>
<dd>{{ (variant.getBottleMaterial() is not empty) ? variant.getBottleMaterial() : 'N/A' }}</dd>
</dl>
{% endif %}
{% set htArray = variant.getBottleHeight()|split(' ') %}
{% set wdArray = variant.getBottleWidth()|split(' ') %}
{% set dpArray = variant.getBottleDepth()|split(' ') %}
{% if htArray is not empty and wdArray is not empty and dpArray is not empty %}
{% if htArray[0] and wdArray[0] and dpArray[0] %}
<dl>
<dt>Dimension</dt>
<dd>{{ htArray[0] ~ ' x ' ~ wdArray[0] ~ ' x ' ~ dpArray[0] }} IN</dd>
</dl>
{% endif %}
{% endif %}
{% if variant.getBottleWeight() is not empty %}
<dl>
<dt>Weight</dt>
<dd>{{ (variant.getBottleWeight() is not empty) ? variant.getBottleWeight() : 'N/A' }}</dd>
</dl>
{% endif %}
</div>
</div>
{% endif %}
{% set i = i+1 %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %} #}
</div>
</div>
</div>
</div>
{# {% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
<!-- Bottle images Modal -->
<div id=\"downloadModal_{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"downloadModal modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<!-- Modal content-->
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">×</button>
<h4 class=\"modal-title\">Download Image Assets</h4>
</div>
<div class=\"modal-body\">
<form id=\"download_{{ variant.getBottleSize()|replace({' ': ''}) }}\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
<h3>{{ product.getOSName() ~ '-' ~ variant.getBottleSize() }}</h3>
<label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
<option data-img-src=\"{{ variant.getBottlePhoto().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ variant.getBottlePhoto().getId() }}\">{{ variant.getBottlePhoto().getKey() }}</option>
{% set images = variant.getAdditionalImages() %}
{% for item in images %}
{% if item['AdditionalPhoto'] is not empty %}
{% set asset = pimcore_asset_by_path(item['AdditionalPhoto'].getData()) %}
<option data-img-src=\"{{ asset.getThumbnail(\"eSpirits_Detail_Thumb\") }}\" value=\"{{ asset.getId() }}\">{{ asset.getKey() }}</option>
{% endif %}
{% endfor %}
</select>
<div class=\"form-group\">
<label class=\"control-label\" for=\"photographyfilefileformat_{{ variant.getBottleSize()|replace({' ': ''}) }}\">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type=\"radio\" id=\"photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
<label for=\"photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" style=\"margin-right: 8px;\"> PNG </label>
</div>
<div>
<input type=\"radio\" id=\"photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
<label for=\"photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}\" style=\"margin-right: 8px;\"> JPG </label>
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
<option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value=\"eSpirits_2\">750 x 1500 (px)</option>
<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
</select>
</div>
</div>\t
</div>
<input type=\"hidden\" name=\"order_type\" value=\"direct\">
<input type=\"hidden\" name=\"product_id\" value=\"{{ variant.getId() }}\">
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
<input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
</form>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %} #}
{# <div id=\"downloadModal_Lifestyle\" class=\"downloadModal modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '×'|raw }}</button>
<h4 class=\"modal-title\">Download Lifestyle Assets</h4>
</div>
<div class=\"modal-body\">
<form id=\"download_Lifestyle\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
<h3>{{ product.getOSName() }}</h3>
<label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
{% if product.getLifestylePhotoList() is not empty %}
{% set x =0 %}
{% for item in product.getLifestylePhotoList().getItems() %}
{% if item.getPhotoLifestyle() is not empty %}
<option data-img-src=\"{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ item.getPhotoLifestyle().getId() }}\">{{ item.getPhotoLifestyle().getKey() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafileformat_lifestyle\">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type=\"radio\" id=\"photographyfileformatPNG_Lifestyle\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
<label for=\"photographyfileformatPNG_Lifestyle\" style=\"margin-right: 8px;\"> PNG </label>
</div>
<div>
<input type=\"radio\" id=\"photographyfileformatJPG_Lifestyle\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
<label for=\"photographyfileformatJPG_Lifestyle\" style=\"margin-right: 8px;\"> JPG </label>
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
<option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value=\"eSpirits_2\">750 x 1500 (px)</option>
<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
</select>
</div>
</div>\t
</div>
<input type=\"hidden\" name=\"order_type\" value=\"direct\">
<input type=\"hidden\" name=\"product_id\" value=\"{{product.id}}\">
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
<input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
</form>
</div>
</div>
</div>
</div>
<div id=\"downloadModal_Infographics\" class=\"downloadModal modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '×'|raw }}</button>
<h4 class=\"modal-title\">Download Infographics</h4>
</div>
<div class=\"modal-body\">
<form id=\"download_Infographics\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
<h3>{{ product.getOSName() }}</h3>
<label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
{% if product.getInfographicsPhotoList() is not empty %}
{% set x =0 %}
{% for item in product.getInfographicsPhotoList().getItems() %}
{% if item.getPhotoLifestyle() is not empty %}
<option data-img-src=\"{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ item.getPhotoLifestyle().getId() }}\">{{ item.getPhotoLifestyle().getKey() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafileformat_infographics\">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type=\"radio\" id=\"photographyfileformatPNG_Infographics\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
<label for=\"photographyfileformatPNG_Infographics\" style=\"margin-right: 8px;\"> PNG </label>
</div>
<div>
<input type=\"radio\" id=\"photographyfileformatJPG_Infographics\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
<label for=\"photographyfileformatJPG_Infographics\" style=\"margin-right: 8px;\"> JPG </label>
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
<option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value=\"eSpirits_2\">750 x 1500 (px)</option>
<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
</select>
</div>
</div>\t
</div>
<input type=\"hidden\" name=\"order_type\" value=\"direct\">
<input type=\"hidden\" name=\"product_id\" value=\"{{product.id}}\">
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
<input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
</form>
</div>
</div>
</div>
</div>
<div id=\"downloadModal_Recipes\" class=\"downloadModal modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '×'|raw }}</button>
<h4 class=\"modal-title\">Download Recipes</h4>
</div>
<div class=\"modal-body\">
<form id=\"download_Recipes\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
<h3>{{ product.getOSName() }}</h3>
<label class=\"control-label\">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
{% if recipes %}
{% set x = 0 %}
{% for recipe in recipes %}
{% if recipe.getObject().getRecipePhoto() is not empty %}
<option data-img-src=\"{{ recipe.getObject().getRecipePhoto().getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ recipe.getObject().getId() }}\">{{ recipe.getObject().getRecipeName() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafileformat_Recipes\">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type=\"radio\" id=\"photographyfileformatPNG_Recipes\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
<label for=\"photographyfileformatPNG_Recipes\" style=\"margin-right: 8px;\"> PNG </label>
</div>
<div>
<input type=\"radio\" id=\"photographyfileformatJPG_Recipes\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
<label for=\"photographyfileformatJPG_Recipes\" style=\"margin-right: 8px;\"> JPG </label>
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
<option value=\"eSpirits_1\">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value=\"eSpirits_2\">750 x 1500 (px)</option>
<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
</select>
</div>
</div>\t
</div>
<input type=\"hidden\" name=\"order_type\" value=\"recipes\">
<input type=\"hidden\" name=\"product_id\" value=\"{{ product.getId() }}\">
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
<input type=\"submit\" class=\"btn btn-default\" value=\"{{ 'espirits.detail.downloadimages'|trans }}\">
</form>
</div>
</div>
</div>
</div>
<div id=\"downloadModal_digitalMarketing\" class=\"downloadModal modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\">{{ '×'|raw }}</button>
<h4 class=\"modal-title\">Download Programming Assets Assets</h4>
</div>
<div class=\"modal-body\">
\t <form id=\"download_digitalMarketing\" class=\"downloadForm\" method=\"post\" action=\"/{{ locale }}/download\">
\t\t<h3>{{ product.getName() }}</h3>
\t\t<label class=\"control-label\">Select Images</label>
\t\t<select name=\"images[]\" multiple=\"multiple\" class=\"image-picker show-html image-download jcf-ignore\" required>
\t\t{% for x in 1..5 %}
{% if attribute(product, 'getAssets'~x) is not empty %}
{% for item in attribute(product, 'getAssets'~x) %}
{% if attribute(item, 'Asset'~x) %}
{% set asset = attribute(item, 'Asset'~x) %}
{% if asset %}
{% set asset = asset.getData() %}
<option data-img-src=\"{{ asset.getThumbnail('eSpirits_Detail_Thumb') }}\" value=\"{{ asset.getId() }}\">{{ asset.getFilename() }}</option>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}\t\t
\t\t</select>
\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"control-label\" for=\"photographyfilefileformat_digitalMarketing\">{{ 'checkout.photographyfileformat'|trans }}</label>
\t\t\t\t<div>
\t\t\t\t\t<input checked type=\"radio\" id=\"photographyfileformatOriginal_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"ORIGINAL\" value=\"ORIGINAL\" />
\t\t\t\t\t<label for=\"photographyfileformatOriginal_digitalMarketing\" style=\"margin-right: 8px;\"> Original </label>
\t\t\t\t</div>
\t\t\t\t<div>
\t\t\t\t\t<input type=\"radio\" id=\"photographyfileformatPNG_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"PNG\" value=\"PNG\" />
\t\t\t\t\t<label for=\"photographyfileformatPNG_digitalMarketing\" style=\"margin-right: 8px;\"> PNG </label>
\t\t\t\t</div>
\t\t\t\t<div>
\t\t\t\t\t<input type=\"radio\" id=\"photographyfileformatJPG_digitalMarketing\" name=\"photographyfileformat\" placeholder=\"JPG\" value=\"JPG\" />
\t\t\t\t\t<label for=\"photographyfileformatJPG_digitalMarketing\" style=\"margin-right: 8px;\"> JPG </label>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"form-group\">
\t\t\t\t<label class=\"control-label\" for=\"datafilesize\">{{ 'checkout.photographyfilesize'|trans }}</label>
\t\t\t\t<div>
\t\t\t\t\t<select name=\"photographyfiledimension\" data-jcf='{\"wrapNative\": false, \"wrapNativeOnMobile\": false}'>
\t\t\t\t\t\t\t<option value=\"eSpirits_1\">Original - Largest Image Size</option>
\t\t\t\t\t\t\t<option value=\"eSpirits_2\">750 x 1500 (px)</option>
\t\t\t\t\t\t\t<option value=\"eSpirits_3\">1000 x 1000 (px)</option>
\t\t\t\t\t\t\t<option value=\"eSpirits_4\">1500 x 1500 (px)</option>
\t\t\t\t\t\t\t<option value=\"eSpirits_5\">2000 x 2000 (px)</option>
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t</div>\t
</div>
\t <input type=\"hidden\" name=\"order_type\" value=\"direct\">
\t <input type=\"hidden\" name=\"product_id\" value=\"{{ product.getId() }}\">
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Cancel</button>
\t\t<input type=\"submit\" class=\"btn btn-default\" value=\"Download Images\">
\t\t</form>
</div>
</div>
</div>
</div>
<div id=\"downloadLoading\" class=\"downloadLoading modal fade\" role=\"dialog\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
\t <div class=\"modal-header\">
<h4 class=\"modal-title\">{{ 'espirits.detail.generatingdownload'|trans }}</h4>
</div>
<div class=\"modal-body\">
\t\t<div class=\"loading\"></div>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'espirits.detail.cancel'|trans }}</button>
</div>
</div>
</div>
</div> #}
<iframe id=\"my_iframe\" style=\"display:none;\"></iframe>
{% endblock %}
", "Shop/detail.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Shop/detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 6, "set" => 7, "for" => 155);
static $filters = array("escape" => 15, "trans" => 16, "replace" => 84, "raw" => 95, "length" => 140);
static $functions = array("pimcore_document" => 7, "pimcore_url" => 20, "basename" => 163, "format_bytes" => 213, "document_icon" => 214);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['escape', 'trans', 'replace', 'raw', 'length'],
['pimcore_document', 'pimcore_url', 'basename', 'format_bytes', 'document_icon']
);
} 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;
}
}
}