ruạṛ
<?php /** * output product summary into eg a category or search results * will append to $content * expects a product object $p to be present * checks for a string $image (url) else uses the default thumbnail * - eg see section_featured.php */ if($p && is_a($p,'product')) { if($image=='') { $image = $p->images[0]['thumbnail']; } $content .= '<li> <a href="'.$p->path.'" class="image"><img src="'.$image.'" alt="'.$p->name.'" /></a> <a href="'.$p->path.'">'.$p->name.'</a> </li> '; $image = ''; } ?>
cải xoăn