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'));
|
|
|
|
|
|
|
|
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>
|
|
|
|
';
|
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
foreach($plugins['all'] as $Plugin)
|
|
|
|
{
|
|
|
|
echo '
|
2016-01-17 22:11:20 +01:00
|
|
|
<tr '.($Plugin->installed()?'class="plugin-installed"':'class="plugin-notInstalled"').'>
|
2015-11-30 01:45:30 +01:00
|
|
|
<td>
|
2017-03-13 14:31:02 +01:00
|
|
|
<div class="plugin-name">
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|
2015-06-12 06:00:04 +02:00
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
if($Plugin->installed()) {
|
2017-03-13 14:31:02 +01:00
|
|
|
echo '<a class="uninstall" href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'" title="'.$L->g('Deactivate').'"><i class="uk-icon-check-square-o"></i></a> ';
|
2015-11-30 01:45:30 +01:00
|
|
|
if(method_exists($Plugin, 'form')) {
|
2017-03-13 14:31:02 +01:00
|
|
|
echo '<a class="configure" href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'" title="'.$L->g('Settings').'"><i class="uk-icon-cog settings-icon"></i></a> ';
|
2015-06-12 06:00:04 +02:00
|
|
|
}
|
2015-11-30 01:45:30 +01:00
|
|
|
}
|
|
|
|
else {
|
2017-03-13 14:31:02 +01:00
|
|
|
echo '<a class="install" href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'" title="'.$L->g('Activate').'"><i class="uk-icon-square-o"></i></a> ';
|
2015-11-30 01:45:30 +01:00
|
|
|
}
|
2015-06-12 06:00:04 +02:00
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
echo '
|
2017-03-13 14:31:02 +01:00
|
|
|
'.$Plugin->name().'</div>
|
2016-08-10 01:46:56 +02:00
|
|
|
</td>';
|
|
|
|
|
|
|
|
echo '<td>';
|
|
|
|
echo $Plugin->description();
|
2017-03-14 05:21:25 +01:00
|
|
|
echo '</td>';
|
|
|
|
echo '
|
|
|
|
<td class="uk-text-center">';
|
2016-08-10 01:46:56 +02:00
|
|
|
if( !$Plugin->isCompatible() ) {
|
2017-03-14 05:21:25 +01:00
|
|
|
echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="This plugin is incompatible with Bludit v'.BLUDIT_VERSION.'"></i>';
|
2016-08-10 01:46:56 +02:00
|
|
|
}
|
2017-03-14 05:21:25 +01:00
|
|
|
echo $Plugin->version().'</td>';
|
2016-08-10 01:46:56 +02:00
|
|
|
|
|
|
|
echo '
|
2017-03-13 14:42:28 +01:00
|
|
|
<td class="uk-text-center"><a target="_blank" href="'.$Plugin->website().'">'.$Plugin->author().'</a></td>
|
2015-11-30 01:45:30 +01:00
|
|
|
';
|
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
|
|
|
';
|