<!-- Subalbum Navigation --> <div class="albnav"> <div class="albprevious"> <?php $album = getPrevAlbum(); if (is_null($album)) { echo '<div class="albdisabledlink">« ' . gettext('prev') . '</div>'; } else { echo '<a href="' . $album->getLink() . '" title="' . html_encode($album->getTitle()) . '">« ' . gettext('prev') . '</a>'; } ?> </div> <!-- albprevious --> <div class="albnext"> <?php $album = getNextAlbum(); if (is_null($album)) { echo '<div class="albdisabledlink">' . gettext('next') . ' »</div>'; } else { echo '<a href="' . $album->getLink() . '" title="' . html_encode($album->getTitle()) . '">' . gettext('next') . ' »</a>'; } ?> </div><!-- albnext --> <?php if (getOption('Allow_search')) { printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png', gettext('Search gallery')); } ?> </div> <!-- header --> <!-- Logo -->
/** * Get the URL of the next album in the gallery. * * @return string */ function getNextAlbumURL() { $nextalbum = getNextAlbum(); if ($nextalbum) { return $nextalbum->getLink(); } return false; }
echo getPrevAlbumURL(); ?> " title="<?php echo html_encode($albumnav->getTitle()); ?> "><?php echo '← ' . gettext('prev') . ' ' . $linklabel; ?> </a> <?php } ?> </div> <div class="image-next"> <?php $albumnav = getNextAlbum(); if (!is_null($albumnav)) { ?> <a href="<?php echo getNextAlbumURL(); ?> " title="<?php echo html_encode($albumnav->getTitle()); ?> "><?php echo gettext('next') . ' ' . $linklabel . ' →'; ?> </a> <?php } ?>
echo gettext("Prev album"); ?> </a> <?php } else { ?> <span class="button prev-link"><i class="fa fa-caret-left"></i> <?php echo gettext("Prev Album"); ?> </span> <?php } ?> <?php if ($next = getNextAlbum()) { ?> <a class="button next-link" href="<?php echo html_encode(getNextAlbumURL()); ?> " title="<?php echo gettext('Next album') . ': ' . html_encode($next->getTitle()); ?> "><?php echo gettext("Next album"); ?> <i class="fa fa-caret-right"></i></a> <?php } else { ?> <span class="button next-link"><?php
?> <?php printCodeblock(2); footer(); ?> </div> <p style="clear: both;"></p> </div> <!-- end content --> <span class="clear"></span> </div> </div> </div> <div class="sidebar"> <div id="rightsidebar"> <?php $nextalbum = getNextAlbum(); $prevalbum = getPrevAlbum(); if ($nextalbum || $prevalbum) { ?> <h2><?php echo gettext('Album Navigation'); ?> </h2> <?php if ($nextalbum) { ?> <div id="nextalbum" class="slides"> <a href="<?php echo html_encode(getNextAlbumURL()); ?> " title="<?php
/** * Get the URL of the next album in the gallery. * * @return string */ function getNextAlbumURL() { $nextalbum = getNextAlbum(); if ($nextalbum) { return rewrite_path("/" . pathurlencode($nextalbum->name), "/index.php?album=" . pathurlencode($nextalbum->name)); } return false; }