// @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 ; ?>
= t("Results for %term", array("term" => $q)) ?>
if (count($items)): ?>
for($i=0;$i<$children_offset;$i++): ?>
$child = $children_all[$i] ?>
= three_nids::fancylink($child,"header") ?>
endfor ?>
foreach ($items as $child): ?>
-
= $theme->thumb_top($child) ?>
= three_nids::fancylink($child,"dynamic") ?>
= $theme->thumb_bottom($child) ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
endforeach ?>
for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
$child = $children_all[$i] ?>
= three_nids::fancylink($child,"header") ?>
endfor ?>
= $theme->paginator() ?>
else: ?>
= t("No results found for %term", array("term" => $q)) ?>
endif; ?>