bludit/admin/views/plugins.php

21 lines
567 B
PHP
Raw Normal View History

2015-05-05 03:00:01 +02:00
<h2 class="title"><i class="fa fa-rocket"></i> Plugins</h2>
2015-06-11 04:27:04 +02:00
<?php
foreach($plugins['all'] as $Plugin)
{
2015-06-12 06:00:04 +02:00
echo '<div class="pluginBox">';
2015-07-03 22:44:26 +02:00
echo '<p>'.$Plugin->name().'</p>';
2015-06-12 06:00:04 +02:00
echo '<p>'.$Plugin->description().'</p>';
if($Plugin->installed()) {
2015-06-28 20:49:24 +02:00
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'" class="btn btn-red btn-small">Uninstall plugin</a>';
2015-06-12 06:00:04 +02:00
}
else {
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'" class="btn btn-blue btn-small">Install plugin</a>';
}
echo '</div>';
2015-06-11 04:27:04 +02:00
}
2015-07-03 22:44:26 +02:00
?>