-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.html
124 lines (120 loc) · 4.77 KB
/
category.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{template "content","header"}
<!--main-->
<div class="main">
<div class="col-left channel-hot">
<div class="news-hot">
<div class="icon"></div>
<div class="content">
{pc:content action="position" posid="10" catid="$catid" thumb="1" order="listorder DESC" num="2"}
{loop $data $v}
<h4 class="blue"><a href="{$v[url]}" target="_blank"{title_style($v[style])}>{$v[title]}</a></h4>
<p><img src="{thumb($v[thumb],90,60)}" width="90" height="60" />{str_cut(strip_tags($v[description]), 150)}</p>
<div class="bk20 hr"><hr /></div>
{/loop}
{/pc}
{pc:content action="lists" catid="$catid" order="id DESC" num="3"}
<ul class="list">
{loop $data $k $v}
<li>·<a href="{$v[url]}" title="{$v[title]}" target="_blank"{title_style($v[style])}>{str_cut($v[title], 60)}</a></li>
{/loop}
</ul>
{/pc}
</div>
</div>
</div>
<div class="col-auto channel-slide">
{pc:content action="lists" catid="$catid" order="listorder ASC" thumb="1" num="5"}
<ul class="thumb">
{loop $data $k $v}
<li {if $n==1}class="on" style="margin:0"{/if}><a href="{$v[url]}"><img src="{thumb($v[thumb], 82, 50)}" alt="{$v[title]}" width="82" height="50" /><div class="icon"></div></a></li>
{/loop}
</ul>
<div class="col-auto">
<ul class="photo">
{loop $data $k $v}
<li><a href="{$v[url]}" title="{$v[title]}"><img src="{thumb($v[thumb], 398, 234)}" width="398" height="234" alt="{$v[title]}" /></a></li>
{/loop}
</ul>
<div class="title">
{loop $data $k $v}
<p {if $n==1}style="display:block"{/if}><strong><a href="{$v[url]}" title="{$v[title]}" class="blue"{title_style($v[style])}>{str_cut($v[title], 36)}</a></strong><br />{str_cut(strip_tags($v[description]), 62)}</p>
{/loop}
</div>
</div>
{/pc}
</div>
<!--下面这部分代码是广告代码,可通过删除注释的方法显示出来-->
<!--
<div class="ads">
<div class="col-left"><script language="javascript" src="{APP_PATH}caches/poster_js/4.js"></script></div>
<div class="col-auto">
<div class="left">推广链接</div>
<div class="right">这里放广告</div>
</div>
</div>
-->
<div class="bk10"></div>
<div class="col-left">
{php $j=1;}
{loop subcat($catid) $v}
{php if($v['type']!=0) continue;}
<div class="box cat-area" {if $j%2==1}style="margin-right:10px"{/if}>
<h5 class="title-1">{$v[catname]}<a href="{$v[url]}" class="more">更多>></a></h5>
<div class="content">
{pc:content action="lists" catid="$v[catid]" thumb="1" num="1" order="id DESC"}
<p>
{loop $data $v}
<a href="{$v[url]}" target="_blank"><img src="{thumb($v[thumb],70,60)}" width="70" height="60"/></a>
<strong><a href="{$v[url]}" target="_blank" title="{$v[title]}"{title_style($v[style])}>{str_cut($v[title], 30)}</a></strong><br />{str_cut($v[description],116,'..')}
{/loop}
</p>
{/pc}
<div class="bk15 hr"></div>
<ul class="list lh24 f14">
{pc:content action="lists" catid="$v[catid]" num="5" order="id DESC"}
{loop $data $v}
<li><a href="{$v[url]}" target="_blank"{title_style($v[style])}>{$v[title]}</a></li>
{/loop}
{/pc}
</ul>
</div>
</div>
{if $j%2==0}<div class="bk10"></div>{/if}
{$j++}
{/loop}
</div>
<div class="col-auto">
<div class="box">
<h5 class="title-2">频道总排行</h5>
<ul class="content digg">
{pc:content action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
{loop $data $v}
<li><a href="{$v[url]}" target="_blank"{title_style($v[style])}>{$v[title]}</a></li>
{/loop}
{/pc}
</ul>
</div>
<div class="bk10"></div>
<div class="box">
<h5 class="title-2">频道本月排行</h5>
<ul class="content rank">
{pc:content action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
{loop $data $v}
<li><span>{number_format($v[monthviews])}</span><a href="{$v[url]}"{title_style($v[style])} class="title" title="{$v[title]}">{str_cut($v[title],56,'...')}</a></li>
{/loop}
{/pc}
</ul>
</div>
</div>
</div>
<script type="text/javascript">
function ChannelSlide(Name,Class){
$(Name+' ul.photo li').sGallery({
titleObj:Name+' div.title p',
thumbObj:Name+' .thumb li',
thumbNowClass:Class
});
}
new ChannelSlide(".channel-slide","on",311,260);
</script>
{template "content","footer"}