<tbody> <tr class="even"> <th>Amenities</th> <td><?php echo $amenities; ?> </td> </tr> </tbody> </table> <?php Yii::import('ext.jqPrettyPhoto'); $options = array('slideshow' => 5000, 'autoplay_slideshow' => false, 'show_title' => false); jqPrettyPhoto::addPretty('.gallery_prettyphoto a', jqPrettyPhoto::PRETTY_GALLERY, jqPrettyPhoto::THEME_FACEBOOK, $options); jqPrettyPhoto::addPretty('.details_prettyphoto a', jqPrettyPhoto::PRETTY_SINGLE, jqPrettyPhoto::THEME_FACEBOOK, $options); ?> <div class="gallery_prettyphoto"> <?php if ($images) { echo '<h2>Images</h2>'; echo '<table border="0" style="width:300px;">'; echo '<tr>'; foreach ($images as $i => $image) { if ($i % 5 == 0) { echo '<tr>'; } echo '<td><a href="' . $image . '" rel="prettyPhoto[gallery]"><img src="' . $image . '" width="100" alt="" /></a></td>'; if ($i % 5 == 4) { echo '</tr>'; }
} else { ?> <i>No amenities listed yet.</i> <?php } ?> </fieldset> </div> </div> <div id="gallery" class="tab_container"> <?php if ($propertyImages) { echo '<h1 class="heading">Images</h1>'; Yii::import('ext.jqPrettyPhoto'); $options = array('slideshow' => 5000, 'autoplay_slideshow' => false, 'show_title' => false); jqPrettyPhoto::addPretty('.gallery_prettyphoto a', jqPrettyPhoto::PRETTY_GALLERY, jqPrettyPhoto::THEME_FACEBOOK, $options); echo '<div class="gallery_prettyphoto"><ul>'; foreach ($propertyImages as $propertyImage) { echo '<li><a href="' . $propertyImage . '" rel="property[gallery]"><img src="' . $propertyImage . '" width="100" alt="" /></a></li>'; } echo '</ul>'; echo '</div>'; } else { ?> <i>No Images Available.</i> <?php } ?> <br clear="all" /> <?php if ($property->video_url) { echo '<h1 class="heading">Video</h1>';
if (($c + 1) % 4 == 0) { echo '<div class="visible-lg clearfix"> </div>'; } if (($c + 1) % 3 == 0) { echo '<div class="visible-md clearfix"> </div>'; } if (($c + 1) % 3 == 0) { echo '<div class="visible-sm clearfix"> </div>'; } if (($c + 1) % 2 == 0) { echo '<div class="visible-xs clearfix"> </div>'; } ?> <?php } ?> </div> <?php } ?> <br/> <br/> <?php foreach ($galleries as $g) { $g->print_all(); } jqPrettyPhoto::addPretty('.gallery a.boxpopup', jqPrettyPhoto::PRETTY_GALLERY, jqPrettyPhoto::THEME_FACEBOOK); ?> </div>