' . $this->author() . '
'; $html .= '' . hsc($this->extension->getDescription()) . '
'; $html .= 'extension = $extension;
}
public function render()
{
$classes = $this->getClasses();
$html = " ' . hsc($this->extension->getDescription()) . '';
$html .= '' . hsc($this->extension->getDisplayName()) . '';
if ($this->extension->isBundled()) {
$html .= ' ' . hsc('<' . $this->getLang('status_bundled') . '>') . '';
} elseif ($this->extension->getInstalledVersion()) {
$html .= ' ' . hsc($this->extension->getInstalledVersion()) . '';
}
$html .= $this->popularity();
$html .= '
';
$html .= '' . $this->author() . '
';
$html .= '';
if ($link) $html .= '';
return $html;
}
/**
* The main information about the extension
*
* @return string
*/
protected function info()
{
return $html;
}
/**
* Display the available notices for the extension
*
* @return string
*/
protected function notices()
{
$notices = Notice::list($this->extension);
$html = '';
foreach ($notices as $type => $messages) {
foreach ($messages as $message) {
$message = hsc($message);
$message = preg_replace('/`([^`]+)`/', '$1', $message);
$html .= '