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-debian/modules/search/views/search_link.html.php

23 lines
820 B
PHP
Raw Normal View History

2013-04-04 09:26:00 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<form action="<?= url::site("search") ?>" id="g-quick-search-form" class="g-short-form">
2013-04-04 09:26:06 +00:00
<? if (isset($item)): ?>
<? $album_id = $item->is_album() ? $item->id : $item->parent_id; ?>
<? else: ?>
<? $album_id = item::root()->id; ?>
<? endif; ?>
2013-04-04 09:26:00 +00:00
<ul>
<li>
2013-04-04 09:26:06 +00:00
<? if ($album_id == item::root()->id): ?>
<label for="g-search"><?= t("Search the gallery") ?></label>
<? else: ?>
<label for="g-search"><?= t("Search this album") ?></label>
<? endif; ?>
<input type="hidden" name="album" value="<?= $album_id ?>" />
2013-04-04 09:26:00 +00:00
<input type="text" name="q" id="g-search" class="text" />
</li>
<li>
<input type="submit" value="<?= t("Go")->for_html_attr() ?>" class="submit" />
</li>
</ul>
</form>