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


PHP Gallery::getNumAlbums方法代码示例

本文整理汇总了PHP中Gallery::getNumAlbums方法的典型用法代码示例。如果您正苦于以下问题:PHP Gallery::getNumAlbums方法的具体用法?PHP Gallery::getNumAlbums怎么用?PHP Gallery::getNumAlbums使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gallery的用法示例。


在下文中一共展示了Gallery::getNumAlbums方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: gettext

    // foreach end
    echo "</table>";
}
echo '</head>';
?>

<body>
<?php 
printLogoAndLinks();
?>
<div id="main">
<a name="top"></a>
<?php 
printTabs();
// getting the counts
$albumcount = $gallery->getNumAlbums(true);
$albumscount_unpub = $albumcount - $gallery->getNumAlbums(true, true);
$imagecount = $gallery->getNumImages();
$imagecount_unpub = $imagecount - $gallery->getNumImages(true);
?>
<div id="content">
<?php 
zp_apply_filter('admin_note', 'statistics', '');
?>
<h1><?php 
echo gettext("Gallery Statistics");
?>
</h1>
<p><?php 
echo gettext("This page shows more detailed statistics of your gallery. For album statistics the bar graph always shows the total number of images in that album. For image statistics always the album the image is in is shown.<br />Un-published items are marked in dark red. Images are marked un-published if their (direct) album is, too.");
?>
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:gallery_statistics.php

示例2: printf

</h2>
			<ul>
				<li>
				<?php 
        $t = $gallery->getNumImages();
        $c = $t - $gallery->getNumImages(true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Image (%2$u un-published)', '<strong>%1$u</strong> Images (%2$u un-published)', $t), $t, $c);
        } else {
            printf(ngettext('<strong>%u</strong> Image', '<strong>%u</strong> Images', $t), $t);
        }
        ?>
				</li>
				<li>
				<?php 
        $t = $gallery->getNumAlbums(true);
        $c = $t - $gallery->getNumAlbums(true, true);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Album (%2$u un-published)', '<strong>%1$u</strong> Albums (%2$u un-published)', $t), $t, $c);
        } else {
            printf(ngettext('<strong>%u</strong> Album', '<strong>%u</strong> Albums', $t), $t);
        }
        ?>
				</li>
				<li>
				<?php 
        $t = $gallery->getNumComments(true);
        $c = $t - $gallery->getNumComments(false);
        if ($c > 0) {
            printf(ngettext('<strong>%1$u</strong> Comment (%2$u in moderation)', '<strong>%1$u</strong> Comments (%2$u in moderation)', $t), $t, $c);
        } else {
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:admin.php


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