function showGalleries(&$galleries, $use_tables = true, $Itemid, $no_columns, $gallery_prefix, $show_catimg, $show_metabox) { global $zoom; if ($use_tables) { ?> <br /> <table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr> <?php } else { ?> <div class="zmg-album"> <?php } foreach ($galleries as $gallery) { if ($gallery->isMember()) { ZMG_Template_Gallery::showGalleryListButton($use_tables, $Itemid, $gallery, $no_columns, $gallery_prefix, $show_catimg, $show_metabox); } } if ($use_tables) { ?> </tr> </table> <?php } else { echo "</div>"; } }