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


PHP isArchive函数代码示例

本文整理汇总了PHP中isArchive函数的典型用法代码示例。如果您正苦于以下问题:PHP isArchive函数的具体用法?PHP isArchive怎么用?PHP isArchive使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: zp_apply_filter

	<body>
		<?php 
zp_apply_filter('theme_body_open');
?>
		<div id="main">
			<div id="header">
				<h1><?php 
printGalleryTitle();
?>
</h1>
				<?php 
$zenpage = extensionEnabled('zenpage');
$numimages = getNumImages();
$numalbums = getNumAlbums();
$total = $numimages + $numalbums;
if ($zenpage && !isArchive()) {
    $numpages = getNumPages();
    $numnews = getNumNews();
    $total = $total + $numnews + $numpages;
} else {
    $numpages = $numnews = 0;
}
if ($total == 0) {
    $_zp_current_search->clearSearchWords();
}
if (getOption('Allow_search')) {
    $categorylist = $_zp_current_search->getCategoryList();
    if (is_array($categorylist)) {
        $catlist = array('news' => $categorylist, 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, 'search', NULL, gettext('Search category'), NULL, NULL, $catlist);
    } else {
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php

示例2: printCustomPageURL

    printCustomPageURL(getGalleryTitle(), 'gallery');
    ?>
		<?php 
}
?>
		&raquo;&nbsp;<?php 
echo '<em>' . gettext('Search') . '</em>';
?>
</h3>
</div>

<?php 
$numimages = getNumImages();
$numalbums = getNumAlbums();
$total1 = $numimages + $numalbums;
if ($_zenpage_enabled && !isArchive()) {
    $numnews = getNumNews();
    $numpages = getNumPages();
} else {
    $numnews = $numpages = 0;
}
$total = $total1 + $numnews + $numpages;
$searchwords = getSearchWords();
$searchdate = getSearchDate();
if (!empty($searchdate)) {
    if (!empty($searchwords)) {
        $searchwords .= ": ";
    }
    $searchwords .= $searchdate;
}
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.php


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