本文整理汇总了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 {
示例2: printCustomPageURL
printCustomPageURL(getGalleryTitle(), 'gallery');
?>
<?php
}
?>
» <?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;
}
?>