Browse Source

prepare modularized templates

master
Dom SP 3 years ago
parent
commit
5fbae5d8cd
2 changed files with 44 additions and 44 deletions
  1. +43
    -0
      app/views/tpl/default.htm
  2. +1
    -44
      app/views/tpl/index.html

+ 43
- 0
app/views/tpl/default.htm View File

@@ -0,0 +1,43 @@
<div id="page-wrap">
<header>
<include href="header.htm">
</header>
<div id="mobile-nav">
<a class="menu-toggle" onClick="javascript:toggle_menu();"></a>
<div class="the_list"><div>
<a class="home_link {{ @is_home ? 'active': '' }}" href="{{ 0 ? @SITE_URL : "/" }}{{ @LANG != @default_lang ? "?lang=".@LANG : "" }}">HOME</a>
<include href="navigation.htm" with="menu={{ @navi.main }}" />
<div id="modileFooterNav">
<include href="navigation.htm" with="menu={{ @navi.footer }}" />
</div>
<div id="mobileLanguageNav">
<include href="navigation.htm" with="menu={{ @navi.mobilelang }}" />
</div>
</div></div>
</div> <!-- #mobile-nav -->
<nav id="main-nav">
<include href="navigation.htm" with="menu={{ @navi.main }}" />
</nav>
<div id="platzhalter"></div>
<section id="content">
<include href="maincontent.htm" />
<include href="sidebar.htm" />
</section>

</div> <!-- #page-wrap -->

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

+ 1
- 44
app/views/tpl/index.html View File

@@ -35,51 +35,8 @@

<div id="backdrop"></div>

<div id="page-wrap">
<header>
<include href="header.htm">
</header>
<div id="mobile-nav">
<a class="menu-toggle" onClick="javascript:toggle_menu();"></a>
<div class="the_list"><div>
<a class="home_link {{ @is_home ? 'active': '' }}" href="{{ 0 ? @SITE_URL : "/" }}{{ @LANG != @default_lang ? "?lang=".@LANG : "" }}">HOME</a>
<include href="navigation.htm" with="menu={{ @navi.main }}" />
<div id="modileFooterNav">
<include href="navigation.htm" with="menu={{ @navi.footer }}" />
</div>
<div id="mobileLanguageNav">
<include href="navigation.htm" with="menu={{ @navi.mobilelang }}" />
</div>
</div></div>
</div> <!-- #mobile-nav -->
<nav id="main-nav">
<include href="navigation.htm" with="menu={{ @navi.main }}" />
</nav>
<div id="platzhalter"></div>
<section id="content">
<include href="maincontent.htm" />
<include href="sidebar.htm" />
</section>

</div> <!-- #page-wrap -->
<footer id="main-footer">
<include href="tpl/default.htm" />
<nav>
<include href="navigation.htm" with="menu={{ @navi.footer }}" />
</nav>
</footer>
<check if="{{ @backend }}">
<div id="admin-panel">{{ @backend | raw }}</div>
</check>

Loading…
Cancel
Save