<?php
if(!empty($r[morepic])){
$morepic = $r['morepic'];
$mpr = explode(PHP_EOL, $morepic);
$mpcount = count($mpr);
for($mpi = 0; $mpi < $mpcount; $mpi++){
$mp = explode('::::::', $mpr[$mpi]);
$showpic .= '<a><img src="'.$mp[0].'" alt="'.$mp[2].'"><div></div></a>';
}
for($mpi = 0; $mpi < $mpcount; $mpi++){
$showjs = '<div class="moremedia"><section id="dg-container'.($no-1).'" class="dg-container"><div class="dg-wrapper"> '.$showpic.' </div></section><script type="text/javascript">$(function() {$("#dg-container'.($no-1).'").gallery({autoplay : true});});</script>';
}
}
$listtemp = '<div class="albumblock"><div class="titlepic"><a href="[!--titleurl--]" target="_blank" title="[!--title--]"><img src="[!--titlepic--]" title="[!--title--]" width="100%"/></a><div class="i"><a href="[!--titleurl--]" target="_blank" title="[!--title--]">《[!--title--]》 [!--ftitle--]</a></div></div>'.$showjs.'<div class="smalltext">[!--smalltext--]</div></div><div style="clear:both;"></div></div>';
?>