[9.2.00] defaultdata settings

This commit is contained in:
fredtempez 2019-07-10 09:19:12 +02:00
parent b6051bda0d
commit 471cc0d8eb
2 changed files with 11 additions and 7 deletions

View File

@ -934,13 +934,16 @@ class common {
$this->setData(['core', 'dataVersion', 9100]);
$this->SaveData();
}
// Version 9.1.13
if($this->getData(['core', 'dataVersion']) < 9113) {
// Version 9.2.00
if($this->getData(['core', 'dataVersion']) < 9200) {
$this->setData(['theme','footer','template', 3 ]);
$this->setData(['theme','footer','margin', true ]);
$this->setData(['core', 'dataVersion', 9113]);
$this->setData(['theme','footer','displayLegal', false ]);
$this->setData(['theme','footer','displaySearch', false ]);
$this->setData(['config','social','githubId', '' ]);
$this->setData(['core', 'dataVersion', 9200]);
$this->SaveData();
}
}
}
}
@ -1972,12 +1975,12 @@ class layout extends common {
$items .= '</span>';
// Affichage du sitemap
$items .= '<span id="footerDisplaySiteMap"';
$items .= $this->getData(['theme','footer','displaySiteMap']) === false? ' class="displayNone"' : '';
$items .= $this->getData(['theme','footer','displaySiteMap']) === false ? ' class="displayNone"' : '';
$items .= '><wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >Plan&nbsp;du&nbsp;site</a>';
$items .= '</span>';
// Affichage du module de recherche
$items .= '<span id="footerDisplaySearch"';
$items .= $this->getData(['theme','footer','displaySearch']) === false? ' class="displayNone"' : '';
$items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone"' : '';
$items .= '><wbr>&nbsp;|&nbsp;<a href="' . helper::baseUrl() . 'search" data-tippy-content="Rechercher dans le site" >Rechercher</a>';
$items .= '</span>';
// Affichage des mentions légales

View File

@ -440,7 +440,8 @@ class install extends common {
'displayVersion' => true,
'displaySiteMap' => true,
'displayCopyright' => true,
'displayLegal' => false,
'displayLegal' => false,
'displaySearch' => false,
'template' => '3'
],
'header' => [