bludit/bl-kernel/admin/views/plugins.php

58 lines
1.8 KiB
PHP
Raw Normal View History

2015-06-11 04:27:04 +02:00
<?php
2015-10-19 00:45:58 +02:00
HTML::title(array('title'=>$L->g('Plugins'), 'icon'=>'puzzle-piece'));
2018-02-06 18:26:59 +01:00
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'plugins-position"><i class="uk-icon-plus"></i> '.$L->g('Change the position of the plugins').'</a>';
2015-10-19 00:45:58 +02:00
echo '
2016-01-17 22:11:20 +01:00
<table class="uk-table">
2015-10-19 00:45:58 +02:00
<thead>
<tr>
<th class="uk-width-1-5">'.$L->g('Name').'</th>
<th class="uk-width-3-5">'.$L->g('Description').'</th>
<th class="uk-text-center">'.$L->g('Version').'</th>
<th class="uk-text-center">'.$L->g('Author').'</th>
</tr>
</thead>
<tbody>
';
foreach ($plugins['all'] as $Plugin) {
echo '<tr id="'.$Plugin->className().'" '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
2015-11-30 01:45:30 +01:00
<td>
<div class="plugin-name">'.$Plugin->name().'</div>
<div class="plugin-links">';
2015-06-12 06:00:04 +02:00
if ($Plugin->installed()) {
if (method_exists($Plugin, 'form')) {
echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'">'.$L->g('Settings').'</a>';
echo '<span class="separator"> | </span>';
2015-06-12 06:00:04 +02:00
}
echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'">'.$L->g('Deactivate').'</a>';
} else {
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'">'.$L->g('Activate').'</a>';
2015-11-30 01:45:30 +01:00
}
2015-06-12 06:00:04 +02:00
echo '</div>';
echo '</td>';
echo '<td>';
echo $Plugin->description();
echo '</td>';
echo '<td class="uk-text-center">';
2018-03-05 23:46:52 +01:00
// if( !$Plugin->isCompatible() ) {
// echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="'.$L->g('This plugin may not be supported by this version of Bludit').'"></i>';
// }
echo '<span>'.$Plugin->version().'</span>';
echo '</td>';
2017-04-26 20:16:34 +02:00
echo '<td class="uk-text-center"><a target="_blank" href="'.$Plugin->website().'">'.$Plugin->author().'</a></td>';
2015-10-19 00:45:58 +02:00
2015-11-30 01:45:30 +01:00
echo '</tr>';
}
2015-10-19 00:45:58 +02:00
echo '
</tbody>
</table>
2015-11-30 01:45:30 +01:00
';