bludit/admin/views/plugins.php

23 lines
892 B
PHP
Raw Normal View History

2015-07-04 00:36:37 +02:00
<h2 class="title"><i class="fa fa-rocket"></i> <?php $Language->p('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-28 03:01:52 +02:00
echo '<p>'.$Plugin->name().'<span class="version">'.$Language->g('Version').': '.$Plugin->version().'</span></p>';
2015-06-12 06:00:04 +02:00
echo '<p>'.$Plugin->description().'</p>';
if($Plugin->installed()) {
2015-07-04 00:36:37 +02:00
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'" class="btn btn-red btn-small">'.$Language->g('Uninstall plugin').'</a>';
2015-08-01 18:28:47 +02:00
if($Plugin->form()) {
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'" class="btn btn-small">'.$Language->g('Configure plugin').'</a>';
}
2015-06-12 06:00:04 +02:00
}
else {
2015-07-04 00:36:37 +02:00
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'" class="btn btn-blue btn-small">'.$Language->g('Install plugin').'</a>';
2015-06-12 06:00:04 +02:00
}
echo '</div>';
2015-06-11 04:27:04 +02:00
}
2015-07-04 00:36:37 +02:00
?>