function fill_gallery($gallery) { $count = 1; ?> <div class="row"> <div class="gallery col-9"> <p><em>Gallery</em> </p> <div class="row"> <?php foreach ($gallery as $piece) { image_content($piece, $count); $count++; } ?> </div> <!--end row--> </div><!--end gallery--> </div><!--end row gallery--> <?php }
function profile_image($id) { return image_content($id . '/profile.jpg'); }