后台自动缩略图请参考 /help/57.html
前台缩略图:
下载扩展文件: thumb.zip 解压后,将thumb.php放到网站inc目录下
//列表页参考代码
{{$set=array()}}
{{$set['page']=page}}
{{$articles=alist($set)}}
{{loop $articles['list'] as $a}}
<img src="{{class thumb}}{{$a['pic']|thumb(180,180)}}">
{{/loop}}
//文章页参考代码
<img src="{{class thumb}}{{$article['pic']|thumb(180,180)}}">
//180,180代表缩略图宽度和高度
//只支持本地文件,第三个参数支持缩略图生成质量
//如:{{$a['pic']|thumb(180,180,90)}} 建议选择50-100之间的数字,默认值90