Browse Source

use an alternative header file

master
Dom SP 3 years ago
parent
commit
e187e4d78e
2 changed files with 36 additions and 4 deletions
  1. +29
    -0
      app/views/header2.htm
  2. +7
    -4
      app/views/tpl/default.htm

+ 29
- 0
app/views/header2.htm View File

<header>
<check if="{{ @logo }}">
<true>
<a href="{{ @SITE_URL }}/"><h1>
<img src="{{ @logo }}" alt="{{ @title }}" />
</h1></a>
</true>
<false>
<h1>{{ @title }}</h1>
</false>
</check>

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

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

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

+ 7
- 4
app/views/tpl/default.htm View File

<div id="page-wrap"> <div id="page-wrap">
<header>
<include href="header.htm">
</header>
<include href="header2.htm">
<div id="mobile-nav"> <div id="mobile-nav">
<a class="menu-toggle" onClick="javascript:toggle_menu();"></a> <a class="menu-toggle" onClick="javascript:toggle_menu();"></a>
</div> <!-- #page-wrap --> </div> <!-- #page-wrap -->


<footer id="main-footer"> <footer id="main-footer">
<nav> <nav>
<include href="navigation.htm" with="menu={{ @navi.footer }}" /> <include href="navigation.htm" with="menu={{ @navi.footer }}" />
</nav> </nav>
{{ @footer_content | raw }}
</footer> </footer>

Loading…
Cancel
Save