view_count) { $results .= "
  • "; $results .= t("Views: %view_count", array("view_count" => $item->view_count)); $results .= "
  • "; } // rWatcher Edit: Display Tags on Thumbnails if (module::is_active("tag")) { $tags = ORM::factory("tag") ->join("items_tags", "tags.id", "items_tags.tag_id") ->where("items_tags.item_id", "=", $item->id) ->find_all(); if (count($tags) > 0) { $results .= "
  • "; $results .= t("Tags:") . " "; $anchors = array(); foreach ($tags as $tag) { $anchors[] = "" . html::clean($tag->name) . ""; } $results .= join(", ", $anchors) . "
  • "; } } // rWatcher End Edit if ($item->owner) { $results .= "
  • "; if ($item->owner->url) { $results .= t("By: %owner_name", array("owner_name" => $item->owner->display_name(), "owner_url" => $item->owner->url)); } else { $results .= t("By: %owner_name", array("owner_name" => $item->owner->display_name())); } $results .= "
  • "; } return $results; } }