f66ceec93dc9e6bc47780ce2db3d513899132edcd675cfd4ddb7fdd45329a6bd.php 4.1 KB

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