Browse Source

include languages menu in header2, if it is available

master
Dom SP 3 years ago
parent
commit
093f30aea5
2 changed files with 24 additions and 17 deletions
  1. +23
    -16
      app/views/header2.htm
  2. +1
    -1
      app/views/navigation.htm

+ 23
- 16
app/views/header2.htm View File

<header> <header>
<check if="{{ @logo }}">

<check if="{{ @navi.languages }}">
<div class="languages">
<include href="navigation.htm" with="menu={{ @navi.languages }}" />
</div>
</check>
<check if="{{ @logo }}">
<true> <true>
<a href="{{ @SITE_URL }}/"><h1>
<img src="/{{ @logo }}" alt="{{ @title }}" />
</h1></a>
<a href="{{ @SITE_URL }}/"><h1>
<img src="/{{ @logo }}" alt="{{ @title }}" />
</h1></a>
</true> </true>
<false> <false>
<h1>{{ @title }}</h1>
<h1>{{ @title }}</h1>
</false> </false>
</check>
</check>


<check if="{{ @subTitle }}">
<check if="{{ @subTitle }}">
<h2>{{ @subTitle }}</h2> <h2>{{ @subTitle }}</h2>
</check>
</check>


<check if="{{ @headerInfo1 || @headerInfo2 }}">
<div class="headerInfo">
<span class="headerInfo1">{{ @headerInfo1 }}</span>
<span class="headerInfo2">{{ @headerInfo2 }}</span>
</div>
</check>
<check if="{{ @headerInfo1 || @headerInfo2 }}">
<div class="headerInfo">
<span class="headerInfo1">{{ @headerInfo1 }}</span>
<span class="headerInfo2">{{ @headerInfo2 }}</span>
</div>
</check>
</header> </header>


<check if="{{ @banner }}"> <check if="{{ @banner }}">
<true>
<true>
<div id="site-banner"><img src="/{{ @banner }}" alt="{{ @subTitle }}" /></div> <div id="site-banner"><img src="/{{ @banner }}" alt="{{ @subTitle }}" /></div>
</true>
</true>
</check> </check>

+ 1
- 1
app/views/navigation.htm View File

<ul class="nav level{{ @level }}"> <ul class="nav level{{ @level }}">
<repeat group="{{ @menu }}" key="{{ @key }}" value="{{ @item }}"> <repeat group="{{ @menu }}" key="{{ @key }}" value="{{ @item }}">
<li class="{{ @item.class }}"><a href="{{ @item.href }}">{{ @item.name }}</a>
<li class="{{ @item.class }}"><a href="{{ @item.href }}">{{ @item.name | raw }}</a>
<check if="{{ is_array(@item.submenu) }}"> <check if="{{ is_array(@item.submenu) }}">
<include href="navigation.htm" with="menu={{ @item.submenu }},level={{ @level + 1 }}" /> <include href="navigation.htm" with="menu={{ @item.submenu }},level={{ @level + 1 }}" />
</check> </check>

Loading…
Cancel
Save