|
灵动标签调用置顶文章的办法
调用置顶文章
灵动标签
- [e:loop={6,1,0,1,'istop=1'}]
- <li><i><a href="<?=$bqsr[titleurl]?>"><span class="tnum">1</span><span class="tpic"><img src="<?=$bqr[bigpic]?>"></span><span class="toptext"><?=$bqr[title]?></span></a></i></li>
- [/e:loop]
复制代码
判断语句不同格式调用方法:
- [e:loop={6,3,0,1,'istop=3'}]
- <?
- if($bqno==1)
- {
- ?>
- <li><i><a href="<?=$bqsr[titleurl]?>"><span class="tnum">2</span><span class="tpic"><img src="<?=$bqr[titlepic]?>"></span><span class="toptext"><?=$bqr[title]?></span></a></i></li>
- <?
- }
- else if($bqno==2)
- {
- ?>
- <li><i><a href="<?=$bqsr[titleurl]?>"><span class="tnum">3</span><span class="tpic"><img src="<?=$bqr[titlepic]?>"></span><span class="toptext"><?=$bqr[title]?></span></a></i></li>
- <?
- }
- else{
- ?>
- <li><i><a href="<?=$bqsr[titleurl]?>"><span class="tnum">4</span><span class="tpic"><img src="<?=$bqr[titlepic]?>"></span><span class="toptext"><?=$bqr[title]?></span></a></i></li>
- <?
- }
- ?>
- [/e:loop]
复制代码
|
|