var/cache/dev/twig/d6/d68579e70b38044509c8cf1ea7e7e2c6.php line 69

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* areas/video/view.html.twig */
  14. class __TwigTemplate_c3a87f5f28d73607c246eabd4dc94158 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/video/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/video/view.html.twig"));
  35.         // line 6
  36.         echo "
  37. ";
  38.         // line 7
  39.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'7$this->source); })())) {
  40.             // line 8
  41.             echo "\t<div class=\"admin-container admin-container--limited-width\">
  42. \t\t<div class=\"admin-container__section\">
  43. \t\t\t<span class=\"admin-container__title\">";
  44.             // line 10
  45.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.video.title", [], "admin"), "html"nulltrue);
  46.             echo "</span>
  47. \t\t</div>
  48. \t</div>
  49. ";
  50.         }
  51.         // line 14
  52.         echo "<div class=\"area video video--";
  53.         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"nulltrue);
  54.         echo " ";
  55.         echo twig_escape_filter($this->envtwig_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"nulltrue);
  56.         echo "\">
  57. \t<div class=\"video__wrapper\">
  58. \t\t";
  59.         // line 16
  60.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""video", ["imagethumbnail" => ("full-hd-" $this->sandbox->ensureToStringAllowed(        // line 18
  61. (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]]);
  62.         // line 24
  63.         echo "
  64. \t</div>
  65. </div>";
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.     }
  71.     public function getTemplateName()
  72.     {
  73.         return "areas/video/view.html.twig";
  74.     }
  75.     public function isTraitable()
  76.     {
  77.         return false;
  78.     }
  79.     public function getDebugInfo()
  80.     {
  81.         return array (  72 => 24,  70 => 18,  69 => 16,  61 => 14,  54 => 10,  50 => 8,  48 => 7,  45 => 6,);
  82.     }
  83.     public function getSourceContext()
  84.     {
  85.         return new Source("{#
  86. project: Pimcore - Devicenow
  87. User: EBiermann
  88. Year: 2022
  89. #}
  90. {% if editmode %}
  91. \t<div class=\"admin-container admin-container--limited-width\">
  92. \t\t<div class=\"admin-container__section\">
  93. \t\t\t<span class=\"admin-container__title\">{{ 'brick.video.title'|trans({}, 'admin') }}</span>
  94. \t\t</div>
  95. \t</div>
  96. {% endif %}
  97. <div class=\"area video video--{{ type|default('asset') }} {{ cssClasses|join(' ') }}\">
  98. \t<div class=\"video__wrapper\">
  99. \t\t{{
  100. \t\t\tpimcore_video('video', {
  101. \t\t\t\t'imagethumbnail': ('full-hd-' ~ device),
  102. \t\t\t\t'youtube': {
  103. \t\t\t\t\t'modesbranding': true,
  104. \t\t\t\t\t'playsinline': true
  105. \t\t\t\t}
  106. \t\t\t})
  107. \t\t}}
  108. \t</div>
  109. </div>""areas/video/view.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/areas/video/view.html.twig");
  110.     }
  111.     
  112.     public function checkSecurity()
  113.     {
  114.         static $tags = array("if" => 7);
  115.         static $filters = array("escape" => 10"trans" => 10"default" => 14"join" => 14);
  116.         static $functions = array("pimcore_video" => 17);
  117.         try {
  118.             $this->sandbox->checkSecurity(
  119.                 ['if'],
  120.                 ['escape''trans''default''join'],
  121.                 ['pimcore_video']
  122.             );
  123.         } catch (SecurityError $e) {
  124.             $e->setSourceContext($this->source);
  125.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  126.                 $e->setTemplateLine($tags[$e->getTagName()]);
  127.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  128.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  129.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  130.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  131.             }
  132.             throw $e;
  133.         }
  134.     }
  135. }