当前位置: 首页>>代码示例>>PHP>>正文


PHP next_album函数代码示例

本文整理汇总了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);
        ?>
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php

示例2: getNextPageURL

}
if (hasNextPage()) {
    $link = getNextPageURL();
} else {
    $link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Next Page\">&raquo;</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
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:index.php

示例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 
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-sdscroll.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) {
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:album-galleria.php

示例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:');
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php

示例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());
    ?>
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:30,代码来源:index.php


注:本文中的next_album函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。