浏览代码

prepare modularized templates

master
Dom SP 3 年前
父节点
当前提交
5fbae5d8cd
共有 2 个文件被更改,包括 44 次插入44 次删除
  1. +43
    -0
      app/views/tpl/default.htm
  2. +1
    -44
      app/views/tpl/index.html

+ 43
- 0
app/views/tpl/default.htm 查看文件

@@ -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 查看文件

@@ -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>

正在加载...
取消
保存