图片为代码调用效果
灵动标签实例代码:
[e:loop={2,4,0,0}]
<?php
$ths='';
if($bqno==1)
{
$ths="<li><img src='".
$bqr['titlepic']."' alt='".
$bqr['title']."' class='fl img' />
<div class='lifr fr'> <a href='".
$bqsr['titleurl']."' title='".
$bqr['title']."' class='litit'>".
$bqr['title']."</a> <span class='date'>".
date('Y-m-d',$bqr[newstime])."</span>
<div class='memo'> ".
esub($bqr[smalltext],90)." </div>
</div>
</li>";
}
?>
<?=$ths?>
<li><a href="<?=$bqsr['titleurl']?>" title="<?=$bqr['title']?>">
<?=$bqr['title']?>
<span class="date fr">
<?=date('Y-m-d',$bqr[newstime])?>
</span></a></li>
[/e:loop]