<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* areas/portal-banner/view.html.twig */
class __TwigTemplate_2e25a69d0cd7fd64c9da322d407ee04d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
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", "areas/portal-banner/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/portal-banner/view.html.twig"));
// line 1
yield "<!-- Hero Section -->
";
// line 2
$context["device"] = Pimcore\Tool\DeviceDetector::getInstance("desktop");
// line 3
yield "<div id=\"hero\" class=\"has-image extra-background-topHome\">
\t<div id=\"hero-styles\">
\t\t<div id=\"hero-caption\" class=\"content-max-width\">
\t\t\t<div class=\"inner\">
\t\t\t\t<!-- <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div> -->
\t\t\t\t<!-- <div class=\"hero-subtitle\">
\t\t\t\t\t <span>Digital</span><span>Creative Agency</span>
\t\t\t\t\t </div> -->
\t\t\t\t<div class=\"hero-title-wrapper\">
\t\t\t\t\t<div class=\"hero-title\">
\t\t\t\t\t\t";
// line 13
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 13, $this->source); })())) {
// line 14
yield "\t\t\t\t\t\t";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "HeroTitle", ["placeholder" => "Hero Title"]);
// line 16
yield "
\t\t\t\t\t\t";
} else {
// line 18
yield "\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t";
// line 19
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "HeroTitle"), "getText", [], "method", false, false, true, 19), 19, $this->source);
yield "</h1>
\t\t\t\t\t\t";
}
// line 22
yield "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div id=\"hero-footer\">
\t\t\t<div class=\"hero-footer-right\">
\t\t\t\t<div class=\"button-wrap right scroll-down\">
\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
\t\t\t\t\t\t\t<i class=\"fa fa-angle-down\"></i>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-text sticky right\">
\t\t\t\t\t\t<span data-hover=\"Scroll Down\">Scroll Down</span>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div id=\"hero-description\" class=\"content-max-width\">
\t\t\t<div class=\"inner\">
\t\t\t\t<div class=\"one_half\"></div>
\t\t\t\t<div class=\"one_half last\">
\t\t\t\t\t<div class=\"hero-text\">
\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t<span>";
// line 48
yield Twig\Extension\CoreExtension::nl2br($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "HeroDescription", ["placeholder" => "Hero Description"]));
// line 50
yield "
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<br />
\t\t\t\t\t";
// line 56
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 56, $this->source); })())) {
// line 57
yield "
\t\t\t\t\t";
// line 58
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "ReadMoreLink");
yield "
\t\t\t\t\t";
} else {
// line 60
yield "\t\t\t\t\t";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "ReadMoreLink");
// line 61
yield "\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 61, $this->source); })()), "getText", [], "method", false, false, true, 61) != "")) {
// line 62
yield "\t\t\t\t\t<div class=\"button-wrap right button-link large-btn has-animation\">
\t\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-arrow-right\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"ajax-link\" href=\"";
// line 72
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 72, $this->source); })()), "getHref", [], "method", false, false, true, 72), 72, $this->source), "html", null, true);
yield "\" data-type=\"page-transition\">
\t\t\t\t\t\t\t<div class=\"button-text sticky right\">
\t\t\t\t\t\t\t\t<span data-hover=\"Read More\">";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 74, $this->source); })()), "getText", [], "method", false, false, true, 74), 74, $this->source), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 80
yield "\t\t\t\t\t";
}
// line 81
yield "\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
";
// line 87
$context["select_option"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "valid_for", ["width" => 110, "reload" => true, "store" => [["Image", "Image"], ["Video", "Video"]], "class" => "align-middle"]);
// line 98
$context["option"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["select_option"]) || array_key_exists("select_option", $context) ? $context["select_option"] : (function () { throw new RuntimeError('Variable "select_option" does not exist.', 98, $this->source); })()), "getData", [], "method", false, false, true, 98);
// line 99
yield "
";
// line 100
if ((Twig\Extension\CoreExtension::testEmpty((isset($context["option"]) || array_key_exists("option", $context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.', 100, $this->source); })())) || ((isset($context["option"]) || array_key_exists("option", $context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.', 100, $this->source); })()) == ""))) {
// line 101
$context["option"] = "Image";
}
// line 103
yield "
";
// line 104
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 104, $this->source); })())) {
// line 105
yield "<div class=\"mb-3 videoImageselect\">
\t<span class=\"editmode-label align-middle \">Options:</span>
\t";
// line 107
yield $this->sandbox->ensureToStringAllowed((isset($context["select_option"]) || array_key_exists("select_option", $context) ? $context["select_option"] : (function () { throw new RuntimeError('Variable "select_option" does not exist.', 107, $this->source); })()), 107, $this->source);
yield "
</div>
";
}
// line 110
yield "
";
// 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); })())) {
// line 113
if (((isset($context["option"]) || array_key_exists("option", $context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.', 113, $this->source); })()) == "Video")) {
// line 114
yield "
";
// line 115
yield " Desktop Video ";
yield "
";
// line 116
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideo", ["width" => 500, "height" => 250]);
// line 120
yield "
</br></br></br>
";
// line 124
yield " Mobile Video ";
yield "
";
// line 126
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideoMobile", ["width" => 300, "height" => 500]);
// line 130
yield "
";
} else {
// line 132
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "myImage", ["thumbnail" => "", "title" => "Drag spotlight banner image here"]);
// line 138
yield "
";
}
// line 140
yield "
";
}
// line 142
yield "<div id=\"hero-image-wrapper\">
\t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
\t\t";
// line 145
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 145, $this->source); })())) {
// line 146
yield "\t\t";
if (((isset($context["option"]) || array_key_exists("option", $context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.', 146, $this->source); })()) == "Image")) {
// line 147
yield "
\t\t<div id=\"hero-bg-image\" style=\"background-image: url(";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "myImage"), "getSrc", [], "method", false, false, true, 148), 148, $this->source), "html", null, true);
yield ")\"></div>
\t\t";
} else {
// line 150
yield "\t\t<div id=\"hero-bg-image\">
\t\t\t";
// line 151
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["device"]) || array_key_exists("device", $context) ? $context["device"] : (function () { throw new RuntimeError('Variable "device" does not exist.', 151, $this->source); })()), "isPhone", [], "method", false, false, true, 151)) {
// line 152
yield "\t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
\t\t\t\tposter=\"";
// line 153
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideoMobile"), "getData", [], "method", false, false, true, 153), "poster", [], "any", false, false, true, 153), 153, $this->source), "html", null, true);
yield "\">
\t\t\t\t<source src=\"";
// line 154
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideoMobile"), "getData", [], "method", false, false, true, 154), "path", [], "any", false, false, true, 154), 154, $this->source), "html", null, true);
yield "\" type=\"video/mp4\" />
\t\t\t</video>
\t\t\t";
} else {
// line 158
yield "
\t\t\t";
// line 173
yield "
\t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
\t\t\t\tposter=\"";
// line 175
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideo"), "getData", [], "method", false, false, true, 175), "poster", [], "any", false, false, true, 175), 175, $this->source), "html", null, true);
yield "\">
\t\t\t\t<source src=\"";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "spotlightVideo"), "getData", [], "method", false, false, true, 176), "path", [], "any", false, false, true, 176), 176, $this->source), "html", null, true);
yield "\" type=\"video/mp4\" />
\t\t\t</video>
\t\t\t";
}
// line 180
yield "\t\t</div>
\t\t";
}
// line 182
yield "\t\t";
}
// line 183
yield "
\t</div>
</div>
<!--/Hero Section -->";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "areas/portal-banner/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 305 => 183, 302 => 182, 298 => 180, 291 => 176, 287 => 175, 283 => 173, 280 => 158, 273 => 154, 269 => 153, 266 => 152, 264 => 151, 261 => 150, 256 => 148, 253 => 147, 250 => 146, 248 => 145, 243 => 142, 239 => 140, 235 => 138, 233 => 132, 229 => 130, 227 => 126, 222 => 124, 216 => 120, 214 => 116, 210 => 115, 207 => 114, 205 => 113, 203 => 112, 199 => 110, 193 => 107, 189 => 105, 187 => 104, 184 => 103, 181 => 101, 179 => 100, 176 => 99, 174 => 98, 172 => 87, 164 => 81, 161 => 80, 152 => 74, 147 => 72, 135 => 62, 132 => 61, 129 => 60, 124 => 58, 121 => 57, 119 => 56, 111 => 50, 109 => 48, 81 => 22, 75 => 19, 72 => 18, 68 => 16, 65 => 14, 63 => 13, 51 => 3, 49 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- Hero Section -->
{% set device = pimcore_device('desktop') %}
<div id=\"hero\" class=\"has-image extra-background-topHome\">
\t<div id=\"hero-styles\">
\t\t<div id=\"hero-caption\" class=\"content-max-width\">
\t\t\t<div class=\"inner\">
\t\t\t\t<!-- <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div> -->
\t\t\t\t<!-- <div class=\"hero-subtitle\">
\t\t\t\t\t <span>Digital</span><span>Creative Agency</span>
\t\t\t\t\t </div> -->
\t\t\t\t<div class=\"hero-title-wrapper\">
\t\t\t\t\t<div class=\"hero-title\">
\t\t\t\t\t\t{% if editmode %}
\t\t\t\t\t\t{{pimcore_textarea('HeroTitle',{
\t\t\t\t\t\t\"placeholder\":\"Hero Title\"
\t\t\t\t\t\t})}}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t<h1>
\t\t\t\t\t\t\t{{pimcore_textarea('HeroTitle').getText() | raw}}</h1>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div id=\"hero-footer\">
\t\t\t<div class=\"hero-footer-right\">
\t\t\t\t<div class=\"button-wrap right scroll-down\">
\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
\t\t\t\t\t\t\t<i class=\"fa fa-angle-down\"></i>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"button-text sticky right\">
\t\t\t\t\t\t<span data-hover=\"Scroll Down\">Scroll Down</span>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<div id=\"hero-description\" class=\"content-max-width\">
\t\t\t<div class=\"inner\">
\t\t\t\t<div class=\"one_half\"></div>
\t\t\t\t<div class=\"one_half last\">
\t\t\t\t\t<div class=\"hero-text\">
\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t<span>{{pimcore_textarea('HeroDescription',{
\t\t\t\t\t\t\t\t\"placeholder\":\"Hero Description\"
\t\t\t\t\t\t\t\t})|nl2br}}
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</p>
\t\t\t\t\t</div>
\t\t\t\t\t<br />
\t\t\t\t\t{% if editmode %}
\t\t\t\t\t{{pimcore_link('ReadMoreLink')}}
\t\t\t\t\t{% else %}
\t\t\t\t\t{% set link = pimcore_link('ReadMoreLink') %}
\t\t\t\t\t{% if link.getText() != \"\" %}
\t\t\t\t\t<div class=\"button-wrap right button-link large-btn has-animation\">
\t\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
\t\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-arrow-right\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"ajax-link\" href=\"{{link.getHref()}}\" data-type=\"page-transition\">
\t\t\t\t\t\t\t<div class=\"button-text sticky right\">
\t\t\t\t\t\t\t\t<span data-hover=\"Read More\">{{link.getText()}}</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
{% set select_option = pimcore_select(\"valid_for\", {
width: 110,
reload: true,
store: [
[\"Image\", \"Image\"],
[\"Video\", \"Video\"]
],
class: 'align-middle'
})
%}
{% set option = select_option.getData() %}
{% if option is empty or option == '' %}
{% set option = 'Image' %}
{% endif %}
{% if editmode %}
<div class=\"mb-3 videoImageselect\">
\t<span class=\"editmode-label align-middle \">Options:</span>
\t{{ select_option|raw }}
</div>
{% endif %}
{% if editmode %}
{% if option == \"Video\" %}
{{\" Desktop Video \"}}
{{ pimcore_video('spotlightVideo' ,{
width:500,
height:250,
})
}}
</br></br></br>
{{\" Mobile Video \"}}
{{ pimcore_video('spotlightVideoMobile' ,{
width:300,
height:500,
})
}}
{% else %}
{{ pimcore_image(\"myImage\",
{
thumbnail: '',
\"title\": \"Drag spotlight banner image here\",
}
) }}
{% endif %}
{% endif %}
<div id=\"hero-image-wrapper\">
\t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
\t\t{% if not editmode %}
\t\t{% if option == 'Image' %}
\t\t<div id=\"hero-bg-image\" style=\"background-image: url({{ pimcore_image('myImage').getSrc() }})\"></div>
\t\t{% else %}
\t\t<div id=\"hero-bg-image\">
\t\t\t{% if device.isPhone() %}
\t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
\t\t\t\tposter=\"{{ pimcore_video('spotlightVideoMobile').getData().poster }}\">
\t\t\t\t<source src=\"{{ pimcore_video('spotlightVideoMobile').getData().path }}\" type=\"video/mp4\" />
\t\t\t</video>
\t\t\t{% else %}
\t\t\t{# {{ pimcore_video('spotlightVideo', {
\t\t\tthumbnail: 'content',
\t\t\tattributes: {
\t\t\t'controls': '',
\t\t\t'autoplay':'true',
\t\t\t'loop':'true',
\t\t\t'muted':'',
\t\t\t'preload': 'auto',
\t\t\t'playsinline':'true',
\t\t\t'class': '',
\t\t\t'id':'centricSpotlight',
\t\t\t}
\t\t\t})
\t\t\t}} #}
\t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
\t\t\t\tposter=\"{{ pimcore_video('spotlightVideo').getData().poster }}\">
\t\t\t\t<source src=\"{{ pimcore_video('spotlightVideo').getData().path }}\" type=\"video/mp4\" />
\t\t\t</video>
\t\t\t{% endif %}
\t\t</div>
\t\t{% endif %}
\t\t{% endif %}
\t</div>
</div>
<!--/Hero Section -->", "areas/portal-banner/view.html.twig", "/var/www/html/templates/areas/portal-banner/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 2, "if" => 13);
static $filters = array("raw" => 19, "nl2br" => 50, "escape" => 72);
static $functions = array("pimcore_device" => 2, "pimcore_textarea" => 14, "pimcore_link" => 58, "pimcore_select" => 87, "pimcore_video" => 116, "pimcore_image" => 132);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['raw', 'nl2br', 'escape'],
['pimcore_device', 'pimcore_textarea', 'pimcore_link', 'pimcore_select', 'pimcore_video', 'pimcore_image'],
$this->source
);
} 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;
}
}
}