c900e684ce7966574d1030e7eefc81ed169a3b7d67555113b4ac3ac9351c8f75.php 3.9 KB

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