<?php
/*
 * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

$version = !empty($version) ? sly_html($version) : 'N/A';
$url     = $_router->getUrl('addon_help', null, array('addon' => $name));

?>
<tr class="sly-<?php echo $type ?>">
	<?php if ($type === 'addon'): ?>
	<td class="sly-col-icon sly-icon"><?php echo sly_Util_HTML::getSpriteLink('', $name, $type) ?></td>
	<td class="sly-col-name" colspan="2">
		<?php if ($link): ?>
		<a href="<?php print $url ?>"><?php echo sly_html($name) ?></a>
		<?php else: print sly_html($name); endif; ?>
	</td>
	<?php else: ?>
	<td>&nbsp;</td>
	<td class="sly-col-icon sly-icon"><?php echo sly_Util_HTML::getSpriteLink('', $name, $type) ?></td>
	<td class="sly-col-name"><a href="<?php print $url ?>"><?php echo sly_html($name) ?></a></td>
	<?php endif ?>
	<td class="sly-col-version"><?php echo $version ?></td>
	<td class="sly-col-author"><?php echo $supportPage ?></td>
</tr>
