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 >
' ;
2018-03-09 12:26:32 +01:00
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 >
2017-06-09 20:30:13 +02:00
< div class = " plugin-name " > '.$Plugin->name().' </ div >
< div class = " plugin-links " > ' ;
2015-06-12 06:00:04 +02:00
2018-03-09 12:26:32 +01:00
if ( $Plugin -> installed ()) {
if ( method_exists ( $Plugin , 'form' )) {
2017-06-09 20:30:13 +02:00
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
}
2017-06-09 20:30:13 +02:00
echo '<a class="uninstall" href="' . HTML_PATH_ADMIN_ROOT . 'uninstall-plugin/' . $Plugin -> className () . '">' . $L -> g ( 'Deactivate' ) . '</a>' ;
2018-03-09 12:26:32 +01:00
} else {
2017-06-09 20:30:13 +02:00
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
2017-06-09 20:30:13 +02:00
echo '</div>' ;
echo '</td>' ;
2016-08-10 01:46:56 +02:00
echo '<td>' ;
echo $Plugin -> description ();
2017-03-14 05:21:25 +01:00
echo '</td>' ;
2017-06-09 20:30:13 +02:00
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>';
// }
2017-06-09 20:30:13 +02:00
echo '<span>' . $Plugin -> version () . '</span>' ;
echo '</td>' ;
2017-04-26 20:16:34 +02:00
2017-06-09 20:30:13 +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
' ;