123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?php
- /* modular/contenu-multi.html.twig */
- class __TwigTemplate_83a702e09f78554671a4f38660f45595c72d2ef8dee6811096a2ddb1a0567cb8 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = false;
- $this->blocks = array(
- 'content' => array($this, 'block_content'),
- );
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 2
- echo "
- ";
- // line 3
- $this->displayBlock('content', $context, $blocks);
- }
- public function block_content($context, array $blocks = array())
- {
- // line 4
- echo " <div class=\"multi-column\">
- <h2>";
- // line 5
- echo $this->getAttribute(($context["header"] ?? null), "title", array());
- echo "</h2>
- ";
- // line 6
- echo $this->getAttribute(($context["page"] ?? null), "content", array());
- echo "
- </div>
- ";
- // line 8
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "collection", array(), "method"));
- foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
- // line 9
- echo " <div id=\"";
- echo $this->getAttribute($this, "pageLinkName", array(0 => $this->getAttribute($context["module"], "folder", array())), "method");
- echo "\" class=\"mutli-column\">
- ";
- // line 10
- echo $this->getAttribute($context["module"], "content", array());
- echo "
- </div>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 13
- echo " ";
- }
- // line 1
- public function getpageLinkName($__text__ = null, ...$__varargs__)
- {
- $context = $this->env->mergeGlobals(array(
- "text" => $__text__,
- "varargs" => $__varargs__,
- ));
- $blocks = array();
- ob_start();
- try {
- echo twig_replace_filter(twig_lower_filter($this->env, ($context["text"] ?? null)), array("01._" => "", "02._" => "", "03._" => "", "04._" => "", "05._" => "", "06._" => "", "07._" => "", "08._" => "", "09._" => ""));
- } catch (Exception $e) {
- ob_end_clean();
- throw $e;
- } catch (Throwable $e) {
- ob_end_clean();
- throw $e;
- }
- return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- }
- public function getTemplateName()
- {
- return "modular/contenu-multi.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 63 => 1, 59 => 13, 50 => 10, 45 => 9, 41 => 8, 36 => 6, 32 => 5, 29 => 4, 23 => 3, 20 => 2,);
- }
- /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
- public function getSource()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
- return $this->getSourceContext()->getCode();
- }
- public function getSourceContext()
- {
- return new Twig_Source("{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
- {% block content %}
- <div class=\"multi-column\">
- <h2>{{ header.title }}</h2>
- {{ page.content }}
- </div>
- {% for module in page.collection() %}
- <div id=\"{{ _self.pageLinkName(module.folder) }}\" class=\"mutli-column\">
- {{ module.content }}
- </div>
- {% endfor %}
- {% endblock %}
- ", "modular/contenu-multi.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/modular/contenu-multi.html.twig");
- }
- }
|