diff options
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/config/plugins.php | 24 | ||||
-rw-r--r-- | app/Template/config/sidebar.php | 3 |
2 files changed, 27 insertions, 0 deletions
diff --git a/app/Template/config/plugins.php b/app/Template/config/plugins.php new file mode 100644 index 00000000..8501bda9 --- /dev/null +++ b/app/Template/config/plugins.php @@ -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 ?>
\ No newline at end of file diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index ed4f01e7..4195cde1 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -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> |