Last change
on this file since 3491 was
3491,
checked in by kroman0, 12 years ago
|
Added select for mobile menu
|
File size:
1.4 KB
|
Line | |
---|
1 | <tal:master define="level options/level|python:0; |
---|
2 | children options/children | nothing; |
---|
3 | plonefour view/is_plone_four" |
---|
4 | i18n:domain="plone"> |
---|
5 | |
---|
6 | <metal:main define-macro="sections_main"> |
---|
7 | <tal:navitem repeat="node children"> |
---|
8 | <tal:option tal:define="show_children node/show_children; |
---|
9 | children node/children; |
---|
10 | item_url node/getURL; |
---|
11 | is_current node/currentItem;"> |
---|
12 | <option tal:attributes="value python:item_url; |
---|
13 | title node/Description;" |
---|
14 | tal:condition="not:is_current" |
---|
15 | ><span tal:repeat="l python:range(level-2)"> </span><span tal:condition="python:level>1">− </span><span tal:content="node/Title">Selected Item Title</span></option> |
---|
16 | <option tal:attributes="value python:item_url; |
---|
17 | title node/Description;" |
---|
18 | selected="selected" |
---|
19 | tal:condition="is_current" |
---|
20 | ><span tal:repeat="l python:range(level-2)"> </span><span tal:condition="python:level>1">− </span><span tal:content="node/Title">Selected Item Title</span></option> |
---|
21 | <option tal:condition="python: len(children) > 0 and show_children" tal:replace="structure python:view.mobile(children=children, level=level+1)">SubMenu</option> |
---|
22 | </tal:option> |
---|
23 | </tal:navitem> |
---|
24 | </metal:main> |
---|
25 | </tal:master> |
---|
Note: See
TracBrowser
for help on using the repository browser.