update html render
This commit is contained in:
parent
06fcfaef69
commit
26e39a4e35
|
@ -12,43 +12,43 @@
|
||||||
{% if menu %}
|
{% if menu %}
|
||||||
<nav class="navigation">
|
<nav class="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in menu.rootNode.children %}
|
{%- for item in menu.rootNode.children -%}
|
||||||
{% if item.isVisible %}
|
{%- if item.isVisible -%}
|
||||||
<li>
|
<li>
|
||||||
{% set icon %}
|
{%- set icon -%}
|
||||||
{% if item.attributes.icon is defined %}
|
{%- if item.attributes.icon is defined -%}
|
||||||
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
||||||
{% elseif item.attributes.svg is defined %}
|
{%- elseif item.attributes.svg is defined -%}
|
||||||
<span class="deblan-icon-svg">
|
<span class="deblan-icon-svg">
|
||||||
{{ item.attributes.svg.value|raw }}
|
{{- item.attributes.svg.value|raw -}}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endset %}
|
{%- endset -%}
|
||||||
|
|
||||||
<a href="{{ safe_node_url(item) }}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {% if item.hasExternalUrl %}target="_blank"{% endif %}>
|
<a href="{{ safe_node_url(item) }}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {% if item.hasExternalUrl %}target="_blank"{% endif %}>
|
||||||
{{- icon|raw -}}
|
{{- icon|raw -}}
|
||||||
{{- item.label -}}
|
{{- item.label -}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if network %}
|
{%- if network -%}
|
||||||
<ul class="links">
|
<ul class="links">
|
||||||
{% for item in network.rootNode.children %}
|
{%- for item in network.rootNode.children -%}
|
||||||
{% if item.isVisible %}
|
{%- if item.isVisible -%}
|
||||||
<li class="link link-{{ item.attributes.icon.value }}">
|
<li class="link link-{{ item.attributes.icon.value }}">
|
||||||
<a href="{{ safe_node_url(item) }}" class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}" target="_blank">
|
<a href="{{ safe_node_url(item) }}" class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}" target="_blank">
|
||||||
<span>{{- item.label -}}</span>
|
<span>{{- item.label -}}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-menu hidden-large hidden-medium visible-small">
|
<div class="small-menu hidden-large hidden-medium visible-small">
|
||||||
|
@ -59,23 +59,23 @@
|
||||||
<nav class="navigation push-right">
|
<nav class="navigation push-right">
|
||||||
{% if menu %}
|
{% if menu %}
|
||||||
<ul class="list--inline">
|
<ul class="list--inline">
|
||||||
{% for item in menu.rootNode.children %}
|
{%- for item in menu.rootNode.children -%}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ safe_node_url(item) }}">
|
<a href="{{ safe_node_url(item) }}">
|
||||||
{% set icon %}
|
{%- set icon -%}
|
||||||
{% if item.attributes.icon is defined %}
|
{%- if item.attributes.icon is defined -%}
|
||||||
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
||||||
{% elseif item.attributes.svg is defined %}
|
{% elseif item.attributes.svg is defined %}
|
||||||
<span class="deblan-icon">
|
<span class="deblan-icon">
|
||||||
{{ item.attributes.svg.value|raw }}
|
{{ item.attributes.svg.value|raw }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endset %}
|
{%- endset -%}
|
||||||
|
|
||||||
{{- icon|raw -}}
|
{{- icon|raw -}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in a new issue