Esempio n. 1
0
        $albumlist = $_zp_current_search->getAlbumList();
        if (is_array($albumlist)) {
            $album_list = array('albums' => $albumlist, 'pages' => '0', 'news' => '0');
            printSearchForm(NULL, 'search', NULL, gettext('Search album'), NULL, NULL, $album_list);
        } else {
            printSearchForm("", "search", "", gettext("Search gallery"));
        }
    }
}
?>
			</div>

			<div id="breadcrumb">
				<h2><?php 
printGalleryIndexURL(' » ');
printSearchBreadcrumb(" » ");
?>
				</h2>
			</div>

			<div id="content">
				<div id="content-left">
					<?php 
$searchwords = getSearchWords();
$searchdate = getSearchDate();
if (!empty($searchdate)) {
    if (!empty($searchwords)) {
        $searchwords .= ": ";
    }
    $searchwords .= $searchdate;
}
Esempio n. 2
0
						<?php 
printHomeLink('', ' | ');
?>
						<a href="<?php 
echo html_encode(getGalleryIndexURL());
?>
" title="<?php 
echo 'Gallery Index';
?>
"><?php 
printGalleryTitle();
?>
</a>
					</span> |
					<?php 
printSearchBreadcrumb(' | ');
?>
				</h2>
			</div>
			<div id="padbox">
				<?php 
if (($total = getNumImages() + getNumAlbums()) > 0) {
    if (isset($_REQUEST['date'])) {
        $searchwords = getSearchDate();
    } else {
        $searchwords = getSearchWords();
    }
    echo '<p>' . sprintf(gettext('Total matches for <em>%1$s</em>: %2$u'), html_encode($searchwords), $total) . '</p>';
}
$c = 0;
?>
Esempio n. 3
0
	<body>
		<?php 
zp_apply_filter('theme_body_open');
?>
		<div data-role="page" id="mainpage">

			<?php 
jqm_printMainHeaderNav();
?>

			<div class="ui-content" role="main">
				<div class="content-primary">

					<h2><?php 
printSearchBreadcrumb();
?>
</h2>
					<?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) {
Esempio n. 4
0
								<div class="main section" id="main">
									<h2 id="gallerytitle">
										<?php 
printHomeLink('', ' » ');
?>
										<a href="<?php 
echo html_encode(getGalleryIndexURL());
?>
" title="<?php 
echo gettext('Gallery Index');
?>
"><?php 
echo html_encode(getGalleryTitle());
?>
</a> » <?php 
printSearchBreadcrumb(' » ');
?>
									</h2>

									<?php 
if ($total > 0) {
    ?>
										<p>
											<?php 
    printf(ngettext('%1$u Hit for <em>%2$s</em>', '%1$u Hits for <em>%2$s</em>', $total), $total, html_encode($searchwords));
    ?>
										</p>
										<?php 
} else {
    echo "<p>" . gettext('Sorry, no matches for your search.') . "</p>";
    $_zp_current_search->setSearchParams('words=');