I am trying to run the following foreach on some images and it doesn't like my statement:
<?php foreach ($images as $image) {
if (count($images) > 1) {
'<img src="'.$image.'" class="slide">
<a href="#" class="zoom"><i class="icon-popup"></i></a>'
} else {
'<img class="slide" src="no-image-large.jpg">';
}
endforeach ?>
Being a non-php guru, where have I gone wrong?
Aucun commentaire:
Enregistrer un commentaire