source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt @ 1197

Last change on this file since 1197 was 1197, checked in by piv, 15 years ago

basically implement content tabs functionality, add show_icons setting

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1<tal:master define="level options/level|python:0;
2                    children options/children | nothing"
3            i18n:domain="plone">
4
5<metal:main define-macro="sections_main">
6<tal:navitem repeat="node children">
7<li tal:define="show_children   node/show_children;
8                children        node/children;
9                item_url        node/getURL;
10                item_icon       node/item_icon;
11                is_current      node/currentItem;
12                is_in_path      node/currentParent;
13                li_class        python:is_current and ' globalSectionsCurrentNode selected' or '';
14                li_extr_class   python:is_in_path and ' globalSectionsItemInPath' or '';
15                li_extr_class   python:(is_in_path and not is_current) and li_extr_class + ' selected' or li_extr_class;
16                li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + ' plain' or li_extr_class;
17                li_folder_class python:show_children and ' globalSectionsFolderish' or '';"
18    tal:attributes="class string:globalSectionsItem visualNoMarker${li_class}${li_extr_class}${li_folder_class}">
19
20    <tal:level define="item_class string:state-${node/normalized_review_state}">
21    <a tal:attributes="href python:item_url;
22                       title node/Description;
23                       class string:$item_class${li_class}${li_extr_class}${li_folder_class}">
24        <img tal:condition="view/conf/show_icons"
25             tal:replace="structure item_icon/html_tag" />
26        <span tal:content="node/Title">Selected Item Title</span>
27    </a>
28
29    <ul tal:attributes="class python:'globalSections globalSectionsLevel'+str(level)"
30        tal:condition="python: len(children) > 0 and show_children">
31        <li tal:replace="structure python:view.recurse(children=children, level=level+1)">
32            SubMenu
33        </li>
34    </ul>
35    </tal:level>
36
37</li>
38</tal:navitem>
39</metal:main>
40</tal:master>
Note: See TracBrowser for help on using the repository browser.