本文整理汇总了PHP中getPrevAlbum函数的典型用法代码示例。如果您正苦于以下问题:PHP getPrevAlbum函数的具体用法?PHP getPrevAlbum怎么用?PHP getPrevAlbum使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPrevAlbum函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: zp_apply_filter
</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>';
}
示例2: getPrevAlbumURL
/**
* Get the URL of the previous album in the gallery.
*
* @return string
*/
function getPrevAlbumURL()
{
$prevalbum = getPrevAlbum();
if ($prevalbum) {
return $prevalbum->getLink();
}
return false;
}
示例3: gettext
<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 '← ' . gettext('prev') . ' ' . $linklabel;
?>
</a>
<?php
}
?>
示例4: printPageListWithNav
?>
<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
示例5: printCodeblock
<?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');
示例6: getPrevAlbumURL
/**
* 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;
}