<?php 
if (!empty($photos_of_stop)) {
    ?>

			<div class="callbacks_container">
		        <ul class="rslides" id="responsive_slider">
				    <?php 
    foreach ($photos_of_stop as $photo_of_stop) {
        ?>
					    <li>
							<img src="<?php 
        echo '../../' . $photo_of_stop->image_path();
        ?>
" alt="">
							<p class="caption"><?php 
        echo PhotoType::find_by_id($photo_of_stop->photo_type)->photo_type_name;
        ?>
</p>
						</li>
				    <?php 
    }
    ?>
				</ul>
	        </div>

			<?php 
} else {
    ?>

			<h5>No photos of the Bus Stop have been uploaded yet!</h5>
			<br /><br />
 /**
  * Adds an object to the instance pool.
  *
  * Propel keeps cached copies of objects in an instance pool when they are retrieved
  * from the database.  In some cases -- especially when you override doSelect*()
  * methods in your stub classes -- you may need to explicitly add objects
  * to the cache in order to ensure that the same objects are always returned by doSelect*()
  * and retrieveByPK*() calls.
  *
  * @param      PhotoType $value A PhotoType object.
  * @param      string $key (optional) key to use for instance map (for performance boost if key was already calculated externally).
  */
 public static function addInstanceToPool(PhotoType $obj, $key = null)
 {
     if (Propel::isInstancePoolingEnabled()) {
         if ($key === null) {
             $key = (string) $obj->getId();
         }
         // if key === null
         self::$instances[$key] = $obj;
     }
 }