6YHMxgHIweqU87kZrnobl0e1hX_kwfkJA4KzkEbBDE0.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Markup;
  6. use Twig\Sandbox\SecurityError;
  7. use Twig\Sandbox\SecurityNotAllowedTagError;
  8. use Twig\Sandbox\SecurityNotAllowedFilterError;
  9. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  10. use Twig\Source;
  11. use Twig\Template;
  12. /* themes/custom/popsu_colloque/template/block/block--mainpagecontent.html.twig */
  13. class __TwigTemplate_80c8e4feeacb9fefc4e2091e76c55cfbaa6ecc6148939c1bb3c304237bdf00ab extends \Twig\Template
  14. {
  15. public function __construct(Environment $env)
  16. {
  17. parent::__construct($env);
  18. $this->parent = false;
  19. $this->blocks = [
  20. 'content' => [$this, 'block_content'],
  21. ];
  22. $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  23. $tags = ["set" => 31, "if" => 33, "block" => 48];
  24. $filters = ["escape" => 38];
  25. $functions = [];
  26. try {
  27. $this->sandbox->checkSecurity(
  28. ['set', 'if', 'block'],
  29. ['escape'],
  30. []
  31. );
  32. } catch (SecurityError $e) {
  33. $e->setSourceContext($this->getSourceContext());
  34. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  35. $e->setTemplateLine($tags[$e->getTagName()]);
  36. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  37. $e->setTemplateLine($filters[$e->getFilterName()]);
  38. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  39. $e->setTemplateLine($functions[$e->getFunctionName()]);
  40. }
  41. throw $e;
  42. }
  43. }
  44. protected function doDisplay(array $context, array $blocks = [])
  45. {
  46. // line 30
  47. echo "
  48. ";
  49. // line 31
  50. $context["class"] = $this->getAttribute($this->getAttribute($this->getAttribute([0 => ($context["elements"] ?? null)], 0, [], "array"), "content", []), "#view_id", [], "array");
  51. // line 32
  52. echo "
  53. ";
  54. // line 33
  55. if ((((($context["class"] ?? null) == "programme") || (($context["class"] ?? null) == "publications")) || (($context["class"] ?? null) == "bibliographie"))) {
  56. // line 34
  57. echo " ";
  58. $context["addClass"] = "container";
  59. }
  60. // line 36
  61. echo "
  62. <div class=\"";
  63. // line 38
  64. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["class"] ?? null)), "html", null, true);
  65. echo " ";
  66. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["addClass"] ?? null)), "html", null, true);
  67. echo "\">
  68. ";
  69. // line 40
  70. if ((($context["class"] ?? null) == "programme")) {
  71. // line 41
  72. echo " ";
  73. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_prefix"] ?? null)), "html", null, true);
  74. echo "
  75. ";
  76. // line 42
  77. if (($context["label"] ?? null)) {
  78. // line 43
  79. echo " <h2";
  80. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_attributes"] ?? null)), "html", null, true);
  81. echo ">";
  82. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["label"] ?? null)), "html", null, true);
  83. echo "</h2>
  84. ";
  85. }
  86. }
  87. // line 46
  88. echo "
  89. ";
  90. // line 47
  91. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_suffix"] ?? null)), "html", null, true);
  92. echo "
  93. ";
  94. // line 48
  95. $this->displayBlock('content', $context, $blocks);
  96. }
  97. public function block_content($context, array $blocks = [])
  98. {
  99. // line 49
  100. echo " ";
  101. echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["content"] ?? null)), "html", null, true);
  102. echo "
  103. ";
  104. }
  105. public function getTemplateName()
  106. {
  107. return "themes/custom/popsu_colloque/template/block/block--mainpagecontent.html.twig";
  108. }
  109. public function isTraitable()
  110. {
  111. return false;
  112. }
  113. public function getDebugInfo()
  114. {
  115. return array ( 112 => 49, 106 => 48, 102 => 47, 99 => 46, 90 => 43, 88 => 42, 83 => 41, 81 => 40, 74 => 38, 70 => 36, 66 => 34, 64 => 33, 61 => 32, 59 => 31, 56 => 30,);
  116. }
  117. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  118. public function getSource()
  119. {
  120. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  121. return $this->getSourceContext()->getCode();
  122. }
  123. public function getSourceContext()
  124. {
  125. return new Source("", "themes/custom/popsu_colloque/template/block/block--mainpagecontent.html.twig", "/var/www/html/web/themes/custom/popsu_colloque/template/block/block--mainpagecontent.html.twig");
  126. }
  127. }