var/cache/dev/top-intuis-thermo.dtv-projects.com/twig/67/67c95edacd82d88751e5e5868bbbdeff.php line 38

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