當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。