var/cache/dev/twig/32/325ae9c1b561626c43ad2c5af92c0770.php line 147

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* areas/portal-banner/view.html.twig */
  15. class __TwigTemplate_2e25a69d0cd7fd64c9da322d407ee04d extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/portal-banner/view.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/portal-banner/view.html.twig"));
  36.         // line 1
  37.         yield "<!-- Hero Section -->
  38. ";
  39.         // line 2
  40.         $context["device"] = Pimcore\Tool\DeviceDetector::getInstance("desktop");
  41.         // line 3
  42.         yield "<div id=\"hero\" class=\"has-image extra-background-topHome\">
  43. \t<div id=\"hero-styles\">
  44. \t\t<div id=\"hero-caption\" class=\"content-max-width\">
  45. \t\t\t<div class=\"inner\">
  46. \t\t\t\t<!-- <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div> -->
  47. \t\t\t\t<!-- <div class=\"hero-subtitle\">
  48. \t\t\t\t\t                        <span>Digital</span><span>Creative Agency</span>
  49. \t\t\t\t\t                      </div> -->
  50. \t\t\t\t<div class=\"hero-title-wrapper\">
  51. \t\t\t\t\t<div class=\"hero-title\">
  52. \t\t\t\t\t\t";
  53.         // line 13
  54.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'13$this->source); })())) {
  55.             // line 14
  56.             yield "\t\t\t\t\t\t";
  57.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""HeroTitle", ["placeholder" => "Hero Title"]);
  58.             // line 16
  59.             yield "
  60. \t\t\t\t\t\t";
  61.         } else {
  62.             // line 18
  63.             yield "\t\t\t\t\t\t<h1>
  64. \t\t\t\t\t\t\t";
  65.             // line 19
  66.             yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""HeroTitle"), "getText", [], "method"falsefalsetrue19), 19$this->source);
  67.             yield "</h1>
  68. \t\t\t\t\t\t";
  69.         }
  70.         // line 22
  71.         yield "
  72. \t\t\t\t\t</div>
  73. \t\t\t\t</div>
  74. \t\t\t</div>
  75. \t\t</div>
  76. \t\t<div id=\"hero-footer\">
  77. \t\t\t<div class=\"hero-footer-right\">
  78. \t\t\t\t<div class=\"button-wrap right scroll-down\">
  79. \t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
  80. \t\t\t\t\t\t<div class=\"button-icon parallax-element\">
  81. \t\t\t\t\t\t\t<i class=\"fa fa-angle-down\"></i>
  82. \t\t\t\t\t\t</div>
  83. \t\t\t\t\t</div>
  84. \t\t\t\t\t<div class=\"button-text sticky right\">
  85. \t\t\t\t\t\t<span data-hover=\"Scroll Down\">Scroll Down</span>
  86. \t\t\t\t\t</div>
  87. \t\t\t\t</div>
  88. \t\t\t</div>
  89. \t\t</div>
  90. \t\t<div id=\"hero-description\" class=\"content-max-width\">
  91. \t\t\t<div class=\"inner\">
  92. \t\t\t\t<div class=\"one_half\"></div>
  93. \t\t\t\t<div class=\"one_half last\">
  94. \t\t\t\t\t<div class=\"hero-text\">
  95. \t\t\t\t\t\t<p>
  96. \t\t\t\t\t\t\t<span>";
  97.         // line 48
  98.         yield Twig\Extension\CoreExtension::nl2br($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""HeroDescription", ["placeholder" => "Hero Description"]));
  99.         // line 50
  100.         yield "
  101. \t\t\t\t\t\t\t</span>
  102. \t\t\t\t\t\t</p>
  103. \t\t\t\t\t</div>
  104. \t\t\t\t\t<br />
  105. \t\t\t\t\t";
  106.         // line 56
  107.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'56$this->source); })())) {
  108.             // line 57
  109.             yield "
  110. \t\t\t\t\t";
  111.             // line 58
  112.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""ReadMoreLink");
  113.             yield "
  114. \t\t\t\t\t";
  115.         } else {
  116.             // line 60
  117.             yield "\t\t\t\t\t";
  118.             $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""ReadMoreLink");
  119.             // line 61
  120.             yield "\t\t\t\t\t";
  121.             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"falsefalsetrue61) != "")) {
  122.                 // line 62
  123.                 yield "\t\t\t\t\t<div class=\"button-wrap right button-link large-btn has-animation\">
  124. \t\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
  125. \t\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
  126. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-arrow-right\"></i>
  127. \t\t\t\t\t\t\t</div>
  128. \t\t\t\t\t\t</div>
  129. \t\t\t\t\t\t<a class=\"ajax-link\" href=\"";
  130.                 // line 72
  131.                 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"falsefalsetrue72), 72$this->source), "html"nulltrue);
  132.                 yield "\" data-type=\"page-transition\">
  133. \t\t\t\t\t\t\t<div class=\"button-text sticky right\">
  134. \t\t\t\t\t\t\t\t<span data-hover=\"Read More\">";
  135.                 // line 74
  136.                 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"falsefalsetrue74), 74$this->source), "html"nulltrue);
  137.                 yield "</span>
  138. \t\t\t\t\t\t\t</div>
  139. \t\t\t\t\t\t</a>
  140. \t\t\t\t\t</div>
  141. \t\t\t\t\t";
  142.             }
  143.             // line 80
  144.             yield "\t\t\t\t\t";
  145.         }
  146.         // line 81
  147.         yield "\t\t\t\t</div>
  148. \t\t\t</div>
  149. \t\t</div>
  150. \t</div>
  151. </div>
  152. ";
  153.         // line 87
  154.         $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"]);
  155.         // line 98
  156.         $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"falsefalsetrue98);
  157.         // line 99
  158.         yield "
  159. ";
  160.         // line 100
  161.         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); })()) == ""))) {
  162.             // line 101
  163.             $context["option"] = "Image";
  164.         }
  165.         // line 103
  166.         yield "
  167. ";
  168.         // line 104
  169.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'104$this->source); })())) {
  170.             // line 105
  171.             yield "<div class=\"mb-3 videoImageselect\">
  172. \t<span class=\"editmode-label align-middle \">Options:</span>
  173. \t";
  174.             // line 107
  175.             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);
  176.             yield "
  177. </div>
  178. ";
  179.         }
  180.         // line 110
  181.         yield "
  182. ";
  183.         // line 112
  184.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'112$this->source); })())) {
  185.             // line 113
  186.             if (((isset($context["option"]) || array_key_exists("option"$context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.'113$this->source); })()) == "Video")) {
  187.                 // line 114
  188.                 yield "
  189. ";
  190.                 // line 115
  191.                 yield " Desktop Video ";
  192.                 yield "
  193. ";
  194.                 // line 116
  195.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideo", ["width" => 500"height" => 250]);
  196.                 // line 120
  197.                 yield "
  198. </br></br></br>
  199. ";
  200.                 // line 124
  201.                 yield " Mobile Video ";
  202.                 yield "
  203. ";
  204.                 // line 126
  205.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideoMobile", ["width" => 300"height" => 500]);
  206.                 // line 130
  207.                 yield "
  208. ";
  209.             } else {
  210.                 // line 132
  211.                 yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImage", ["thumbnail" => """title" => "Drag spotlight banner image here"]);
  212.                 // line 138
  213.                 yield "
  214. ";
  215.             }
  216.             // line 140
  217.             yield "
  218. ";
  219.         }
  220.         // line 142
  221.         yield "<div id=\"hero-image-wrapper\">
  222. \t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  223. \t\t";
  224.         // line 145
  225.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'145$this->source); })())) {
  226.             // line 146
  227.             yield "\t\t";
  228.             if (((isset($context["option"]) || array_key_exists("option"$context) ? $context["option"] : (function () { throw new RuntimeError('Variable "option" does not exist.'146$this->source); })()) == "Image")) {
  229.                 // line 147
  230.                 yield "
  231. \t\t<div id=\"hero-bg-image\" style=\"background-image: url(";
  232.                 // line 148
  233.                 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"falsefalsetrue148), 148$this->source), "html"nulltrue);
  234.                 yield ")\"></div>
  235. \t\t";
  236.             } else {
  237.                 // line 150
  238.                 yield "\t\t<div id=\"hero-bg-image\">
  239. \t\t\t";
  240.                 // line 151
  241.                 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"falsefalsetrue151)) {
  242.                     // line 152
  243.                     yield "\t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
  244. \t\t\t\tposter=\"";
  245.                     // line 153
  246.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideoMobile"), "getData", [], "method"falsefalsetrue153), "poster", [], "any"falsefalsetrue153), 153$this->source), "html"nulltrue);
  247.                     yield "\">
  248. \t\t\t\t<source src=\"";
  249.                     // line 154
  250.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideoMobile"), "getData", [], "method"falsefalsetrue154), "path", [], "any"falsefalsetrue154), 154$this->source), "html"nulltrue);
  251.                     yield "\" type=\"video/mp4\" />
  252. \t\t\t</video>
  253. \t\t\t";
  254.                 } else {
  255.                     // line 158
  256.                     yield "
  257. \t\t\t";
  258.                     // line 173
  259.                     yield "
  260. \t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
  261. \t\t\t\tposter=\"";
  262.                     // line 175
  263.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideo"), "getData", [], "method"falsefalsetrue175), "poster", [], "any"falsefalsetrue175), 175$this->source), "html"nulltrue);
  264.                     yield "\">
  265. \t\t\t\t<source src=\"";
  266.                     // line 176
  267.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""spotlightVideo"), "getData", [], "method"falsefalsetrue176), "path", [], "any"falsefalsetrue176), 176$this->source), "html"nulltrue);
  268.                     yield "\" type=\"video/mp4\" />
  269. \t\t\t</video>
  270. \t\t\t";
  271.                 }
  272.                 // line 180
  273.                 yield "\t\t</div>
  274. \t\t";
  275.             }
  276.             // line 182
  277.             yield "\t\t";
  278.         }
  279.         // line 183
  280.         yield "
  281. \t</div>
  282. </div>
  283. <!--/Hero Section -->";
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.         
  287.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  288.         return; yield '';
  289.     }
  290.     /**
  291.      * @codeCoverageIgnore
  292.      */
  293.     public function getTemplateName()
  294.     {
  295.         return "areas/portal-banner/view.html.twig";
  296.     }
  297.     /**
  298.      * @codeCoverageIgnore
  299.      */
  300.     public function isTraitable()
  301.     {
  302.         return false;
  303.     }
  304.     /**
  305.      * @codeCoverageIgnore
  306.      */
  307.     public function getDebugInfo()
  308.     {
  309.         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,);
  310.     }
  311.     public function getSourceContext()
  312.     {
  313.         return new Source("<!-- Hero Section -->
  314. {% set device = pimcore_device('desktop') %}
  315. <div id=\"hero\" class=\"has-image extra-background-topHome\">
  316. \t<div id=\"hero-styles\">
  317. \t\t<div id=\"hero-caption\" class=\"content-max-width\">
  318. \t\t\t<div class=\"inner\">
  319. \t\t\t\t<!-- <div class=\"hero-arrow\"><i class=\"arrow-icon\"></i></div> -->
  320. \t\t\t\t<!-- <div class=\"hero-subtitle\">
  321. \t\t\t\t\t                        <span>Digital</span><span>Creative Agency</span>
  322. \t\t\t\t\t                      </div> -->
  323. \t\t\t\t<div class=\"hero-title-wrapper\">
  324. \t\t\t\t\t<div class=\"hero-title\">
  325. \t\t\t\t\t\t{% if editmode %}
  326. \t\t\t\t\t\t{{pimcore_textarea('HeroTitle',{
  327. \t\t\t\t\t\t\"placeholder\":\"Hero Title\"
  328. \t\t\t\t\t\t})}}
  329. \t\t\t\t\t\t{% else %}
  330. \t\t\t\t\t\t<h1>
  331. \t\t\t\t\t\t\t{{pimcore_textarea('HeroTitle').getText() | raw}}</h1>
  332. \t\t\t\t\t\t{% endif %}
  333. \t\t\t\t\t</div>
  334. \t\t\t\t</div>
  335. \t\t\t</div>
  336. \t\t</div>
  337. \t\t<div id=\"hero-footer\">
  338. \t\t\t<div class=\"hero-footer-right\">
  339. \t\t\t\t<div class=\"button-wrap right scroll-down\">
  340. \t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
  341. \t\t\t\t\t\t<div class=\"button-icon parallax-element\">
  342. \t\t\t\t\t\t\t<i class=\"fa fa-angle-down\"></i>
  343. \t\t\t\t\t\t</div>
  344. \t\t\t\t\t</div>
  345. \t\t\t\t\t<div class=\"button-text sticky right\">
  346. \t\t\t\t\t\t<span data-hover=\"Scroll Down\">Scroll Down</span>
  347. \t\t\t\t\t</div>
  348. \t\t\t\t</div>
  349. \t\t\t</div>
  350. \t\t</div>
  351. \t\t<div id=\"hero-description\" class=\"content-max-width\">
  352. \t\t\t<div class=\"inner\">
  353. \t\t\t\t<div class=\"one_half\"></div>
  354. \t\t\t\t<div class=\"one_half last\">
  355. \t\t\t\t\t<div class=\"hero-text\">
  356. \t\t\t\t\t\t<p>
  357. \t\t\t\t\t\t\t<span>{{pimcore_textarea('HeroDescription',{
  358. \t\t\t\t\t\t\t\t\"placeholder\":\"Hero Description\"
  359. \t\t\t\t\t\t\t\t})|nl2br}}
  360. \t\t\t\t\t\t\t</span>
  361. \t\t\t\t\t\t</p>
  362. \t\t\t\t\t</div>
  363. \t\t\t\t\t<br />
  364. \t\t\t\t\t{% if editmode %}
  365. \t\t\t\t\t{{pimcore_link('ReadMoreLink')}}
  366. \t\t\t\t\t{% else %}
  367. \t\t\t\t\t{% set link = pimcore_link('ReadMoreLink') %}
  368. \t\t\t\t\t{% if link.getText() != \"\" %}
  369. \t\t\t\t\t<div class=\"button-wrap right button-link large-btn has-animation\">
  370. \t\t\t\t\t\t<div class=\"icon-wrap parallax-wrap\">
  371. \t\t\t\t\t\t\t<div class=\"button-icon parallax-element\">
  372. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-arrow-right\"></i>
  373. \t\t\t\t\t\t\t</div>
  374. \t\t\t\t\t\t</div>
  375. \t\t\t\t\t\t<a class=\"ajax-link\" href=\"{{link.getHref()}}\" data-type=\"page-transition\">
  376. \t\t\t\t\t\t\t<div class=\"button-text sticky right\">
  377. \t\t\t\t\t\t\t\t<span data-hover=\"Read More\">{{link.getText()}}</span>
  378. \t\t\t\t\t\t\t</div>
  379. \t\t\t\t\t\t</a>
  380. \t\t\t\t\t</div>
  381. \t\t\t\t\t{% endif %}
  382. \t\t\t\t\t{% endif %}
  383. \t\t\t\t</div>
  384. \t\t\t</div>
  385. \t\t</div>
  386. \t</div>
  387. </div>
  388. {% set select_option = pimcore_select(\"valid_for\", {
  389. width: 110,
  390. reload: true,
  391. store: [
  392. [\"Image\", \"Image\"],
  393. [\"Video\", \"Video\"]
  394. ],
  395. class: 'align-middle'
  396. })
  397. %}
  398. {% set option = select_option.getData() %}
  399. {% if option is empty or option == '' %}
  400. {% set option = 'Image' %}
  401. {% endif %}
  402. {% if editmode %}
  403. <div class=\"mb-3 videoImageselect\">
  404. \t<span class=\"editmode-label align-middle \">Options:</span>
  405. \t{{ select_option|raw }}
  406. </div>
  407. {% endif %}
  408. {% if editmode %}
  409. {% if option == \"Video\" %}
  410. {{\" Desktop Video \"}}
  411. {{ pimcore_video('spotlightVideo' ,{
  412. width:500,
  413. height:250,
  414. })
  415. }}
  416. </br></br></br>
  417. {{\" Mobile Video \"}}
  418. {{ pimcore_video('spotlightVideoMobile' ,{
  419. width:300,
  420. height:500,
  421. })
  422. }}
  423. {% else %}
  424. {{ pimcore_image(\"myImage\",
  425. {
  426. thumbnail: '',
  427. \"title\": \"Drag spotlight banner image here\",
  428. }
  429. ) }}
  430. {% endif %}
  431. {% endif %}
  432. <div id=\"hero-image-wrapper\">
  433. \t<div id=\"hero-background-layer\" class=\"parallax-scroll-image\">
  434. \t\t{% if not editmode %}
  435. \t\t{% if option == 'Image' %}
  436. \t\t<div id=\"hero-bg-image\" style=\"background-image: url({{ pimcore_image('myImage').getSrc() }})\"></div>
  437. \t\t{% else %}
  438. \t\t<div id=\"hero-bg-image\">
  439. \t\t\t{% if device.isPhone() %}
  440. \t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
  441. \t\t\t\tposter=\"{{ pimcore_video('spotlightVideoMobile').getData().poster }}\">
  442. \t\t\t\t<source src=\"{{ pimcore_video('spotlightVideoMobile').getData().path }}\" type=\"video/mp4\" />
  443. \t\t\t</video>
  444. \t\t\t{% else %}
  445. \t\t\t{# {{ pimcore_video('spotlightVideo', {
  446. \t\t\tthumbnail: 'content',
  447. \t\t\tattributes: {
  448. \t\t\t'controls': '',
  449. \t\t\t'autoplay':'true',
  450. \t\t\t'loop':'true',
  451. \t\t\t'muted':'',
  452. \t\t\t'preload': 'auto',
  453. \t\t\t'playsinline':'true',
  454. \t\t\t'class': '',
  455. \t\t\t'id':'centricSpotlight',
  456. \t\t\t}
  457. \t\t\t})
  458. \t\t\t}} #}
  459. \t\t\t<video autoplay muted loop playsinline id=\"centricSpotlight\"
  460. \t\t\t\tposter=\"{{ pimcore_video('spotlightVideo').getData().poster }}\">
  461. \t\t\t\t<source src=\"{{ pimcore_video('spotlightVideo').getData().path }}\" type=\"video/mp4\" />
  462. \t\t\t</video>
  463. \t\t\t{% endif %}
  464. \t\t</div>
  465. \t\t{% endif %}
  466. \t\t{% endif %}
  467. \t</div>
  468. </div>
  469. <!--/Hero Section -->""areas/portal-banner/view.html.twig""/var/www/html/templates/areas/portal-banner/view.html.twig");
  470.     }
  471.     
  472.     public function checkSecurity()
  473.     {
  474.         static $tags = array("set" => 2"if" => 13);
  475.         static $filters = array("raw" => 19"nl2br" => 50"escape" => 72);
  476.         static $functions = array("pimcore_device" => 2"pimcore_textarea" => 14"pimcore_link" => 58"pimcore_select" => 87"pimcore_video" => 116"pimcore_image" => 132);
  477.         try {
  478.             $this->sandbox->checkSecurity(
  479.                 ['set''if'],
  480.                 ['raw''nl2br''escape'],
  481.                 ['pimcore_device''pimcore_textarea''pimcore_link''pimcore_select''pimcore_video''pimcore_image'],
  482.                 $this->source
  483.             );
  484.         } catch (SecurityError $e) {
  485.             $e->setSourceContext($this->source);
  486.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  487.                 $e->setTemplateLine($tags[$e->getTagName()]);
  488.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  489.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  490.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  491.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  492.             }
  493.             throw $e;
  494.         }
  495.     }
  496. }