[10.0.051] Bouton module pour les sous-pages

This commit is contained in:
Fred Tempez 2020-04-05 16:40:35 +02:00
parent 92a0e76625
commit eda235904e
1 changed files with 2 additions and 2 deletions

View File

@ -2301,8 +2301,8 @@ 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>';
if ($this->getData(['page', $this->getUrl(0),'moduleId'])) {
$leftItems .= '<li><a href="' . helper::baseUrl() . $this->getUrl(0) . '/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>';
}