<tal:master define="level options/level|python:0;
                    children options/children | nothing;
                    bottomLevel options/bottomLevel | nothing;"
            i18n:domain="plone">

<metal:main define-macro="nav_main">
<tal:navitem repeat="node children">
<li tal:define="show_children   node/show_children;
                children        node/children;
                item_url        node/getURL;
                item_icon       node/item_icon;
                remote_url      node/getRemoteUrl;
                link_remote     node/link_remote;
                is_current      node/currentItem;
                is_in_path      node/currentParent;
                li_class        python:is_current and ' navTreeCurrentNode' or '';
                li_extr_class   python:is_in_path and ' navTreeItemInPath' or '';
                li_folder_class python:show_children and ' navTreeFolderish' or '';"
    tal:attributes="class string:navTreeItem visualNoMarker${li_class}${li_extr_class}${li_folder_class}"
    tal:condition="python:bottomLevel &lt;= 0 or level &lt;= bottomLevel">

    <tal:level define="item_class string:state-${node/normalized_review_state}">

      <div tal:define="item_class python:is_current and item_class + ' navTreeCurrentItem' or item_class">

        <a tal:attributes="href python:link_remote and remote_url or item_url;
                           title node/Description;
                           class string:$item_class${li_class}${li_extr_class}${li_folder_class}">
            <img tal:replace="structure item_icon/html_tag" />
            <span tal:content="node/Title">Selected Item Title</span>
        </a>
        
    </div>

    <ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
        tal:condition="python: len(children) > 0 and show_children">  
        <span tal:replace="structure python:view.recurse(children=children, level=level+1, bottomLevel=bottomLevel)" />
    </ul>
    </tal:level>
</li>
</tal:navitem>
</metal:main>
</tal:master>
