Ver código fonte

use an alternative header file

master
Dom SP 3 anos atrás
pai
commit
e187e4d78e
2 arquivos alterados com 36 adições e 4 exclusões
  1. +29
    -0
      app/views/header2.htm
  2. +7
    -4
      app/views/tpl/default.htm

+ 29
- 0
app/views/header2.htm Ver arquivo

@@ -0,0 +1,29 @@
<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 Ver arquivo

@@ -1,8 +1,8 @@
<div id="page-wrap">
<header>
<include href="header.htm">
</header>
<include href="header2.htm">
<div id="mobile-nav">
<a class="menu-toggle" onClick="javascript:toggle_menu();"></a>
@@ -35,9 +35,12 @@
</div> <!-- #page-wrap -->

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

Carregando…
Cancelar
Salvar