Changeset 3628 in products for quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt
- Timestamp:
- Feb 13, 2013 10:47:21 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt
r3627 r3628 2 2 children options/children | nothing; 3 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 <li tal:define="is_current node/currentItem; 9 is_in_path node/currentParent; 10 li_curr_class python:is_current and 'selected' or ''; 11 li_extr_class python:(is_in_path and not is_current) and 'selected' or ''; 12 li_extr_class python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class; 13 li_class string:${li_curr_class}${li_extr_class}; 14 li_class python:li_class or nothing" 15 tal:attributes="class li_class"> 16 17 <tal:level define="show_children node/show_children; 18 children node/children; 19 show_icons view/conf/show_icons; 20 item_icon node/item_icon; 21 item_type node/normalized_portal_type | nothing; 22 a_class python:children and 'hasChildrens' or nothing"> 23 24 <a tal:attributes="href node/getURL; 25 title node/Description|nothing; 26 class a_class"> 27 <img tal:condition="python: show_icons and not plonefour" 28 tal:replace="structure item_icon/html_tag | nothing" /> 29 <span tal:content="node/Title" 30 tal:attributes="class python: plonefour and show_icons and item_type and 'contenttype-'+ item_type or nothing">Selected Item Title</span> 31 </a> 32 33 <ul tal:attributes="class python:'globalSectionsLevel'+str(level)" 34 tal:condition="python: len(children) > 0 and show_children"> 35 <li tal:replace="structure python:view.recurse(children=children, level=level+1)"> 36 SubMenu 37 </li> 38 </ul> 39 </tal:level> 40 41 </li> 42 </tal:navitem> 43 </metal:main> 44 </tal:master> 4 i18n:domain="plone" 5 ><metal:main define-macro="sections_main" 6 ><tal:navitem repeat="node children" 7 ><li tal:define="is_current node/currentItem; 8 is_in_path node/currentParent; 9 li_curr_class python:is_current and 'selected' or ''; 10 li_extr_class python:(is_in_path and not is_current) and 'selected' or ''; 11 li_extr_class python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class; 12 li_class string:${li_curr_class}${li_extr_class}; 13 li_class python:li_class or nothing" 14 tal:attributes="class li_class" 15 ><tal:level define="show_children node/show_children; 16 children node/children; 17 show_icons view/conf/show_icons; 18 item_icon node/item_icon; 19 item_type node/normalized_portal_type | nothing; 20 a_class python:children and 'hasChildrens' or nothing" 21 ><a tal:attributes="href node/getURL; 22 title node/Description|nothing; 23 class a_class" 24 ><img tal:condition="python: show_icons and not plonefour" 25 tal:replace="structure item_icon/html_tag | nothing" 26 /><span tal:content="node/Title" 27 tal:attributes="class python: plonefour and show_icons and item_type and 'contenttype-'+ item_type or nothing" 28 >Selected Item Title</span 29 ></a 30 ><ul tal:attributes="class python:'globalSectionsLevel'+str(level)" 31 tal:condition="python: len(children) > 0 and show_children" 32 ><li tal:replace="structure python:view.recurse(children=children, level=level+1)" 33 >SubMenu</li 34 ></ul 35 ></tal:level 36 ></li 37 ></tal:navitem 38 ></metal:main 39 ></tal:master>
Note: See TracChangeset
for help on using the changeset viewer.