/** * Return HTML with search results */ public static function getSearchResult() { $app = F::app(); $app->wf->ProfileIn(__METHOD__); $query = $app->wg->Request->getVal('query'); $results = WikiaPhotoGalleryHelper::getSearchResultThumbs($query); if (!empty($results)) { $html = WikiaPhotoGalleryHelper::renderImagesList('results', $results); } else { $html = false; } $app->wf->ProfileOut(__METHOD__); return array('html' => $html); }