2016-09-07 16:10:48 -04:00
{% include custom/sidebarconfigs.html %}
< ul id = "mysidebar" class = "nav" >
2017-07-22 14:38:37 +02:00
< li class = "sidebarTitle" > {{sidebar[0].product}} {{sidebar[0].version | replace: '!PMD_VERSION!', site.pmd.version}}< / li >
2016-09-07 16:10:48 -04:00
{% for entry in sidebar %}
{% for folder in entry.folders %}
{% if folder.output contains "web" %}
< li >
2017-08-18 10:33:43 +02:00
{% if folder.url %}
< a href = "{{ folder.url | remove: " / " } } " > {{ folder.title }}< / a >
{% else %}
2016-09-07 16:10:48 -04:00
< a href = "#" > {{ folder.title }}< / a >
2017-08-18 10:33:43 +02:00
{% endif %}
2016-09-07 16:10:48 -04:00
< ul >
{% for folderitem in folder.folderitems %}
{% if folderitem.output contains "web" %}
2017-11-10 17:49:16 +01:00
{% unless folderitem.subfolders %}
{% if folderitem.external_url %}
< li > < a href = "{{folderitem.external_url}}" target = "_blank" > {{folderitem.title}}< / a > < / li >
{% elsif folderitem.url and page.url == folderitem.url or page.sidebaractiveurl == folderitem.url %}
< li class = "active" > < a href = "{{folderitem.url | remove: " / " } } " > {{folderitem.title}}< / a > < / li >
{% elsif folderitem.url %}
< li > < a href = "{{folderitem.url | remove: " / " } } " > {{folderitem.title}}< / a > < / li >
{% else %}
< li > < a href = "#" > {{folderitem.title}}< / a > < / li >
{% endif %}
2016-09-07 16:10:48 -04:00
{% else %}
2017-11-10 17:49:16 +01:00
{% for subfolders in folderitem.subfolders %}
{% if subfolders.output contains "web" %}
< li class = "subfolders" >
< a href = "#" > {{ subfolders.title }}< / a >
< ul >
{% for subfolderitem in subfolders.subfolderitems %}
{% if subfolderitem.output contains "web" %}
{% if subfolderitem.external_url %}
< li > < a href = "{{subfolderitem.external_url}}" target = "_blank" > {{subfolderitem.title}}< / a > < / li >
{% elsif page.url == subfolderitem.url %}
< li class = "active" > < a href = "{{subfolderitem.url | remove: " / " } } " > {{subfolderitem.title}}< / a > < / li >
{% else %}
< li > < a href = "{{subfolderitem.url | remove: " / " } } " > {{subfolderitem.title}}< / a > < / li >
{% endif %}
{% endif %}
{% endfor %}
< / ul >
< / li >
{% endif %}
{% endfor %}
{% endunless %}
2016-09-07 16:10:48 -04:00
{% endif %}
{% endfor %}
< / ul >
2017-05-25 10:22:39 +02:00
< / li >
{% endif %}
2016-09-07 16:10:48 -04:00
{% endfor %}
{% endfor %}
<!-- if you aren't using the accordion, uncomment this block:
< p class = "external" >
< a href = "#" id = "collapseAll" > Collapse All< / a > | < a href = "#" id = "expandAll" > Expand All< / a >
< / p >
-->
< / ul >
<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted. -->
< script > $ ( "li.active" ) . parents ( 'li' ) . toggleClass ( "active" ) ; < / script >