File: documentation.twig

package info (click to toggle)
php-di 7.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,940 kB
  • sloc: php: 10,572; makefile: 42; xml: 17; sh: 10; pascal: 5
file content (39 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "default.twig" %}

{% block content %}

    <div class="container documentation">

        <div class="sidebar">
            <ul>
                {% for itemId, item in menu.items %}
                    <li>
                        <span class="section-title">{{ item.section }}</span>

                        <ul>
                            {% for itemId, item in item.items %}
                                <li class="{{ itemId == current_menu ? 'active' }}">
                                    <a href="{{ item.absoluteUrl|default(baseUrl ~ '/' ~ item.url) }}">
                                        {{ item.text|raw }}
                                    </a>
                                </li>
                            {% endfor %}
                        </ul>
                    </li>
                {% endfor %}
            </ul>
        </div>

        <article>
            <div class="pull-right">
                <a href="https://github.com/PHP-DI/PHP-DI/blob/master/{{ currentFile }}" class="btn btn-default btn-sm" title="Fork PHP-DI and improve the documentation via a pull request">
                    Edit this page on GitHub
                </a>
            </div>

            {{ content|raw }}
        </article>

    </div>

{% endblock %}