Revision 1092:f550e0726d86,
779 bytes
checked in by JcDenis, 13 years ago
(diff) |
Added page tabs extension (with very simple exemple in aboutConfig)
|
Line | |
---|
1 | {# Page tabs #} |
---|
2 | |
---|
3 | {# Add page header for tabs with {{ init_tabs() }} in your page header #} |
---|
4 | {% block page_tab_head %} |
---|
5 | {% import "js_helpers.html.twig" as js %} |
---|
6 | {{ js.page_tabs(default_tab) }} |
---|
7 | {% endblock %} |
---|
8 | |
---|
9 | {# Begin an existing tab with {% tab a_tab_name %} #} |
---|
10 | {# Create/overwrite one with {% tab a_tab_name(a_tab_id,a_tab_title) %} #} |
---|
11 | {% block page_tab_begin %} |
---|
12 | <div class="multi-part" title="{{ title }}" id="{{ id }}"> |
---|
13 | {% endblock %} |
---|
14 | |
---|
15 | {# End a tab with {% endtab %} #} |
---|
16 | {% block page_tab_end %} |
---|
17 | </div> |
---|
18 | {% endblock %} |
---|
19 | |
---|
20 | {# Add fake tab with {{ faketab(a_tab_name) }} #} |
---|
21 | {# Create/overwrite one with {{ faketab(a_tab_name,a_tab_id,a_tab_title,a_tab_url) }} #} |
---|
22 | {% block page_tab_fake %} |
---|
23 | <a class="multi-part" href="{{ url }}" title="{{ title }}">{{ title }}</a> |
---|
24 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.