Newer
Older
<h2><?php echo __('Install a new plugin'); ?></h2>
<p><?php echo __(
'To add a plugin into the system, download and place the plugin into the <code>include/plugins</code> folder. Once in the plugin is in the <code>plugins/</code> folder, it will be shown in the list below.'
); ?>
</p>
<form method="post" action="?">
<?php echo csrf_token(); ?>
<input type="hidden" name="do" value="install"/>
<table class="list" width="100%"><tbody>
<?php
$installed = $ost->plugins->allInstalled();
foreach ($ost->plugins->allInfos() as $info) {
// Ignore installed plugins
if (isset($installed[$info['install_path']]))
continue;
?>
<tr><td><button type="submit" name="install_path"
value="<?php echo $info['install_path'];
?>"><?php echo __('Install'); ?></button></td>
<td>
<div><strong><?php echo $info['name']; ?></strong><br/>
<div><?php echo $info['description']; ?></div>
<div class="faded"><em><?php echo __('Version'); ?>: <?php echo $info['version']; ?></em></div>
<div class="faded"><em><?php echo __('Author'); ?>: <?php echo $info['author']; ?></em></div>
</div>
</td></tr>
<?php
}
?>
</tbody></table>
</form>