[10.0.048] bouton moduile dans barre admin

This commit is contained in:
Fred Tempez 2020-04-03 15:22:44 +02:00
parent 44736d8979
commit 5b440c8700

View File

@ -33,7 +33,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
const ZWII_VERSION = '10.0.047';
const ZWII_VERSION = '10.0.048';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];
@ -2275,6 +2275,9 @@ class layout extends common {
OR $this->getUrl(0) === ''
) {
$leftItems .= '<li><a href="' . helper::baseUrl() . 'page/edit/' . $this->getUrl(0) . '" data-tippy-content="Modifier la page">' . template::ico('pencil') . '</a></li>';
if ($this->getData(['page', $this->getUrl(),'moduleId'])) {
$leftItems .= '<li><a href="' . helper::baseUrl() . $this->getUrl() . '/config' . '" data-tippy-content="Configurer le module">' . template::ico('gear') . '</a></li>';
}
$leftItems .= '<li><a id="pageDelete" href="' . helper::baseUrl() . 'page/delete/' . $this->getUrl(0) . '&csrf=' . $_SESSION['csrf'] . '" data-tippy-content="Effacer la page">' . template::ico('trash') . '</a></li>';
}
}