2015-06-10 23:27:04 -03:00
< ? php
2015-10-18 19:45:58 -03:00
HTML :: title ( array ( 'title' => $L -> g ( 'Plugins' ), 'icon' => 'puzzle-piece' ));
echo '
2016-01-17 18:11:20 -03:00
< table class = " uk-table " >
2015-10-18 19:45:58 -03: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-29 21:45:30 -03:00
foreach ( $plugins [ 'all' ] as $Plugin )
{
echo '
2016-01-17 18:11:20 -03:00
< tr '.($Plugin->installed()?' class = " plugin-installed " ':' class = " plugin-notInstalled " ').' >
2015-11-29 21:45:30 -03:00
< td >
2017-03-13 21:31:02 +08:00
< div class = " plugin-name " >
2015-11-29 21:45:30 -03:00
' ;
2015-06-12 01:00:04 -03:00
2015-11-29 21:45:30 -03:00
if ( $Plugin -> installed ()) {
2017-03-13 21:31:02 +08: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-29 21:45:30 -03:00
if ( method_exists ( $Plugin , 'form' )) {
2017-03-13 21:31:02 +08: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 01:00:04 -03:00
}
2015-11-29 21:45:30 -03:00
}
else {
2017-03-13 21:31:02 +08: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-29 21:45:30 -03:00
}
2015-06-12 01:00:04 -03:00
2015-11-29 21:45:30 -03:00
echo '
2017-03-13 21:31:02 +08:00
'.$Plugin->name().' </ div >
2016-08-09 20:46:56 -03:00
</ td > ' ;
echo '<td>' ;
echo $Plugin -> description ();
2017-03-14 12:21:25 +08:00
echo '</td>' ;
echo '
< td class = " uk-text-center " > ' ;
2016-08-09 20:46:56 -03:00
if ( ! $Plugin -> isCompatible () ) {
2017-04-26 20:16:34 +02:00
echo '<i class="uk-icon-exclamation-triangle incompatible-warning" title="' . $L -> g ( 'This plugin may not be supported by this version of Bludit' ) . '"></i>' ;
2016-08-09 20:46:56 -03:00
}
2017-04-26 20:16:34 +02:00
echo '<span>' . $Plugin -> version () . '</span></td>' ;
2016-08-09 20:46:56 -03:00
echo '
2017-03-13 21:42:28 +08:00
< td class = " uk-text-center " >< a target = " _blank " href = " '. $Plugin->website ().' " > '.$Plugin->author().' </ a ></ td >
2015-11-29 21:45:30 -03:00
' ;
2015-10-18 19:45:58 -03:00
2015-11-29 21:45:30 -03:00
echo '</tr>' ;
}
2015-10-18 19:45:58 -03:00
echo '
</ tbody >
</ table >
2015-11-29 21:45:30 -03:00
' ;