예제 #1
0
파일: favorites.php 프로젝트: rb26/zenphoto
					<!-- 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 -->
예제 #2
0
/**
 * Get the URL of the next album in the gallery.
 *
 * @return string
 */
function getNextAlbumURL()
{
    $nextalbum = getNextAlbum();
    if ($nextalbum) {
        return $nextalbum->getLink();
    }
    return false;
}
예제 #3
0
    echo getPrevAlbumURL();
    ?>
" title="<?php 
    echo html_encode($albumnav->getTitle());
    ?>
"><?php 
    echo '&larr; ' . 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 . ' &rarr;';
    ?>
</a>
								<?php 
}
?>
예제 #4
0
        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 
예제 #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 
/**
 * 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;
}