1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/themes/greydragon/views/search.html.php

38 lines
998 B
PHP
Raw Normal View History

2009-11-30 07:09:08 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-search-results">
<h1><?= t("Search Results for \"%term\"", array("term" => $q)) ?> </h1>
<? if (count($items)): ?>
2009-12-03 06:00:03 +00:00
<? if (module::get_var("th_greydragon", "photonav_top")): ?>
<?= $theme->paginator() ?>
<? endif ?>
2009-11-30 07:09:08 +00:00
<ul id="g-album-grid">
<? foreach ($items as $item): ?>
<? $item_class = "g-photo"; ?>
<? if ($item->is_album()): ?>
<? $item_class = "g-album"; ?>
<? endif ?>
<li class="g-item <?= $item_class ?>">
<p class="g-thumbcrop"><a href="<?= $item->url() ?>">
<?= $item->thumb_img() ?>
</a></p>
<h2><a href="<?= $item->url() ?>"><?= html::purify($item->title) ?></a></h2>
</li>
<? endforeach ?>
</ul>
2009-12-03 06:00:03 +00:00
<? if (module::get_var("th_greydragon", "photonav_bottom")): ?>
<?= $theme->paginator() ?>
<? endif ?>
2009-11-30 07:09:08 +00:00
<? else: ?>
<p>&nbsp;</p>
<p><?= t("No results found for <b>%term</b>", array("term" => $q)) ?></p>
<? endif; ?>
</div>