📄 正在查看:twcms/view/default/article_index.htm
1<!doctype html>
2<html>
3<head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5 <title>{$tw[titles]}</title>
6 <meta name="keywords" content="{$tw[seo_keywords]}" />
7 <meta name="description" content="{$tw[seo_description]}" />
8 <link rel="shortcut icon" type="image/x-icon" href= "{$tw[webdir]}favicon.ico" />
9 <link rel="stylesheet" type="text/css" href="{$tw[tpl]}css/global.css" />
10</head>
11
12{inc:header.htm}
13
14 <!--两列开始-->
15 <div class="cont cf">
16 <div class="m_l">
17 <h2 class="b2_tit b10">
18 <a href="{$tw[weburl]}">首页</a>
19 {loop:$tw_var[place] $v} » <a href="{$v[url]}">{$v[name]}</a>{/loop}
20 </h2>
21
22 <!--待完成:幻灯片和频道头条-->
23
24 {block:listeach limit="8"}
25 {loop:$data $v}
26 <h2 class="b2_tit">
27 <a class="more" href="{$v[cate_url]}">更多</a>
28 <b>{$v[cate_name]}</b>
29 </h2>
30 <ul class="b2_cont lists cf b10">
31 {loop:$v[list] $lv}
32 <li><span>{$lv[date]}</span><a href="{$lv[url]}" target="_blank">{$lv[subject]}</a></li>
33 {/loop}
34 </ul>
35 {/loop}
36 {/block}
37 </div>
38
39 <div class="m_r">
40 {block:category type="sibling"}
41 <div class="b10">
42 <h2 class="b2_tit">
43 <b>相关分类</b>
44 </h2>
45 <ul class="b2_cont cat_r cf">
46 {loop:$data $v}<li><a href="{$v[url]}"{if:$v['cid'] == $_GET['cid']} style="font-weight:bold"{/if}>{$v[name]}</a></li>{/loop}
47 </ul>
48 </div>
49 {/block}
50
51 {inc:right.htm}
52 </div>
53 </div>
54 <!--两列结束-->
55
56{inc:footer.htm}
57
58<script type="text/javascript" src="{$tw[webdir]}static/js/jquery.js"></script>
59<script type="text/javascript" src="{$tw[tpl]}js/main.js"></script>
60</body>
61</html>
62