<?php
/*
* buzzword
* Copyright (c) 2003 Jon Tai
*
* $Id: sidebar.inc,v 1.2 2003/12/10 00:23:27 jon Exp $
*
* This file is part of buzzword.
*
* buzzword is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* buzzword is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with buzzword; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function get_sidebar_gallery_galleries($gallery) {
$other_galleries = '';
if ($gallery->gallery_key > 0) {
$siblings = get_gallery_galleries($gallery->parent->gallery_key);
foreach ($siblings as $sibling)
$other_galleries .= "<a href=\"index.php?g={$sibling->gallery_key}\">".$sibling->get_display_short_title()."</a><br>\n";
}
return ($other_galleries == '') ? "no other galleries<br>\n" : $other_galleries;
}
?>