forked from ZwiiCMS-Team/ZwiiCMS
[9.2.00] defaultdata settings
This commit is contained in:
parent
b6051bda0d
commit
471cc0d8eb
@ -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> | <a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >Plan du 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> | <a href="' . helper::baseUrl() . 'search" data-tippy-content="Rechercher dans le site" >Rechercher</a>';
|
||||
$items .= '</span>';
|
||||
// Affichage des mentions légales
|
||||
|
@ -440,7 +440,8 @@ class install extends common {
|
||||
'displayVersion' => true,
|
||||
'displaySiteMap' => true,
|
||||
'displayCopyright' => true,
|
||||
'displayLegal' => false,
|
||||
'displayLegal' => false,
|
||||
'displaySearch' => false,
|
||||
'template' => '3'
|
||||
],
|
||||
'header' => [
|
||||
|
Loading…
Reference in New Issue
Block a user