<?php if(!defined('IN_SDCMS')) exit;?>
<div class="artlist">
	{sdcms:rs pagesize="$catepage" table="sd_content" join="$join" where="$where" order="ontop desc,ordnum desc,id desc"}
	{rs:eof}没有资料{/rs:eof}
	<div class="artlist-item">
		<div class="artlist-item-image"><a href="{$rs[link]}" title="{$rs[title]}" target="_blank">{if $rs[ispic]==0}<svg width="100%" height="140" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Image cap"><rect width="100%" height="100%" fill="#fafafa" /><text x="50%" y="50%" fill="#666666" dy=".3em">暂无图片</text></svg>{else}<img src="{$rs[pic]}" alt="{$rs[title]}" />{/if}</a></div>
		<div class="artlist-item-body">
			<a href="{$rs[link]}" title="{$rs[title]}" target="_blank">
				<div class="title">{$rs[title]}</div>
				<div class="desc">{cutstr(nohtml($rs[intro]),220,1)}</div>
			</a>
			{php $tags=jsdecode($rs[tagslist])}
			{if count($tags)>0}
			<div class="tags">
				<i class="ui-icon-tags mr-sm"></i>
				{foreach $tags as $key=>$rt}
					<a href="{N('taglist','','id='.$rt['id'].'')}" target="_blank" class="btn btn-sm">{$rt['name']}</a>
				{/foreach}
			</div>
			{/if}
		</div>
		<div class="artlist-item-date">{date('m-d',$rs[createdate])}</div>
	</div>
	{/sdcms:rs}
</div>
{if $total_rs>0}<div class="page page-center page-mid mt-20"><ul>{$showpage}</ul></div>{/if}