z-blog默认模板侧栏目代码整理和注释


关键字描述:整理 注释 代码 栏目 默认 模板 < "   >

右侧的目录啦日历啦等一些说明,需要的时候直接放模板文件的右侧栏就可以了。

以下代码位于Z-Blog18\THEMES\default\TEMPLATE 内的以下模板文件内:

  1. default.html 首页模板
  2. catalog.html 列表页模板
  3. search.html 搜索页模板
  4. tags.html tags页模板
  5. single.html 文章页模板

默认侧栏模块

<!– –>为Html注释符,其中包含的内容不会显示在浏览器中

HEMES\default\TEMPLATE\default.html,catalog.html,single.html,search.html,tags.html

<!--日历-->

<div class="function" id="divCalendar">

<h3><#ZC_MSG050#></h3>

<#CACHE_INCLUDE_CALENDAR#>

</div>

 

 

<!--控制面板-->

<div class="function" id="divContorPanel">

<h3><#ZC_MSG025#></h3>

<ul>

<li><a href="cmd.asp?act=login">[<#ZC_MSG009#>]</a>  <a href="cmd.asp?act=vrs">[<#ZC_MSG021#>]</a></li>

</ul>

</div>

 

 

<!--网站目录-->

<div class="function" id="divCatalog">

<h3><#ZC_MSG026#></h3>

<ul>

<#CACHE_INCLUDE_CATALOG#>

</ul>

</div>

 

 

<!--最新评论-->

<div class="function" id="divComments">

<h3><#ZC_MSG027#></h3>

<ul>

<#CACHE_INCLUDE_COMMENTS#>

</ul>

</div>

 

 

<!--最新留言-->

<div class="function" id="divGuestComments">

<h3><#ZC_MSG274#></h3>

<ul><#CACHE_INCLUDE_GUESTCOMMENTS#></ul>

</div>

 

 

<!--最近引用-->

<div class="function" id="divTrackbacks">

<h3><#ZC_MSG154#></h3>

<ul>

<#CACHE_INCLUDE_TRACKBACKS#>

</ul>

</div>

 

 

<!--文章归档-->

<div class="function" id="divArchives">

<h3><#ZC_MSG028#></h3>

<ul>

<#CACHE_INCLUDE_ARCHIVES#>

</ul>

</div>

 

 

<!--搜索-->

<div class="function" id="divSearchPanel">

<h3><#ZC_MSG085#></h3>

<ul>

<li>

<form method="post" action="<#ZC_BLOG_HOST#>cmd.asp?act=Search">

<input type="text" name="edtSearch" id="edtSearch" size="12" />

<input type="submit" value="<#ZC_MSG087#>" name="btnPost" id="btnPost" />

</form>

</li>

</ul>

</div>

 

 

<!--站点统计-->

<div class="function" id="divStatistics">

<h3><#ZC_MSG029#></h3>

<ul>

<#CACHE_INCLUDE_STATISTICS#>

</ul>

</div>

 

 

<!--网站收藏-->

<div class="function" id="divFavorites">

<h3><#ZC_MSG030#></h3>

<ul>

<#CACHE_INCLUDE_FAVORITE#>

</ul>

</div>

 

 

<!--友情连接-->

<div class="function" id="divLinkage">

<h3><#ZC_MSG031#></h3>

<ul>

<#CACHE_INCLUDE_LINK#>

</ul>

</div>

 

 

<!--图标汇集,可放RSS订阅图标什么的-->

<div class="function" id="divMisc">

<h3><#ZC_MSG039#></h3>

<ul>

<#CACHE_INCLUDE_MISC#>

</ul>

</div>

 

 

<!--最近发表-->

<div class="function" id="divPrevious">

<h3><#ZC_MSG032#></h3>

<ul id="ulPrevious">

<script language="JavaScript" type="text/javascript">strBatchInculde ="ulPrevious=previous,"</script>

</ul>

</div>

 

 

<!--TAGs-->

<div class="function" id="divTags">

<h3><#ZC_MSG138#></h3>

<ul>

<#CACHE_INCLUDE_TAGS#>

</ul>

</div>

自定义模块

<!--自定义模块一-->

<div class="function">

<h3>自定义标题</h3>

<ul>这里写上内容,例如我的介绍</ul>

</div>

或者

<!--自定义模块二-->

div class="function">

<h3>自定义标题</h3>

<ul>

<li>第一段</li>

<li>第二段</li>

<li>以此类推</li>

</ul>

</div>

或者调用INCLUDE目录下的zidingyi.asp1)文件内容

注意:zidingyi.asp文件应为utf-8编码要不然会出现乱码;<#CACHE_INCLUDE_ZIDINGYI#>里的ZIDINGYI要与文件名称一致,并且全部大写。 详见 http://wiki.rainbowsoft.org/doku.php?id=themes:tips

<!--自定义模块三-->

<div class="function">

<h3>自定义标题</h3>

<ul><#CACHE_INCLUDE_ZIDINGYI#></ul>

</div>



« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3