2015-09-07 21:51:48 -03:00
|
|
|
<h2 class="title"><i class="fa fa-rocket"></i><?php $Language->p('Plugins') ?></h2>
|
2015-06-10 23:27:04 -03:00
|
|
|
|
|
|
|
<?php
|
|
|
|
foreach($plugins['all'] as $Plugin)
|
|
|
|
{
|
2015-06-12 01:00:04 -03:00
|
|
|
echo '<div class="pluginBox">';
|
|
|
|
|
2015-08-01 23:47:45 -03:00
|
|
|
echo '<p class="name">'.$Plugin->name().'</p>';
|
2015-06-12 01:00:04 -03:00
|
|
|
echo '<p>'.$Plugin->description().'</p>';
|
2015-08-04 21:42:28 -03:00
|
|
|
echo '<span class="version">'.$Language->g('Version').': '.$Plugin->version().'</span><span class="author">'.$Language->g('author').': <a targe="_blank" href="'.$Plugin->website().'">'.$Plugin->author().'</a></span>';
|
2015-06-12 01:00:04 -03:00
|
|
|
|
|
|
|
if($Plugin->installed()) {
|
2015-08-07 18:33:43 -03:00
|
|
|
if(method_exists($Plugin, 'form')) {
|
2015-08-01 23:47:45 -03:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'" class="btn btn-smaller">'.$Language->g('Configure plugin').'</a>';
|
2015-08-01 13:28:47 -03:00
|
|
|
}
|
2015-08-01 23:47:45 -03:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'" class="btn btn-red btn-smaller">'.$Language->g('Uninstall plugin').'</a>';
|
2015-06-12 01:00:04 -03:00
|
|
|
}
|
|
|
|
else {
|
2015-08-01 23:47:45 -03:00
|
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'" class="btn btn-blue btn-smaller">'.$Language->g('Install plugin').'</a>';
|
2015-06-12 01:00:04 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
echo '</div>';
|
2015-06-10 23:27:04 -03:00
|
|
|
}
|
2015-07-03 19:36:37 -03:00
|
|
|
?>
|