0byt3m1n1
Path:
/
data
/
applications
/
aps
/
gallery
/
3.0.9-21
/
standard
/
htdocs
/
themes
/
three_nids
/
views
/
[
Home
]
File: search.html.php
<?php defined("SYSPATH") or die("No direct script access.") ?> <? // @todo Set hover on AlbumGrid list items ?> <? list($children_count_true, $children_all) = search::search($q,1000,0); $theme->pagination = new Pagination(); $theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count_true,"items_per_page" => $page_size,"style" => "classic")); $children_offset = ($theme->pagination->current_page -1) * $page_size ; ?> <div id="g-search-results"> <h2><?= t("Results for <b>%term</b>", array("term" => $q)) ?></h2> <? if (count($items)): ?> <ul id="g-album-grid" class="ui-helper-clearfix"> <? for($i=0;$i<$children_offset;$i++): ?> <? $child = $children_all[$i] ?> <?= three_nids::fancylink($child,"header") ?> <? endfor ?> <? foreach ($items as $child): ?> <li id="g-item-id-<?= $child->id ?>" class="g-item g-album"> <?= $theme->thumb_top($child) ?> <?= three_nids::fancylink($child,"dynamic") ?> <?= $theme->thumb_bottom($child) ?> <?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?> </li> <? endforeach ?> <? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?> <? $child = $children_all[$i] ?> <?= three_nids::fancylink($child,"header") ?> <? endfor ?> </ul> <?= $theme->paginator() ?> <? else: ?> <p> <?= t("No results found for <b>%term</b>", array("term" => $q)) ?> </p> <? endif; ?> </div>