Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content">
- <h1>Sitemap</h1>
- {exp:structure_entries include_parent="false" }
- {if {depth} == 1}
- {if {children_total} > 1}{!-- Top Level --}
- <div class="sitemap">
- <h2><a href="{page_uri}">{title}</a></h2>
- {/if}
- {if:else}{!-- Children (not top level) --}
- {if ({depth} == 2 && {sibling_total} > 1) || {depth} > 2}
- {if {sibling_count} == 1}{!-- First child - so open markup --}
- <ul>
- {/if}
- <li><a href="{page_uri}" class="colour-text">{title}</a>
- {close_markup}
- {if {total_children} == 0 || {depth} == {restricted_depth}} </li>{/if}
- {if {last_sibling} && {sibling_count} == {sibling_total}}
- </ul><!-- End of level{depth} closing tags -->
- </li>
- {if {depth} == 2}
- </div>
- {/if}
- {/if}
- {/close_markup}
- {/if}
- {/if}
- {/exp:structure_entries}
- </div><!--/#content-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement