var/cache/dev/boutique-cadeaux-nicoll.dtv-projects.com/twig/85/85a1f8e23498a7bc5e93d0d7f5ae9cf3.php line 65

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. /* @component/_template/_atom_wrapper.html.twig */
  16. class __TwigTemplate_9d6fe23a5ec13db97d1a5f373d4c8369 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. 'atom' => [$this, 'block_atom'],
  30. ];
  31. }
  32. protected function doDisplay(array $context, array $blocks = []): iterable
  33. {
  34. $macros = $this->macros;
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/_template/_atom_wrapper.html.twig"));
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@component/_template/_atom_wrapper.html.twig"));
  39. // line 1
  40. $macros["͜macros"] = $this->macros["͜macros"] = $this->load("@component/_template/_html_macro.html.twig", 1)->unwrap();
  41. // line 2
  42. if ((($tmp = !array_key_exists("atom_key", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  43. // line 3
  44. yield " ";
  45. $context["atom_key"] = "";
  46. }
  47. // line 5
  48. yield "
  49. ";
  50. // line 6
  51. $context["atom_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateAtomOptions((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 6, $this->source); })()), (isset($context["atom_key"]) || array_key_exists("atom_key", $context) ? $context["atom_key"] : (function () { throw new RuntimeError('Variable "atom_key" does not exist.', 6, $this->source); })()));
  52. // line 7
  53. yield "
  54. ";
  55. // line 8
  56. if ((($tmp = $this->env->getRuntime('App\Twig\Runtime\AclRuntime')->canDisplayComponentByAcl((isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 8, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  57. // line 9
  58. yield "
  59. ";
  60. // line 10
  61. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentStart", $context, 10, $this->getSourceContext())->macro_generateHtmlComponentStart(...[(isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 10, $this->source); })())]);
  62. yield "
  63. ";
  64. // line 11
  65. yield from $this->unwrap()->yieldBlock('atom', $context, $blocks);
  66. // line 12
  67. yield " ";
  68. yield $macros["͜macros"]->getTemplateForMacro("macro_generateHtmlComponentEnd", $context, 12, $this->getSourceContext())->macro_generateHtmlComponentEnd(...[(isset($context["atom_config"]) || array_key_exists("atom_config", $context) ? $context["atom_config"] : (function () { throw new RuntimeError('Variable "atom_config" does not exist.', 12, $this->source); })())]);
  69. yield "
  70. ";
  71. }
  72. // line 15
  73. yield "
  74. ";
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77. yield from [];
  78. }
  79. // line 11
  80. /**
  81. * @return iterable<null|scalar|\Stringable>
  82. */
  83. public function block_atom(array $context, array $blocks = []): iterable
  84. {
  85. $macros = $this->macros;
  86. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  88. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "atom"));
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. yield from [];
  93. }
  94. /**
  95. * @codeCoverageIgnore
  96. */
  97. public function getTemplateName(): string
  98. {
  99. return "@component/_template/_atom_wrapper.html.twig";
  100. }
  101. /**
  102. * @codeCoverageIgnore
  103. */
  104. public function isTraitable(): bool
  105. {
  106. return false;
  107. }
  108. /**
  109. * @codeCoverageIgnore
  110. */
  111. public function getDebugInfo(): array
  112. {
  113. return array ( 95 => 11, 83 => 15, 76 => 12, 74 => 11, 70 => 10, 67 => 9, 65 => 8, 62 => 7, 60 => 6, 57 => 5, 53 => 3, 51 => 2, 49 => 1,);
  114. }
  115. public function getSourceContext(): Source
  116. {
  117. return new Source("{% import \"@component/_template/_html_macro.html.twig\" as macros %}
  118. {% if atom_key is not defined %}
  119. {% set atom_key = '' %}
  120. {% endif %}
  121. {% set atom_config = generateAtomOptions(value, atom_key) %}
  122. {% if canDisplayComponentByAcl( atom_config) %}
  123. {{ macros.generateHtmlComponentStart(atom_config) }}
  124. {% block atom %}{% endblock atom %}
  125. {{ macros.generateHtmlComponentEnd(atom_config) }}
  126. {% endif %}
  127. ", "@component/_template/_atom_wrapper.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/_template/_atom_wrapper.html.twig");
  128. }
  129. }