<?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;
/* areas/video/view.html.twig */
class __TwigTemplate_c3a87f5f28d73607c246eabd4dc94158 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('\Twig\Extension\SandboxExtension');
$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/video/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/video/view.html.twig"));
// line 6
echo "
";
// line 7
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 7, $this->source); })())) {
// line 8
echo "\t<div class=\"admin-container admin-container--limited-width\">
\t\t<div class=\"admin-container__section\">
\t\t\t<span class=\"admin-container__title\">";
// line 10
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.video.title", [], "admin"), "html", null, true);
echo "</span>
\t\t</div>
\t</div>
";
}
// line 14
echo "<div class=\"area video video--";
echo twig_escape_filter($this->env, ((array_key_exists("type", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 14, $this->source); })()), 14, $this->source), "asset")) : ("asset")), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_join_filter($this->sandbox->ensureToStringAllowed((isset($context["cssClasses"]) || array_key_exists("cssClasses", $context) ? $context["cssClasses"] : (function () { throw new RuntimeError('Variable "cssClasses" does not exist.', 14, $this->source); })()), 14, $this->source), " "), "html", null, true);
echo "\">
\t<div class=\"video__wrapper\">
\t\t";
// line 16
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "video", "video", ["imagethumbnail" => ("full-hd-" . $this->sandbox->ensureToStringAllowed( // line 18
(isset($context["device"]) || array_key_exists("device", $context) ? $context["device"] : (function () { throw new RuntimeError('Variable "device" does not exist.', 18, $this->source); })()), 18, $this->source)), "youtube" => ["modesbranding" => true, "playsinline" => true]]);
// line 24
echo "
\t</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/video/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 72 => 24, 70 => 18, 69 => 16, 61 => 14, 54 => 10, 50 => 8, 48 => 7, 45 => 6,);
}
public function getSourceContext()
{
return new Source("{#
project: Pimcore - Devicenow
User: EBiermann
Year: 2022
#}
{% if editmode %}
\t<div class=\"admin-container admin-container--limited-width\">
\t\t<div class=\"admin-container__section\">
\t\t\t<span class=\"admin-container__title\">{{ 'brick.video.title'|trans({}, 'admin') }}</span>
\t\t</div>
\t</div>
{% endif %}
<div class=\"area video video--{{ type|default('asset') }} {{ cssClasses|join(' ') }}\">
\t<div class=\"video__wrapper\">
\t\t{{
\t\t\tpimcore_video('video', {
\t\t\t\t'imagethumbnail': ('full-hd-' ~ device),
\t\t\t\t'youtube': {
\t\t\t\t\t'modesbranding': true,
\t\t\t\t\t'playsinline': true
\t\t\t\t}
\t\t\t})
\t\t}}
\t</div>
</div>", "areas/video/view.html.twig", "/var/www/snr/staging.nuernberger-bratwuerste.de/templates/areas/video/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 7);
static $filters = array("escape" => 10, "trans" => 10, "default" => 14, "join" => 14);
static $functions = array("pimcore_video" => 17);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans', 'default', 'join'],
['pimcore_video']
);
} 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;
}
}
}