if($no%2 != 0) { $lstemp=‘<li> <div class="case-l fl fadeInDown wow"> <img src="‘.$r[titlepic].‘"> </div> <div class="case-r fr fadeInUp wow" data-wow-delay="0.5s"> <div class="case-rnr"> <h1>‘.$r[title].‘</h1> <p>‘.$r[smalltext].‘</p> <a href="‘.$r[titleurl].‘">MORE >></a> </div> </div> </li>‘; }else{ $lstemp=‘<li class="case01"> <div class="case-r fl fadeInDown wow"> <div class="case-rnr"> <h1>‘.$r[title].‘</h1> <p>‘.$r[smalltext].‘</p> <a href="‘.$r[titleurl].‘">MORE >></a> </div> </div> <div class="case-l fr fadeInUp wow" data-wow-delay="0.5s"> <img src="‘.$r[titlepic].‘"> </div> </li>‘; } $listtemp="$lstemp";
记得开启列表内容模板的使用程序代码
原文地址:https://www.cnblogs.com/programmer-1/p/12672329.html
时间: 2024-11-05 06:27:53