// @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] ?>
if ($child->is_photo()): ?>
$fancymodule = ""; ?>
if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
endif ?>
endfor ?>
foreach ($items as $child): ?>
-
= $theme->thumb_top($child) ?>
if (!($child->is_album())): ?>
if ($child->is_photo()): ?>
$fancymodule = ""; ?>
if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
else: ?>
endif ?>
= $child->parent()->title ?>
if ($user->admin): ?>
view
endif ?>
else: ?>
= html::clean($child->title) ?>
endif ?>
= $theme->thumb_bottom($child) ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
if ($child->is_photo() && module::is_active("comment") && module::is_active("comment_3nids")) :?>
endif ?>
endforeach ?>
for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
$child = $children_all[$i] ?>
if ($child->is_photo()): ?>
$fancymodule = ""; ?>
if (module::is_active("exif")){$fancymodule .= "exif::" . url::site("exif/show/{$child->id}") . ";;";} ?>
if (module::is_active("comment") && module::is_active("comment_3nids")){$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$child->id}") . ";;comment_count::" . comment_3nids::count($child) . ";;" ;} ?>
endif ?>
endfor ?>
= $theme->pager() ?>
else: ?>
= t("No results found for %term", array("term" => $q)) ?>
endif; ?>