Source

tw2.jqplugins.fg / tw2 / jqplugins / fg / templates / menu.html

<div xmlns:py="http://genshi.edgewall.org/"
     xmlns:xi="http://www.w3.org/2001/XInclude"
     id="${w.attrs['id']}:wrapper">

${w.child.display()}
<div id="${w.attrs['id']}:target" class='hidden'>
    <ul>
    <py:for each="entry in w.items">
        <xi:include href="recursive_menu.html" py:with="item=entry" />
    </py:for>
    </ul>
</div>

<script xmlns:py="http://genshi.edgewall.org/" type="text/javascript">
$(function() {
    $(document).ready( function () {
        var opts = ${w.options};
        opts['content'] = $('#${w.selector}\\:target').html();
        $("#${w.selector}").${w.jqmethod}(opts);
        <py:if test="'click' in w.events">
        $("#${w.selector}").click(${w.events['click']});
        </py:if>
    });
});
</script>
</div>