Add page to show the list of plugins
This commit is contained in:
24
app/Template/config/plugins.php
Normal file
24
app/Template/config/plugins.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="page-header">
|
||||
<h2><?= t('Plugins') ?></h2>
|
||||
</div>
|
||||
|
||||
<?php if (empty($plugins)): ?>
|
||||
<p class="alert"><?= t('There is no plugin loaded.') ?></p>
|
||||
<?php else: ?>
|
||||
<table class="table-stripped">
|
||||
<tr>
|
||||
<th class="column-20"><?= t('Name') ?></th>
|
||||
<th class="column-20"><?= t('Author') ?></th>
|
||||
<th class="column-10"><?= t('Version') ?></th>
|
||||
<th><?= t('Description') ?></th>
|
||||
</tr>
|
||||
|
||||
<?php foreach($plugins as $plugin): ?>
|
||||
<tr>
|
||||
<td><?= $this->e($plugin->getPluginName()) ?></td>
|
||||
<td><?= $this->e($plugin->getPluginAuthor()) ?></td>
|
||||
<td><?= $this->e($plugin->getPluginVersion()) ?></td>
|
||||
<td><?= $this->e($plugin->getPluginDescription()) ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
@@ -4,6 +4,9 @@
|
||||
<li <?= $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>>
|
||||
<?= $this->url->link(t('About'), 'config', 'index') ?>
|
||||
</li>
|
||||
<li <?= $this->app->getRouterAction() === 'plugins' ? 'class="active"' : '' ?>>
|
||||
<?= $this->url->link(t('Plugins'), 'config', 'plugins') ?>
|
||||
</li>
|
||||
<li <?= $this->app->getRouterAction() === 'application' ? 'class="active"' : '' ?>>
|
||||
<?= $this->url->link(t('Application settings'), 'config', 'application') ?>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user