var/cache/dev/api-edenwork.dtv-projects.com/twig/fd/fdd971b4d207a07d1499525dfbef032a.php line 126

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. /* platform/component/organism/theme_default_security_header.html.twig */
  15. class __TwigTemplate_eb15684c10aa9add3733a4e1d1fb9a95 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. }
  27. protected function doDisplay(array $context, array $blocks = [])
  28. {
  29. $macros = $this->macros;
  30. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/component/organism/theme_default_security_header.html.twig"));
  32. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/component/organism/theme_default_security_header.html.twig"));
  34. // line 1
  35. if ( !array_key_exists("componentKey", $context)) {
  36. // line 2
  37. yield " ";
  38. $context["componentKey"] = "theme_default_security_header";
  39. }
  40. // line 4
  41. yield "
  42. <div id=\"security-background\"
  43. class=\"position-fixed w-100 vh-100";
  44. // line 7
  45. if ( !(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 7, $this->source); })()), "background", [], "any", false, false, false, 7), "class", [], "any", false, false, false, 7) === "")) {
  46. yield " ";
  47. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 7, $this->source); })()), "background", [], "any", false, false, false, 7), "class", [], "any", false, false, false, 7), "html", null, true);
  48. }
  49. yield "\"
  50. style=\"z-index: -5;";
  51. // line 8
  52. if (!CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "image", [], "any", false, false, false, 8), [null, ""])) {
  53. yield "background-image: url(";
  54. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "image", [], "any", false, false, false, 8)]), "html", null, true);
  55. yield ");";
  56. }
  57. yield " ";
  58. if ( !(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "color", [], "any", false, false, false, 8) === null)) {
  59. yield "background-color: ";
  60. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "color", [], "any", false, false, false, 8), "html", null, true);
  61. yield ";";
  62. }
  63. yield "\"
  64. >
  65. </div>
  66. <header class=\"security-header";
  67. // line 13
  68. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 13)) {
  69. yield " ";
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 13, $this->source); })()), "class", [], "any", false, false, false, 13), "html", null, true);
  71. yield " ";
  72. }
  73. yield "\">
  74. ";
  75. // line 14
  76. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 14)) {
  77. // line 15
  78. yield " <div class=\"";
  79. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 15, $this->source); })()), "container", [], "any", false, false, false, 15), "html", null, true);
  80. yield "\">
  81. ";
  82. }
  83. // line 17
  84. yield " ";
  85. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "banner", [], "any", true, true, false, 17) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 17, $this->source); })()), "banner", [], "any", false, false, false, 17), "enabled", [], "any", false, false, false, 17))) {
  86. // line 18
  87. yield " <div class=\"security-header-banner\">
  88. <img src=\"";
  89. // line 19
  90. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 19, $this->source); })()), "banner", [], "any", false, false, false, 19), "url", [], "any", false, false, false, 19)]), "html", null, true);
  91. yield "\"
  92. alt=\"";
  93. // line 20
  94. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 20, $this->source); })()), "banner", [], "any", false, false, false, 20), "alt", [], "any", false, false, false, 20));
  95. yield "\"
  96. class=\" img-fluid ";
  97. // line 21
  98. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "banner", [], "any", false, true, false, 21), "class", [], "any", true, true, false, 21)) {
  99. yield " ";
  100. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 21, $this->source); })()), "banner", [], "any", false, false, false, 21), "class", [], "any", false, false, false, 21), "html", null, true);
  101. }
  102. yield "\">
  103. </div>
  104. ";
  105. }
  106. // line 24
  107. yield " ";
  108. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "logo", [], "any", true, true, false, 24) && !CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 24, $this->source); })()), "logo", [], "any", false, false, false, 24), "url", [], "any", false, false, false, 24), [null, ""]))) {
  109. // line 25
  110. yield " ";
  111. $context["logo_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 25, $this->source); })()), "logo", [], "any", false, false, false, 25), ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 25, $this->source); })()) . ".logo"));
  112. // line 26
  113. yield " ";
  114. if ($this->env->getRuntime('App\Twig\Runtime\AclRuntime')->canDisplayComponentByAcl((isset($context["logo_config"]) || array_key_exists("logo_config", $context) ? $context["logo_config"] : (function () { throw new RuntimeError('Variable "logo_config" does not exist.', 26, $this->source); })()))) {
  115. // line 27
  116. yield " <img src=\"";
  117. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 27, $this->source); })()), "logo", [], "any", false, false, false, 27), "url", [], "any", false, false, false, 27)]), "html", null, true);
  118. yield "\"
  119. alt=\"";
  120. // line 28
  121. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 28, $this->source); })()), "logo", [], "any", false, false, false, 28), "alt", [], "any", false, false, false, 28));
  122. yield "\"
  123. class=\"logo";
  124. // line 29
  125. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "logo", [], "any", false, true, false, 29), "class", [], "any", true, true, false, 29)) {
  126. yield " ";
  127. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 29, $this->source); })()), "logo", [], "any", false, false, false, 29), "class", [], "any", false, false, false, 29), "html", null, true);
  128. }
  129. yield "\">
  130. ";
  131. }
  132. // line 31
  133. yield "
  134. ";
  135. }
  136. // line 33
  137. yield " ";
  138. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "sub_title", [], "any", true, true, false, 33)) {
  139. // line 34
  140. yield " ";
  141. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 34, $this->source); })()), "sub_title", [], "any", false, false, false, 34), "enabled", [], "any", false, false, false, 34)) {
  142. // line 35
  143. yield " <div class=\"";
  144. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 35, $this->source); })()), "sub_title", [], "any", false, false, false, 35), "class", [], "any", false, false, false, 35)) {
  145. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 35, $this->source); })()), "sub_title", [], "any", false, false, false, 35), "class", [], "any", false, false, false, 35), "html", null, true);
  146. }
  147. yield "\">
  148. ";
  149. // line 36
  150. yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 36, $this->source); })()), "sub_title", [], "any", false, false, false, 36), "content", [], "any", false, false, false, 36);
  151. yield "
  152. </div>
  153. ";
  154. }
  155. // line 39
  156. yield " ";
  157. }
  158. // line 40
  159. yield " ";
  160. if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 40)) {
  161. // line 41
  162. yield " </div>
  163. ";
  164. }
  165. // line 43
  166. yield "</header>
  167. ";
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170. return; yield '';
  171. }
  172. /**
  173. * @codeCoverageIgnore
  174. */
  175. public function getTemplateName()
  176. {
  177. return "platform/component/organism/theme_default_security_header.html.twig";
  178. }
  179. /**
  180. * @codeCoverageIgnore
  181. */
  182. public function isTraitable()
  183. {
  184. return false;
  185. }
  186. /**
  187. * @codeCoverageIgnore
  188. */
  189. public function getDebugInfo()
  190. {
  191. return array ( 178 => 43, 174 => 41, 171 => 40, 168 => 39, 162 => 36, 155 => 35, 152 => 34, 149 => 33, 145 => 31, 137 => 29, 133 => 28, 128 => 27, 125 => 26, 122 => 25, 119 => 24, 110 => 21, 106 => 20, 102 => 19, 99 => 18, 96 => 17, 90 => 15, 88 => 14, 80 => 13, 62 => 8, 55 => 7, 50 => 4, 46 => 2, 44 => 1,);
  192. }
  193. public function getSourceContext()
  194. {
  195. return new Source("{% if componentKey is not defined %}
  196. {% set componentKey = \"theme_default_security_header\" %}
  197. {% endif %}
  198. <div id=\"security-background\"
  199. class=\"position-fixed w-100 vh-100{% if value.background.class is not same as(\"\") %} {{ value.background.class }}{% endif %}\"
  200. style=\"z-index: -5;{% if value.background.image not in [null ,''] %}background-image: url({{ path('static_project_file', {'fileName': value.background.image}) }});{% endif %} {% if value.background.color is not same as(null) %}background-color: {{value.background.color}};{% endif %}\"
  201. >
  202. </div>
  203. <header class=\"security-header{% if value.class is defined %} {{ value.class }} {% endif %}\">
  204. {% if value.container is defined %}
  205. <div class=\"{{ value.container }}\">
  206. {% endif %}
  207. {% if value.banner is defined and value.banner.enabled %}
  208. <div class=\"security-header-banner\">
  209. <img src=\"{{ path('static_project_file', {'fileName': value.banner.url}) }}\"
  210. alt=\"{{ value.banner.alt|trans }}\"
  211. class=\" img-fluid {% if value.banner.class is defined %} {{ value.banner.class }}{% endif %}\">
  212. </div>
  213. {% endif %}
  214. {% if value.logo is defined and value.logo.url not in [null ,''] %}
  215. {% set logo_config = generateComponentOptions(value.logo, componentKey ~'.logo')%}
  216. {% if canDisplayComponentByAcl( logo_config) %}
  217. <img src=\"{{ path('static_project_file', {'fileName': value.logo.url}) }}\"
  218. alt=\"{{ value.logo.alt|trans }}\"
  219. class=\"logo{% if value.logo.class is defined %} {{ value.logo.class }}{% endif %}\">
  220. {% endif %}
  221. {% endif %}
  222. {% if value.sub_title is defined %}
  223. {% if value.sub_title.enabled %}
  224. <div class=\"{% if value.sub_title.class %}{{ value.sub_title.class }}{% endif %}\">
  225. {{ value.sub_title.content|raw }}
  226. </div>
  227. {% endif %}
  228. {% endif %}
  229. {% if value.container is defined %}
  230. </div>
  231. {% endif %}
  232. </header>
  233. ", "platform/component/organism/theme_default_security_header.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/organism/theme_default_security_header.html.twig");
  234. }
  235. }