<div class="slideshow">
    <ul class="slides">
       <?php foreach ($banners as $banner) { ?> 
            <?php if ($banner['link']) { ?>
                    <li class="slide"><a href="<?php echo $banner['link']; ?>" title="<?php echo $banner['title']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" /></a>
                    <p class="slide_desc"><?php echo $banner['title']; ?></p>
                    </li>
            <?php } else { ?>
                    <li class="slide">
                    	<img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" />
                    	<p class="slide_desc"><?php echo $banner['title']; ?></p>
                    </li>
            <?php } ?>
        <?php } ?>
    </ul>    

    <?php if($banners): ?>
    <div class="pagerWrap"></div>
    <?php endif; ?>
</div>