1b598734e8
Plugin page: * Add label for display in theme * Add french lang pack * Add label in install.php Update french lang pack Add a space in Plugin name and version
23 lines
893 B
PHP
23 lines
893 B
PHP
<h2 class="title"><i class="fa fa-rocket"></i> <?php $Language->p('Plugins') ?></h2>
|
|
|
|
<?php
|
|
foreach($plugins['all'] as $Plugin)
|
|
{
|
|
echo '<div class="pluginBox">';
|
|
|
|
echo '<p>'.$Plugin->name().' <span class="version">'.$Language->g('Version').': '.$Plugin->version().'</span></p>';
|
|
echo '<p>'.$Plugin->description().'</p>';
|
|
|
|
if($Plugin->installed()) {
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'uninstall-plugin/'.$Plugin->className().'" class="btn btn-red btn-small">'.$Language->g('Uninstall plugin').'</a>';
|
|
if($Plugin->form()) {
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'configure-plugin/'.$Plugin->className().'" class="btn btn-small">'.$Language->g('Configure plugin').'</a>';
|
|
}
|
|
}
|
|
else {
|
|
echo '<a href="'.HTML_PATH_ADMIN_ROOT.'install-plugin/'.$Plugin->className().'" class="btn btn-blue btn-small">'.$Language->g('Install plugin').'</a>';
|
|
}
|
|
|
|
echo '</div>';
|
|
}
|
|
?>
|