static function getPlayer($album, $controls = false, $width = NULL, $height = NULL) { $albumobj = NULL; if (!empty($album)) { $albumobj = newAlbum($album, NULL, true); } if (is_object($albumobj) && $albumobj->loaded) { $returnpath = $albumobj->getLink(); return slideshow::getShow(false, false, $albumobj, NULL, $width, $height, false, false, false, $controls, $returnpath, 0); } else { return '<div class="errorbox" id="message"><h2>' . gettext('Invalid slideshow album name!') . '</h2></div>'; } }