我是新来的,寻找这部分代码的解决方案,只在标题=样式或颜色时进行循环。
foreach ($pp_fileds as $f) {
if ( !empty($f['title']) and !empty($f["id"]) and array_key_exists("owlabpfl_".$f["id"] , $owlabpfl_meta) ){
echo '
<li>
<div class="list-label">'.__($f['title'],'toranj').'</div>
<div class="list-des">'.$owlabpfl_meta["owlabpfl_".$f["id"]][0].'</div><div class="list-des"><img src="http://factorymarco.ie/assets/'.__($f['title'],'toranj').'/'.$owlabpfl_meta["owlabpfl_".$f["id"]][0].'.jpg" alt="'.$owlabpfl_meta["owlabpfl_".$f["id"]][0].'"></div>
</li>
';
}
}