实例:
<li data-aos="fade-up">
<div class="ny_news_ul_tu"><a href="/memo/digest/2021-09-08/5.html"><img src="/d/file/p/20210908/ea9649a0f23141b14f85cd02a71da944.jpg" /></a></div>
<div class="ny_news_ul_p">
<h2><a href="/memo/digest/2021-09-08/5.html">本站首页“新闻资讯”板块模板修改的几个细节</a></h2>
<p>记录了六个小细节,可以有更多启发。</p>
</div>
<div class="ny_news_ul_a"><a href="/memo/digest/2021-09-08/5.html"><img src="/skin/game/images/aaa2.png" /></a></div>
</li>
<li data-aos="fade-up">
<div class="ny_news_ul_time"><b>08</b>2021/09</div>
<div class="ny_news_ul_p">
<h2><a href="/memo/digest/2021-09-08/4.html">本站底部公共变量采用灵动标签修改结果</a></h2>
<p>灵动标签调用底部导航效果的修改</p>
</div>
<div class="ny_news_ul_a"><a href="/memo/digest/2021-09-08/4.html"><img src="/skin/game/images/aaa2.png" /></a></div>
</li>
<li data-aos="fade-up">
<div class="ny_news_ul_time"><b>08</b>2021/09</div>
<div class="ny_news_ul_p">
<h2><a href="/memo/digest/2021-09-08/3.html">本站头部公共变量采用灵动标签修改结果</a></h2>
<p>灵动标签调用父栏目及其下拉子栏目的方法</p>
</div>
<div class="ny_news_ul_a"><a href="/memo/digest/2021-09-08/3.html"><img src="/skin/game/images/aaa2.png" /></a></div>
</li>
演示页面:http://game.sssw.top/memo/digest/
演示图:
后台模板代码:
$newstime=$r[newstime];//获取信息发布时间
$year=format_datetime($newstime,"Y");//单独获取年
$month=format_datetime($newstime,"m");//单独获取月
$day=format_datetime($newstime,"d");//单独获取日
if(empty($r[titlepic]))
{
$listtemp='<li data-aos="fade-up">
<div class="ny_news_ul_time"><b>'.$day.'</b>'.$year.'/'.$month.'</div>
<div class="ny_news_ul_p">
<h2><a href="[!--titleurl--]">[!--title--]</a></h2>
<p>[!--smalltext--]</p>
</div>
<div class="ny_news_ul_a"><a href="[!--titleurl--]"><img src="[!--news.url--]skin/game/images/aaa2.png" /></a></div>
</li>';
}
else
{
$listtemp='<li class="xin_youtu" data-aos="fade-up">
<div class="ny_news_ul_tu"><a href="[!--titleurl--]"><img src="[!--titlepic--]"></a></div>
<div class="ny_news_ul_p">
<h2><a href="[!--titleurl--]">[!--title--]</a></h2>
<p>[!--smalltext--]</p>
</div>
<div class="ny_news_ul_a"><a href="[!--titleurl--]"><img src="[!--news.url--]skin/game/images/aaa2.png" /></a></div>
</li>';
}
这是评论测试
飞歌导航东方红烦得很
这是新的一条评论
未来一年,中国的移动支付市场会是什么样?