Example #1
0
		</head>

		<body onload="blurAnchors()">
			<?php 
    zp_apply_filter('theme_body_open');
    ?>

			<!-- Wrap Header -->
			<div id="header">
				<div id="gallerytitle">

					<!-- 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>';
    }
/**
 * Get the URL of the previous album in the gallery.
 *
 * @return string
 */
function getPrevAlbumURL()
{
    $prevalbum = getPrevAlbum();
    if ($prevalbum) {
        return $prevalbum->getLink();
    }
    return false;
}
Example #3
0
				<div id="sidebar-inner">
					<div id="sidebar-padding">
						<div class="image-nav">
							<?php 
if ($_zp_current_album->getParent()) {
    $linklabel = gettext('subalbum');
    $parent = $_zp_current_album->getParent();
    $totalalbums = $parent->getNumAlbums();
} else {
    $linklabel = gettext('album');
    $totalalbums = $_zp_gallery->getNumAlbums();
}
?>
							<div class="image-prev">
								<?php 
$albumnav = getPrevAlbum();
if (!is_null($albumnav)) {
    ?>
								<a href="<?php 
    echo getPrevAlbumURL();
    ?>
" title="<?php 
    echo html_encode($albumnav->getTitle());
    ?>
"><?php 
    echo '&larr; ' . gettext('prev') . ' ' . $linklabel;
    ?>
</a>
								<?php 
}
?>
Example #4
0
    ?>
<div class="pad"><hr /><?php 
    printPageListWithNav('« ' . gettext('prev'), gettext('next') . ' »', false, true, 'pagination');
    ?>
</div><?php 
}
?>
				</div>
				
				<div class="gallery-sidebar pad">
					<?php 
if ($_zp_gallery_page == 'album.php') {
    ?>
					<div class="single-nav">
						<?php 
    if ($prev = getPrevAlbum()) {
        ?>
						<a class="button prev-link" href="<?php 
        echo html_encode(getPrevAlbumURL());
        ?>
" title="<?php 
        echo gettext('Prev album') . ': ' . html_encode($prev->getTitle());
        ?>
"><i class="fa fa-caret-left"></i> <?php 
        echo gettext("Prev album");
        ?>
</a>
						<?php 
    } else {
        ?>
						<span class="button prev-link"><i class="fa fa-caret-left"></i> <?php 
Example #5
0
										<?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 
            echo gettext('Next album');
/**
 * Get the URL of the previous album in the gallery.
 *
 * @return string
 */
function getPrevAlbumURL()
{
    $prevalbum = getPrevAlbum();
    if ($prevalbum) {
        return rewrite_path("/" . pathurlencode($prevalbum->name), "/index.php?album=" . pathurlencode($prevalbum->name));
    }
    return false;
}