sites/www.qmsk.net/templates/layout.tmpl
branchsites
changeset 42 5a72c00c4ae4
parent 32 be954df4f0e8
equal deleted inserted replaced
41:9585441a4bfb 42:5a72c00c4ae4
     2 
     2 
     3 <%def name="render_menu(open_page, page, items, ancestry)">
     3 <%def name="render_menu(open_page, page, items, ancestry)">
     4 <ul>
     4 <ul>
     5 % for pi in items :
     5 % for pi in items :
     6     <li>
     6     <li>
     7         <a href="${site_page_url}/${pi.url}"${' class="selected-page"' if pi == open_page else ''}>${pi.title} ${'&raquo;' if pi.children and pi.parent else ''}</a>
     7         <a href="${req.page_prefix}/${pi.url}"${' class="selected-page"' if pi == open_page else ''}>${pi.title} ${'&raquo;' if pi.children and pi.parent else ''}</a>
     8     % if pi in ancestry and pi.children and pi.parent :
     8     % if pi in ancestry and pi.children and pi.parent :
     9         ${render_menu(page, pi, pi.children, ancestry)}
     9         ${render_menu(page, pi, pi.children, ancestry)}
    10     % endif
    10     % endif
    11     </li>
    11     </li>
    12 % endfor
    12 % endfor
    14 </%def>
    14 </%def>
    15 
    15 
    16 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    16 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    17     <head>
    17     <head>
    18         <title>qmsk.net ${' :: ' + h.breadcrumb(menu.ancestry, links=False) if menu.ancestry else ''}</title>
    18         <title>qmsk.net ${' :: ' + h.breadcrumb(menu.ancestry, links=False) if menu.ancestry else ''}</title>
    19         <link rel="Stylesheet" type="text/css" href="${site_root_url}/static/style.css" />
    19         <link rel="Stylesheet" type="text/css" href="${req.site_root}/static/style.css" />
    20     </head>
    20     </head>
    21     <body>
    21     <body>
    22             <div id="header">
    22             <div id="header">
    23                 <a href="${site_page_url}/">QMSK.NET</a>
    23                 <a href="${req.page_prefix}/">QMSK.NET</a>
    24             </div>
    24             </div>
    25             
    25             
    26             <div id="container">
    26             <div id="container">
    27                 <div id="nav">
    27                 <div id="nav">
    28                     ${render_menu(menu.page, menu.page, menu.items, menu.ancestry)}
    28                     ${render_menu(menu.page, menu.page, menu.items, menu.ancestry)}
    46                 <div id="footer-left">
    46                 <div id="footer-left">
    47                     &copy; ${h.copyright_year()} Tero Marttila
    47                     &copy; ${h.copyright_year()} Tero Marttila
    48                 </div>
    48                 </div>
    49                 
    49                 
    50                 <div id="footer-center">
    50                 <div id="footer-center">
    51                     Validated <a href="http://validator.w3.org/check?uri=www.qmsk.net">XHTML 1.0 Strict</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=www.qmsk.net">CSS 2.1</a>
    51                     ${h.validation_notice(req.site_host)}
    52                 </div>
    52                 </div>
    53             </div>
    53             </div>
    54     </body>
    54     </body>
    55 </html>
    55 </html>
    56 
    56