2022-11-19 20:24:31 +01:00
|
|
|
{% macro loop(page, parent_loop) %}
|
|
|
|
{% import _self as self %}
|
|
|
|
|
|
|
|
{% if parent_loop|length > 0 %}
|
|
|
|
{% set data_level = parent_loop %}
|
|
|
|
{% else %}
|
|
|
|
{% set data_level = 0 %}
|
|
|
|
{% endif %}
|
|
|
|
{% for p in page.children.visible %}
|
|
|
|
{% set parent_page = p.activeChild ? ' parent' : '' %}
|
|
|
|
{% set current_page = p.active ? ' active' : '' %}
|
|
|
|
<li class="dd-item{{ parent_page }}{{ current_page }}" data-nav-id="{{ p.route }}">
|
2022-11-19 20:25:12 +01:00
|
|
|
<a href="{{ p.url }}" {% if p.header.class %}class="{{ p.header.class }}"{% endif %}>
|
2022-11-19 20:24:31 +01:00
|
|
|
{#<i class="fa fa-check read-icon"></i>#}
|
2022-11-19 20:25:45 +01:00
|
|
|
<span><b>{% if data_level == 0 %}{{ loop.index }}. {% endif %}</b>{{ p.menu }}</span>
|
2022-11-19 20:25:12 +01:00
|
|
|
</a>
|
2022-11-19 20:24:31 +01:00
|
|
|
{% if p.children.count > 0 %}
|
|
|
|
<ul>
|
|
|
|
{{ self.loop(p, parent_loop|default(0)+loop.index) }}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro version(p) %}
|
|
|
|
{% set parent_page = p.activeChild ? ' parent' : '' %}
|
|
|
|
{% set current_page = p.active ? ' active' : '' %}
|
|
|
|
<h5 class="{{ parent_page }}{{ current_page }}">
|
|
|
|
{% if p.activeChild or p.active %}
|
|
|
|
<i class="fa fa-chevron-down fa-fw"></i>
|
|
|
|
{% else %}
|
|
|
|
<i class="fa fa-plus fa-fw"></i>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ p.url }}">{{ p.menu }}</a>
|
|
|
|
</h5>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% import _self as macro %}
|
|
|
|
|
|
|
|
<div class="scrollbar-inner">
|
|
|
|
<div class="highlightable">
|
|
|
|
{% if theme_config.top_level_version %}
|
|
|
|
{% for slug, ver in pages.children %}
|
|
|
|
{{ macro.version(ver) }}
|
|
|
|
<ul id="{{ slug }}" class="topics">
|
|
|
|
{{ macro.loop(ver, '') }}
|
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<ul class="topics">
|
|
|
|
{% if theme_config.root_page %}
|
|
|
|
{{ macro.loop(page.find(theme_config.root_page), '') }}
|
|
|
|
{% else %}
|
|
|
|
{{ macro.loop(pages, '') }}
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
<hr />
|
|
|
|
|
2022-11-19 20:26:56 +01:00
|
|
|
{#<a class="padding" href="#" data-clear-history-toggle><i
|
|
|
|
class="fa fa-fw fa-history"></i> {{ 'THEME_LEARN2_CLEAR_HISTORY'|t }}</a><br/>#}
|
2022-11-19 20:24:31 +01:00
|
|
|
|
|
|
|
<section id="footer">
|
|
|
|
<p>{{ 'THEME_LEARN2_BUILT_WITH_GRAV'|t|raw }}</p>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|