public function render()
{
$isAdminPage = Common::getRequestVar('isAdminPage', 0, 'int');
if (!empty($isAdminPage)) {
$template = 'getNewPluginsAdmin';
} else {
$template = 'getNewPlugins';
}
$plugins = $this->marketplaceApiClient->searchForPlugins('', '', Sort::METHOD_LAST_UPDATED, '');
return $this->renderTemplate($template, array('plugins' => array_splice($plugins, 0, 3)));
}