本文整理汇总了PHP中next_album函数的典型用法代码示例。如果您正苦于以下问题:PHP next_album函数的具体用法?PHP next_album怎么用?PHP next_album使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了next_album函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printf
if (getOption('search_no_images')) {
if ($numpages + $numnews > 0) {
printf(gettext('Albums (%s)'), $numalbums);
}
} else {
printf(gettext('Albums (%1$s) & Images (%2$s)'), $numalbums, $numimages);
}
}
?>
</h3>
<?php
if (getNumAlbums() != 0) {
?>
<div id="albums">
<?php
while (next_album()) {
?>
<div class="album">
<div class="thumb">
<a href="<?php
echo html_encode(getAlbumURL());
?>
" title="<?php
echo gettext('View album:');
?>
<?php
printBareAlbumTitle();
?>
"><?php
printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95);
?>
示例2: getNextPageURL
}
if (hasNextPage()) {
$link = getNextPageURL();
} else {
$link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Next Page\">»</a></li>";
?>
</ul>
</div>
<div id="albumList">
<?php
$albumsPerPage = getOption('albums_per_page');
$count = 1;
while (next_album() && $count <= $albumsPerPage) {
?>
<div class="image">
<a href="<?php
echo getAlbumURL();
?>
"
title="<?php
if (getAlbumDesc() == "") {
echo getAlbumTitle();
} else {
echo getAlbumTitle() . ' - ' . getAlbumDesc();
}
?>
"><img
示例3: while
$showall = true;
} else {
$showall = false;
}
include 'header.php';
?>
<div class="container" id="middle">
<div class="row row-sdscroll">
<div id="content">
<div id="spinner"></div>
<div id="makeMeScrollable">
<?php
if (getOption('zpbase_galhomeop') == 'albums') {
// latest albums
while (next_album($showall)) {
?>
<div class="sdscroll-item">
<a class="album-thumb" href="<?php
echo html_encode(getAlbumURL());
?>
" title="<?php
printAlbumTitle();
?>
">
<?php
printCustomAlbumThumbImage(getBareAlbumTitle(), null, null, getOption('zpbase_sds_maxheight'), null, null, null, null, 'remove-attributes');
?>
</a>
<div class="sdscroll-albuminfo">
<h3><?php
示例4: printRSSLink
printRSSLink('Collection', '', gettext('Album RSS'), '', false);
?>
</span>
<?php
}
}
?>
</div>
</div>
<script>
var data = [
<?php
$c = 0;
if (isAlbumPage()) {
while (next_album(true)) {
if ($c == 0) {
echo '{' . "\n";
} else {
echo ',{' . "\n";
}
echo 'thumb: \'' . getAlbumThumb() . '\',' . "\n";
echo 'image: \'' . getCustomAlbumThumb(getOption('image_size')) . '\',' . "\n";
echo 'big: \'' . getCustomAlbumThumb(getOption('zpbase_galbigsize')) . '\',' . "\n";
echo 'title: \'' . html_encode(getBareAlbumTitle()) . '\',' . "\n";
if (getNumAlbums() > 0 && getNumImages() > 0) {
$divider = '/ ';
} else {
$divider = '';
}
if (getNumAlbums() > 0) {
示例5: setOption
">
<ul>
<?php
if ($zpgal_nogal) {
$lastcolnum = 3;
$listall = 'true';
setOption('albums_per_row', '3', false);
} else {
$lastcolnum = 2;
$listall = '';
setOption('albums_per_row', '2', false);
}
?>
<?php
$x = 1;
while (next_album($listall)) {
$lastcol = "";
if ($x == $lastcolnum) {
$lastcol = " class='lastcol'";
$x = 0;
}
?>
<li<?php
echo $lastcol;
?>
>
<a class="album-thumb" href="<?php
echo htmlspecialchars(getAlbumURL());
?>
" title="<?php
echo gettext('View album:');
示例6: getGalleryTitle
<h1><?php
echo getGalleryTitle();
?>
</h1>
<div class="galleries">
<h2><?php
echo gettext('Recently Updated Galleries');
?>
</h2>
<ul>
<?php
$counter = 0;
$_zp_gallery->setSortDirection(true);
$_zp_gallery->setSortType('ID');
while (next_album() and $counter < 6) {
?>
<li class="gal">
<h3><a href="<?php
echo html_encode(getAlbumLinkURL());
?>
" title="<?php
printf(gettext("View album: %s"), getAnnotatedAlbumTitle());
?>
"><?php
printAlbumTitle();
?>
</a></h3>
<a href="<?php
echo html_encode(getAlbumLinkURL());
?>