function getImage_AlbumCount() { $c = getNumSubalbums(); if ($c > 0) { $result = "\n " . sprintf(gettext("%u albums(s)"), $c); } else { $result = ''; } $c = getNumImages(); if ($c > 0) { $result .= "\n " . sprintf(gettext("%u images(s)"), $c); } return $result; }
<br /> <p align="center"><?php echo gettext('Album is empty'); ?> </p> </div> </div> <!-- main3 --> <?php } } ?> <!-- Page Numbers --> <div id="pagenumbers"> <?php if (getNumSubalbums() != 0 || !$oneImagePage) { printPageListWithNav("« " . gettext('prev'), gettext('next') . " »", $oneImagePage); } ?> </div> <!-- pagenumbers --> </div> <!-- subcontent --> <!-- Footer --> <br style="clear:all" /> <?php printFooter('album'); ?>
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, 210, null, 210, 60); ?> </a> <h3><a href="<?php echo htmlspecialchars(getAlbumLinkURL()); ?> " title="<?php printf(gettext('View album: %s'), getAnnotatedAlbumTitle()); ?> "><?php printAlbumTitle(); ?> </a></h3> <p> <?php $anumber = getNumSubalbums(); $inumber = getNumImages(); if ($anumber > 0 || $inumber > 0) { echo '<p><em>('; if ($anumber == 0 && $inumber == 1) { printf(gettext('1 photo')); } else { if ($anumber == 0 && $inumber > 1) { printf(gettext('%u photos'), $inumber); } else { if ($anumber == 1 && $inumber == 1) { printf(gettext('1 album, 1 photo')); } else { if ($anumber > 1 && $inumber == 1) { printf(gettext('%u albums, 1 photo'), $anumber); } else {
/** * Returns true if this page has album thumbs on it * * @return bool */ function isAlbumPage() { global $_zp_page; if (in_context(ZP_SEARCH)) { $pageCount = Ceil(getNumAlbums() / getOption('albums_per_page')); } else { $pageCount = Ceil(getNumSubalbums() / getOption('albums_per_page')); } return $_zp_page <= $pageCount; }