-
Notifications
You must be signed in to change notification settings - Fork 0
/
wittstock-search.html
20 lines (20 loc) · 1.61 KB
/
wittstock-search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php $this->yellow->layout("header") ?>
<main>
<h2><?php echo $this->yellow->page->getHtml("titleContent") ?></h2>
<form class="search-form" role="search" action="<?php echo $this->yellow->page->getLocation(true) ?>" method="post">
<p><label for="query"><?php echo $this->yellow->language->getTextHtml("searchButton") ?></label><br /><input class="form-control" type="search" name="query" id="query" value="<?php echo $this->yellow->page->getRequestHtml("query") ?>"<?php echo $this->yellow->page->get("status")=="none" ? " autofocus=\"autofocus\"" : "" ?> /></p>
<input class="btn search-btn" type="submit" value="<?php echo $this->yellow->language->getTextHtml("searchButton") ?>" />
<input type="hidden" name="clean-url" />
</form>
<?php if (count($this->yellow->page->getPages("search"))): ?>
<?php foreach ($this->yellow->page->getPages("search")->paginate($this->yellow->system->get("searchPaginationLimit")) as $page): ?>
<h2><a href="<?php echo $page->getLocation(true) ?>"><?php echo $page->getHtml("title") ?></a></h2>
<p><?php echo htmlspecialchars($this->yellow->toolbox->createTextDescription($page->getPage("searchResult")->getContentHtml(), $this->yellow->system->get("searchPageLength"))) ?></p>
<p><a href="<?php echo $page->getLocation(true) ?>"><?php echo $page->getUrl() ?></a></p>
<?php endforeach ?>
<?php elseif ($this->yellow->page->get("status")!="none"): ?>
<p><?php echo $this->yellow->language->getTextHtml("searchResults".ucfirst($this->yellow->page->get("status"))) ?><p>
<?php endif ?>
<?php $this->yellow->layout("pagination", $this->yellow->page->getPages("search")) ?>
</main>
<?php $this->yellow->layout("footer") ?>