<?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;
/* product/product-list.html.twig */
class __TwigTemplate_71615c07ac2473f1ac469b0896108918 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 "layouts/layout.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", "product/product-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/product-list.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "product/product-list.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 "
";
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [0 => (isset($context["pageTitle"]) || array_key_exists("pageTitle", $context) ? $context["pageTitle"] : (function () { throw new RuntimeError('Variable "pageTitle" does not exist.', 5, $this->source); })())], "method", false, false, true, 5);
// line 6
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => (isset($context["pageDescription"]) || array_key_exists("pageDescription", $context) ? $context["pageDescription"] : (function () { throw new RuntimeError('Variable "pageDescription" does not exist.', 6, $this->source); })())], "method", false, false, true, 6);
// line 7
echo "
<main role=\"main\" class=\"products mt-100 pt-0 pt-lg-100\">
";
// line 9
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::breadcrumbsAction"));
echo "
<div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
<div class=\"row gx-0 gx-lg-70\">
<h1 class=\"d-block d-lg-none mb-0\">";
// line 12
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["categorydo"]) || array_key_exists("categorydo", $context) ? $context["categorydo"] : (function () { throw new RuntimeError('Variable "categorydo" does not exist.', 12, $this->source); })()), "name", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "</h1>
<div class=\"sidebar\">
<div class=\"sticky-lg-top pt-20\">
<div class=\"pb-0 pb-lg-20 mb-10\">
<form class=\"form-inline d-flex border border-black\" role=\"search\">
<input class=\"form-control me-5 border-0 search-input w-100 ps-10\" id=\"fast-search\" type=\"search\" placeholder=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search product code"), "html", null, true);
echo "\" aria-label=\"Search\">
<button class=\"btn border-0 py-10 ps-5 pe-10 align-items-center fast-search-submit d-none\" type=\"submit\"><i class=\"fa-sharp fa-solid fa-magnifying-glass\"></i></button>
</form>
</div>
<style>
#fast-search { margin-right:0!important; }
#fast-search::placeholder { font-size: 12px!important; }
#fast-search::-webkit-input-placeholder { font-size: 12px!important; }
#fast-search::-moz-placeholder { font-size: 12px!important; }
</style>
<!-- start accordion -->
<div class=\"accordion\" id=\"mobileAccordion\">
<div class=\"accordion-item rounded-0 border-0\">
<div class=\"accordion-header\">
<button class=\"accordion-button rounded-0 bg-transparent shadow-none px-0 collapsed d-flex d-lg-none fs-25 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#filtersAccordion\" aria-expanded=\"false\" aria-controls=\"filtersAccordion\">
";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("FILTERS"), "html", null, true);
echo "
</button>
</div>
<div class=\"pb-0 pb-lg-20 mb-10 \" id=\"filtersAccordion\">
<form id=\"js_filterfield\">
";
// line 37
if (array_key_exists("term", $context)) {
// line 38
echo " <input type=\"hidden\" name=\"term\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["term"]) || array_key_exists("term", $context) ? $context["term"] : (function () { throw new RuntimeError('Variable "term" does not exist.', 38, $this->source); })()), 38, $this->source), "html", null, true);
echo "\"/>
";
}
// line 40
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition", $context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.', 40, $this->source); })()), "filters", [], "any", false, false, true, 40)) > 0)) {
// line 41
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["filterDefinition"]) || array_key_exists("filterDefinition", $context) ? $context["filterDefinition"] : (function () { throw new RuntimeError('Variable "filterDefinition" does not exist.', 41, $this->source); })()), "filters", [], "any", false, false, true, 41));
foreach ($context['_seq'] as $context["_key"] => $context["filter"]) {
// line 42
echo " ";
$context["filterMarkup"] = twig_get_attribute($this->env, $this->source, (isset($context["filterService"]) || array_key_exists("filterService", $context) ? $context["filterService"] : (function () { throw new RuntimeError('Variable "filterService" does not exist.', 42, $this->source); })()), "filterFrontend", [0 => $context["filter"], 1 => (isset($context["productListing"]) || array_key_exists("productListing", $context) ? $context["productListing"] : (function () { throw new RuntimeError('Variable "productListing" does not exist.', 42, $this->source); })()), 2 => (isset($context["currentFilter"]) || array_key_exists("currentFilter", $context) ? $context["currentFilter"] : (function () { throw new RuntimeError('Variable "currentFilter" does not exist.', 42, $this->source); })())], "method", false, false, true, 42);
// line 43
echo " ";
echo $this->sandbox->ensureToStringAllowed((isset($context["filterMarkup"]) || array_key_exists("filterMarkup", $context) ? $context["filterMarkup"] : (function () { throw new RuntimeError('Variable "filterMarkup" does not exist.', 43, $this->source); })()), 43, $this->source);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filter'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo " ";
}
// line 46
echo " </form>
</div>
</div>
</div>
<!-- end accordion -->
</div>
</div>
<div class=\"col-12 col-lg pt-20\">
<h1 class=\"d-none d-lg-block\">";
// line 54
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["categorydo"]) || array_key_exists("categorydo", $context) ? $context["categorydo"] : (function () { throw new RuntimeError('Variable "categorydo" does not exist.', 54, $this->source); })()), "name", [], "any", false, false, true, 54), 54, $this->source), "html", null, true);
echo "</h1>
<div class=\"category-description mt-40\">";
// line 56
echo $this->sandbox->ensureToStringAllowed((isset($context["intro"]) || array_key_exists("intro", $context) ? $context["intro"] : (function () { throw new RuntimeError('Variable "intro" does not exist.', 56, $this->source); })()), 56, $this->source);
echo "</div>
<div class=\"filters-active d-flex gap-10\"><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">poltroncina <i class=\"fa-sharp fa-solid fa-xmark\"></i></a><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">moderno <i class=\"fa-sharp fa-solid fa-xmark\"></i></a></div>
<div class=\"num-products my-10 d-none\">";
// line 59
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 59, $this->source); })()), "count", [], "method", false, false, true, 59), 59, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("PRODUCTS"), "html", null, true);
echo "</div>
<div class=\"row gx-20\">
";
// line 61
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 61, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 62
echo " <div class=\"col-6 col-lg-4 col-xxl-3 col-xxl-5x single-product text-center position-relative mb-60\" data-sku=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "codice", [], "any", false, false, true, 62), 62, $this->source)), "html", null, true);
echo "\">
<a href=\"";
// line 63
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, $context["product"], "url", [], "any", false, false, true, 63), 0, [], "array", false, false, true, 63), "slug", [], "any", false, false, true, 63), 63, $this->source), "html", null, true);
echo "\" class=\"product text-center d-block my-10\">
<div class=\"image p-15\">
";
// line 65
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["product"], "fotoPricipale", [], "any", false, false, true, 65))) {
// line 66
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["product"], "fotoPricipale", [], "any", false, false, true, 66), "getThumbnail", [0 => "product_listing"], "method", false, false, true, 66), "getHtml", [], "method", false, false, true, 66), 66, $this->source);
echo "
";
} else {
// line 68
echo " <img src=\"/busetto-placeholder.jpg\" alt=\"\" >
";
}
// line 70
echo "
</div>
</a>
<div class=\"d-flex justify-content-center align-items-center gap-20\">
<span>";
// line 74
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "nome", [], "any", false, false, true, 74), 74, $this->source), "html", null, true);
echo "</span>
";
// line 75
if (twig_get_attribute($this->env, $this->source, $context["product"], "url3d", [], "any", false, false, true, 75)) {
// line 76
echo " <div class=\"banner3d-container\">
<a href=\"";
// line 77
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["product"], "url3d", [], "any", false, false, true, 77), 77, $this->source), "html", null, true);
echo "\" target=\"_blank\" class=\"banner3d\"></a>
</div>
";
}
// line 80
echo " </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 83
echo " </div>
<div class=\"category-description mt-40\">";
// line 84
echo $this->sandbox->ensureToStringAllowed((isset($context["description"]) || array_key_exists("description", $context) ? $context["description"] : (function () { throw new RuntimeError('Variable "description" does not exist.', 84, $this->source); })()), 84, $this->source);
echo "</div>
</div>
</div>
</div>
</main>
";
// line 90
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_inline_script')->getCallable()(), "appendScript", [0 => "
\$('#js_filterfield .custom-checkbox input, #js_filterfield .custom-radio input').on('change', function() {
\$('#js_filterfield').submit();
});
function createActiveFilters(){
var sPageURL = decodeURIComponent(window.location.search.substring(1));
var array =[]
var sURLVariables = sPageURL.split('&');
\$('.filters-active').empty();
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
createFilter(sParameterName[0], sParameterName[1]);
}
}
function createFilter(type, value){
var type = type.replace('[]', '');
var id = type+value;
if(\$('#'+id).length){
var e = \$('<a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\" data-filterid=\"'+id+'\">'+ \$('label[for=\"'+id+'\"').html() +' <i class=\"fa-sharp fa-solid fa-xmark\"></i></a>');
\$('.filters-active').append(e);
}
}
\$('body').on('click', '.filters-active > a', function(){
\$('#'+\$(this).attr('data-filterid')).prop('checked', false);
\$('#js_filterfield').submit();
});
createActiveFilters();
\$('.readMore').on('click', function(){
if(\$(this).hasClass('active')){
\$(this).removeClass('active');
\$(this).find('.open').css('display','block');
\$(this).find('.close').css('display','none');
\$('.moreText').slideUp();
} else {
\$(this).addClass('active');
\$(this).find('.open').css('display','none');
\$(this).find('.close').css('display','block');
\$('.moreText').slideDown();
}
});
"], "method", false, false, true, 90);
// line 138
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "product/product-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 297 => 138, 248 => 90, 239 => 84, 236 => 83, 228 => 80, 222 => 77, 219 => 76, 217 => 75, 213 => 74, 207 => 70, 203 => 68, 197 => 66, 195 => 65, 190 => 63, 185 => 62, 181 => 61, 174 => 59, 168 => 56, 163 => 54, 153 => 46, 150 => 45, 141 => 43, 138 => 42, 133 => 41, 130 => 40, 124 => 38, 122 => 37, 114 => 32, 96 => 17, 88 => 12, 82 => 9, 78 => 7, 75 => 6, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
{% do pimcore_head_title().set(pageTitle) %}
{% do pimcore_head_meta().setDescription(pageDescription) %}
<main role=\"main\" class=\"products mt-100 pt-0 pt-lg-100\">
{{ render(controller('App\\\\Controller\\\\MenuController::breadcrumbsAction')) }}
<div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
<div class=\"row gx-0 gx-lg-70\">
<h1 class=\"d-block d-lg-none mb-0\">{{ categorydo.name }}</h1>
<div class=\"sidebar\">
<div class=\"sticky-lg-top pt-20\">
<div class=\"pb-0 pb-lg-20 mb-10\">
<form class=\"form-inline d-flex border border-black\" role=\"search\">
<input class=\"form-control me-5 border-0 search-input w-100 ps-10\" id=\"fast-search\" type=\"search\" placeholder=\"{{ 'Search product code'|trans }}\" aria-label=\"Search\">
<button class=\"btn border-0 py-10 ps-5 pe-10 align-items-center fast-search-submit d-none\" type=\"submit\"><i class=\"fa-sharp fa-solid fa-magnifying-glass\"></i></button>
</form>
</div>
<style>
#fast-search { margin-right:0!important; }
#fast-search::placeholder { font-size: 12px!important; }
#fast-search::-webkit-input-placeholder { font-size: 12px!important; }
#fast-search::-moz-placeholder { font-size: 12px!important; }
</style>
<!-- start accordion -->
<div class=\"accordion\" id=\"mobileAccordion\">
<div class=\"accordion-item rounded-0 border-0\">
<div class=\"accordion-header\">
<button class=\"accordion-button rounded-0 bg-transparent shadow-none px-0 collapsed d-flex d-lg-none fs-25 fw-bold\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#filtersAccordion\" aria-expanded=\"false\" aria-controls=\"filtersAccordion\">
{{ 'FILTERS'|trans }}
</button>
</div>
<div class=\"pb-0 pb-lg-20 mb-10 \" id=\"filtersAccordion\">
<form id=\"js_filterfield\">
{% if term is defined %}
<input type=\"hidden\" name=\"term\" value=\"{{ term }}\"/>
{% endif %}
{% if(filterDefinition.filters|length > 0) %}
{% for filter in filterDefinition.filters %}
{% set filterMarkup = filterService.filterFrontend(filter, productListing, currentFilter) %}
{{ filterMarkup | raw }}
{% endfor %}
{% endif %}
</form>
</div>
</div>
</div>
<!-- end accordion -->
</div>
</div>
<div class=\"col-12 col-lg pt-20\">
<h1 class=\"d-none d-lg-block\">{{ categorydo.name }}</h1>
<div class=\"category-description mt-40\">{{ intro|raw }}</div>
<div class=\"filters-active d-flex gap-10\"><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">poltroncina <i class=\"fa-sharp fa-solid fa-xmark\"></i></a><a href=\"#\" class=\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\">moderno <i class=\"fa-sharp fa-solid fa-xmark\"></i></a></div>
<div class=\"num-products my-10 d-none\">{{ results.count() }} {{ 'PRODUCTS'|trans }}</div>
<div class=\"row gx-20\">
{% for product in results %}
<div class=\"col-6 col-lg-4 col-xxl-3 col-xxl-5x single-product text-center position-relative mb-60\" data-sku=\"{{ product.codice|lower }}\">
<a href=\"{{ product.url[0].slug }}\" class=\"product text-center d-block my-10\">
<div class=\"image p-15\">
{% if product.fotoPricipale is not empty %}
{{ product.fotoPricipale.getThumbnail(\"product_listing\").getHtml()|raw }}
{% else %}
<img src=\"/busetto-placeholder.jpg\" alt=\"\" >
{% endif %}
</div>
</a>
<div class=\"d-flex justify-content-center align-items-center gap-20\">
<span>{{ product.nome }}</span>
{% if product.url3d %}
<div class=\"banner3d-container\">
<a href=\"{{ product.url3d }}\" target=\"_blank\" class=\"banner3d\"></a>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class=\"category-description mt-40\">{{ description|raw }}</div>
</div>
</div>
</div>
</main>
{% do pimcore_inline_script().appendScript(\"
\$('#js_filterfield .custom-checkbox input, #js_filterfield .custom-radio input').on('change', function() {
\$('#js_filterfield').submit();
});
function createActiveFilters(){
var sPageURL = decodeURIComponent(window.location.search.substring(1));
var array =[]
var sURLVariables = sPageURL.split('&');
\$('.filters-active').empty();
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
createFilter(sParameterName[0], sParameterName[1]);
}
}
function createFilter(type, value){
var type = type.replace('[]', '');
var id = type+value;
if(\$('#'+id).length){
var e = \$('<a href=\\\"#\\\" class=\\\"d-flex gap-5 align-items-center py-5 px-10 fs-15 border border-black\\\" data-filterid=\\\"'+id+'\\\">'+ \$('label[for=\\\"'+id+'\\\"').html() +' <i class=\\\"fa-sharp fa-solid fa-xmark\\\"></i></a>');
\$('.filters-active').append(e);
}
}
\$('body').on('click', '.filters-active > a', function(){
\$('#'+\$(this).attr('data-filterid')).prop('checked', false);
\$('#js_filterfield').submit();
});
createActiveFilters();
\$('.readMore').on('click', function(){
if(\$(this).hasClass('active')){
\$(this).removeClass('active');
\$(this).find('.open').css('display','block');
\$(this).find('.close').css('display','none');
\$('.moreText').slideUp();
} else {
\$(this).addClass('active');
\$(this).find('.open').css('display','none');
\$(this).find('.close').css('display','block');
\$('.moreText').slideDown();
}
});
\") %}
{% endblock %}", "product/product-list.html.twig", "/var/www/html/templates/product/product-list.html.twig");
}
public function checkSecurity()
{
static $tags = array("do" => 5, "if" => 37, "for" => 41, "set" => 42);
static $filters = array("escape" => 12, "trans" => 17, "length" => 40, "raw" => 43, "lower" => 62);
static $functions = array("pimcore_head_title" => 5, "pimcore_head_meta" => 6, "render" => 9, "controller" => 9, "pimcore_inline_script" => 90);
try {
$this->sandbox->checkSecurity(
['do', 'if', 'for', 'set'],
['escape', 'trans', 'length', 'raw', 'lower'],
['pimcore_head_title', 'pimcore_head_meta', 'render', 'controller', 'pimcore_inline_script']
);
} 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;
}
}
}