列表内容模板:
$fr=$empire->fetch1("select * from {$dbtbpre}ecms_photo where id='$r[id]'");
$rexp="\r\n";
$fexp="::::::";
$rr=explode($rexp,$fr[morepic]);
$count=count($rr);
$mynum=count(explode(egetzy('rn'),$r['morepic']));
$jhcnum=min(5,$mynum+1);
$listtemp="";
for($i=1;$i<$jhcnum;$i++)
{
$frt=explode($fexp,$rr[$i-1]);
$listtemp.=('<img src="'.$frt[1].'" class="wp-post-image" alt="'.$frt[2].'" />');
}
$listtemp=('<div class="article-wrap">
<article id="post-1830" class="post-1830 post type-post status-publish format-standard has-post-thumbnail hentry category-blog category-sioux-falls-startup-community">
<header class="entry-header">
<h1 class="entry-title"><a href="[!--titleurl--]" title="[!--oldtitle--]">
[!--oldtitle--]
</a></h1>
<div class="entry-meta"> <span class="sep">发表于:</span>
<time class="entry-date" datetime="2018-12-03T19:31:58+00:00" pubdate>
[!--newstime--]
</time>
<span class="sep comments-link">关键词:</span>
<span class="author vcard">'.$tags.'</span>
<span class="comments-link">
<span class="leave-reply">阅读次数:[!--onclick--]</span>
</span>
</div>
<!-- .entry-meta -->
</header>
<!-- .entry-header -->
<div class="entry-content">
<div class="featured-image-wrapper attachment-small wp-post-image">
<div class="featured-image"><div id="'.$fr[id].'"><div class="featured-image-inner">'.$listtemp.'</div></div><!-- .featured-image-inner (end) --></div>
<!-- .featured-image (end) --></div>
<!-- .featured-image-wrapper (end) -->
<div class="clear"></div>
<p>[!--picsay--]…[<font color="#e55a1e">'.$mynum.'图</font>]</p>
<div class="clear"></div>
<a href="[!--titleurl--]" title="[!--oldtitle--]" class="tb-button tb-button-small default read-more" target="_self"><span>查看全文</span></a>
<div class="clear"></div>
</div>
<!-- .entry-content -->
</article>
<!-- #post-1830 -->
</div>');