c7982d74853bf295cdf3023e53e5a1a9b796c507d0aa1caeef0542163787fd12.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. /* modular/contenu.html.twig */
  3. class __TwigTemplate_1ea9829bb60382c073b92f630096beaadc28e1d2892df60dab30b41479619a22 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. 'content' => array($this, 'block_content'),
  11. );
  12. }
  13. protected function doDisplay(array $context, array $blocks = array())
  14. {
  15. // line 2
  16. echo "
  17. ";
  18. // line 3
  19. $this->displayBlock('content', $context, $blocks);
  20. }
  21. public function block_content($context, array $blocks = array())
  22. {
  23. // line 4
  24. echo "
  25. <h2>";
  26. // line 5
  27. echo $this->getAttribute(($context["header"] ?? null), "title", array());
  28. echo "</h2>
  29. ";
  30. // line 7
  31. echo $this->getAttribute(($context["page"] ?? null), "content", array());
  32. echo "
  33. ";
  34. // line 8
  35. $context['_parent'] = $context;
  36. $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
  37. foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  38. // line 9
  39. echo "
  40. <div id=\"";
  41. // line 10
  42. echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
  43. echo "\" class=\"column\">
  44. ";
  45. // line 11
  46. echo $this->getAttribute($context["module"], "content", array());
  47. echo "
  48. </div>
  49. ";
  50. }
  51. $_parent = $context['_parent'];
  52. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  53. $context = array_intersect_key($context, $_parent) + $_parent;
  54. // line 14
  55. echo " ";
  56. }
  57. // line 1
  58. public function getpageLinkName($__text__ = null, ...$__varargs__)
  59. {
  60. $context = $this->env->mergeGlobals(array(
  61. "text" => $__text__,
  62. "varargs" => $__varargs__,
  63. ));
  64. $blocks = array();
  65. ob_start();
  66. try {
  67. echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
  68. } catch (Exception $e) {
  69. ob_end_clean();
  70. throw $e;
  71. } catch (Throwable $e) {
  72. ob_end_clean();
  73. throw $e;
  74. }
  75. return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  76. }
  77. public function getTemplateName()
  78. {
  79. return "modular/contenu.html.twig";
  80. }
  81. public function isTraitable()
  82. {
  83. return false;
  84. }
  85. public function getDebugInfo()
  86. {
  87. return array ( 65 => 1, 61 => 14, 52 => 11, 48 => 10, 45 => 9, 41 => 8, 37 => 7, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
  88. }
  89. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  90. public function getSource()
  91. {
  92. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  93. return $this->getSourceContext()->getCode();
  94. }
  95. public function getSourceContext()
  96. {
  97. return new Twig_Source("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
  98. {% block content %}
  99. <h2>{{ header.title }}</h2>
  100. {{ page.content }}
  101. {% for module in page.collection() %}
  102. <div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"column\">
  103. {{ module.content }}
  104. </div>
  105. {% endfor %}
  106. {% endblock %}
  107. ", "modular/contenu.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu.html.twig");
  108. }
  109. }