Example #1
0
	<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 {
Example #2
0
    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;
}
?>