diff --git a/core/core.php b/core/core.php index 527a5260..ca885e77 100755 --- a/core/core.php +++ b/core/core.php @@ -147,8 +147,10 @@ class common { private $user = []; private $core = []; private $config = []; + // Dossier localisé private $page = []; private $module = []; + private $locale = []; // Descripteur de données Entrées / Sorties // Liste ici tous les fichiers de données @@ -162,7 +164,8 @@ class common { 'theme' => '', 'admin' => '', 'blacklist' => '', - 'translate' => '' + 'translate' => '', + 'locale' => '' ]; /** @@ -290,7 +293,7 @@ class common { $this->url = $url; } else { - $this->url = $this->getData(['config', 'homePageId']); + $this->url = $this->getData(['locale', 'homePageId']); } } @@ -689,7 +692,8 @@ class common { public function dirData($id, $lang) { // Sauf pour les pages et les modules if ($id === 'page' || - $id === 'module') { + $id === 'module' || + $id === 'locale' ) { $folder = self::DATA_DIR . $lang . '/' ; } else { $folder = self::DATA_DIR; @@ -903,9 +907,9 @@ class common { // Fin SMTP } else { $host = str_replace('www.', '', $_SERVER['HTTP_HOST']); - $mail->setFrom('no-reply@' . $host, $this->getData(['config', 'title'])); + $mail->setFrom('no-reply@' . $host, $this->getData(['locale', 'title'])); if (is_null($replyTo)) { - $mail->addReplyTo('no-reply@' . $host, $this->getData(['config', 'title'])); + $mail->addReplyTo('no-reply@' . $host, $this->getData(['locale', 'title'])); } else { $mail->addReplyTo($replyTo); } @@ -1538,6 +1542,20 @@ class common { } $this->setData(['core', 'dataVersion', 10400]); } + + // Version 10.4.99 + if ($this->getData(['core', 'dataVersion']) < 10499) { + $this->setData(['locale','homePageId',$this->getData(['config','homePageId'])]); + $this->setData(['locale','page404',$this->getData(['config','page404'])]); + $this->setData(['locale','page403',$this->getData(['config','page403'])]); + $this->setData(['locale','page302',$this->getData(['config','page302'])]); + $this->setData(['locale','legalPageId',$this->getData(['config','legalPageId'])]); + $this->setData(['locale','searchPageId',$this->getData(['config','searchPageId'])]); + $this->setData(['locale','metaDescription',$this->getData(['config','metaDescription'])]); + $this->setData(['locale','title',$this->getData(['locale','title'])]); + + $this->setData(['core', 'dataVersion', 10499]); + } } } @@ -1875,7 +1893,7 @@ class core extends common { $access = true; } else { - if($this->getUrl(0) === $this->getData(['config', 'homePageId'])) { + if($this->getUrl(0) === $this->getData(['locale', 'homePageId'])) { $access = 'login'; } else { @@ -2143,10 +2161,10 @@ class core extends common { 'content' => template::speech('La page ' . $accessInfo['pageId'] . ' est ouverte par l\'utilisateur ' . $accessInfo['userName'] . '') ]); } else { - if ( $this->getData(['config','page403']) !== 'none' - AND $this->getData(['page',$this->getData(['config','page403'])])) + if ( $this->getData(['locale','page403']) !== 'none' + AND $this->getData(['page',$this->getData(['locale','page403'])])) { - header('Location:' . helper::baseUrl() . $this->getData(['config','page403'])); + header('Location:' . helper::baseUrl() . $this->getData(['locale','page403'])); } else { $this->addOutput([ 'title' => 'Erreur 403', @@ -2156,10 +2174,10 @@ class core extends common { } } elseif ($this->output['content'] === '') { http_response_code(404); - if ( $this->getData(['config','page404']) !== 'none' - AND $this->getData(['page',$this->getData(['config','page404'])])) + if ( $this->getData(['locale','page404']) !== 'none' + AND $this->getData(['page',$this->getData(['locale','page404'])])) { - header('Location:' . helper::baseUrl() . $this->getData(['config','page404'])); + header('Location:' . helper::baseUrl() . $this->getData(['locale','page404'])); } else { $this->addOutput([ 'title' => 'Erreur 404', @@ -2171,18 +2189,18 @@ class core extends common { if($this->output['metaTitle'] === '') { if($this->output['title']) { $this->addOutput([ - 'metaTitle' => strip_tags($this->output['title']) . ' - ' . $this->getData(['config', 'title']) + 'metaTitle' => strip_tags($this->output['title']) . ' - ' . $this->getData(['locale', 'title']) ]); } else { $this->addOutput([ - 'metaTitle' => $this->getData(['config', 'title']) + 'metaTitle' => $this->getData(['locale', 'title']) ]); } } if($this->output['metaDescription'] === '') { $this->addOutput([ - 'metaDescription' => $this->getData(['config', 'metaDescription']) + 'metaDescription' => $this->getData(['locale', 'metaDescription']) ]); } @@ -2351,15 +2369,15 @@ class layout extends common { // Affichage du module de recherche $items .= 'getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>'; - if ($this->getData(['config','searchPageId']) !== 'none') { - $items .= ' | Recherche'; + if ($this->getData(['locale','searchPageId']) !== 'none') { + $items .= ' | Recherche'; } $items .= ''; // Affichage des mentions légales $items .= 'getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>'; - if ($this->getData(['config','legalPageId']) !== 'none') { - $items .= ' | Mentions légales'; + if ($this->getData(['locale','legalPageId']) !== 'none') { + $items .= ' | Mentions légales'; } $items .= ''; // Affichage du lien de connexion diff --git a/core/layout/mail.php b/core/layout/mail.php index c8bc04b4..5c588a95 100755 --- a/core/layout/mail.php +++ b/core/layout/mail.php @@ -83,7 +83,7 @@
- getData(['config', 'title']); ?> + getData(['locale', 'title']); ?>
@@ -109,7 +109,7 @@
- getData(['config', 'title']); ?> + getData(['locale', 'title']); ?>
diff --git a/core/layout/main.php b/core/layout/main.php index a70f326a..5fc51661 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -47,7 +47,7 @@ $lan = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); ?>
getData(['theme','menu','burgerTitle']) === true ): ?> -
getData(['config','title']);?>
+
getData(['locale','title']);?>
-
- helper::baseUrl() . 'config/backup', - 'value' => 'Sauvegarder' - ]); ?> -
+
+ helper::baseUrl() . 'config/backup', + 'value' => 'Sauvegarder', + 'ico' => 'download' + ]); ?> +
helper::baseUrl() . 'config/manage', - 'value' => 'Restaurer' + 'value' => 'Restaurer', + 'ico' => 'upload' + ]); ?> +
+
+ helper::baseUrl() . 'config/advanced', + 'value' => 'Avancée', + 'ico' => 'cog-alt', ]); ?>
@@ -27,12 +36,12 @@
-

Informations générales

+

Identité du site

'Titre du site', - 'value' => $this->getData(['config', 'title']), + 'value' => $this->getData(['locale', 'title']), 'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.' ]); ?>
@@ -48,7 +57,7 @@
'Description du site', - 'value' => $this->getData(['config', 'metaDescription']), + 'value' => $this->getData(['locale', 'metaDescription']), 'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.' ]); ?>
@@ -56,103 +65,6 @@
-
-
-
-

Paramètres généraux

- -
-
- 1, - 'help' => 'Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', - 'label' => 'Favicon', - 'value' => $this->getData(['config', 'favicon']) - ]); ?> -
-
- 1, - 'help' => 'Sélectionnez une icône adaptée à un thème sombre.
Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.', - 'label' => 'Favicon thème sombre', - 'value' => $this->getData(['config', 'faviconDark']) - ]); ?> -
-
- 'Articles par page', - 'selected' => $this->getData(['config', 'itemsperPage']), - 'help' => 'Modules Blog et News' - ]); ?> -
-
-
-
- 'Fuseau horaire', - 'selected' => $this->getData(['config', 'timezone']), - 'help' => 'Le fuseau horaire est utile au bon référencement' - ]); ?> -
-
- $this->getData(['config', 'cookieConsent']) - ]); ?> -
-
- $this->getData(['config','captchaStrong']), - 'help' => 'Option recommandée pour sécuriser la connexion. S\'applique à tous les captchas du site. Le captcha simple se limite à une addition de nombres de 0 à 10. Le captcha renforcé utilise quatre opérations de nombres de 0 à 20.' - ]); ?> -
-
-
-
- helper::checkRewrite(), - 'help' => 'Vérifiez d\'abord que votre serveur l\'autorise : ce n\'est pas le cas chez Free.' - ]); ?> -
-
- $this->getData(['config', 'maintenance']) - ]); ?> -
-
- $this->getData(['config', 'autoBackup']), - 'help' => '

Une archive contenant le dossier /site/data est copiée dans le dossier \'site/backup\'. La sauvegarde est conservée pendant 30 jours.

Les fichiers du site ne sont pas sauvegardés automatiquement.

' - ]); ?> -
-
-
-
- $this->getData(['config', 'autoUpdate']), - 'help' => 'Vérifie une fois par jour l\'existence d\'une mise à jour.', - 'disabled' => !$error - ]); ?> -
-
- $this->getData(['config', 'autoUpdateHtaccess']), - 'help' => 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.', - 'disabled' => !$error - ]); ?> -
-
- 'download-cloud', - 'href' => helper::baseUrl() . 'install/update', - 'value' => 'Mise à jour manuelle', - 'class' => 'buttonRed', - 'disabled' => !$error - ]); ?> -
-
-
-
-
@@ -177,21 +89,21 @@ } echo template::select('configHomePageId', helper::arrayCollumn($pages, 'title', 'SORT_ASC'), [ 'label' => 'Accueil du site', - 'selected' =>$this->getData(['config', 'homePageId']), + 'selected' =>$this->getData(['locale', 'homePageId']), 'help' => 'La première page que vos visiteurs verront.' ]); ?>
'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [ 'label' => 'Mentions légales', - 'selected' => $this->getData(['config', 'legalPageId']), + 'selected' => $this->getData(['locale', 'legalPageId']), 'help' => 'Les mentions légales sont obligatoires en France. Une option du pied de page ajoute un lien discret vers cette page.' ]); ?>
'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [ 'label' => 'Recherche dans le site', - 'selected' => $this->getData(['config', 'searchPageId']), + 'selected' => $this->getData(['locale', 'searchPageId']), 'help' => 'Sélectionner la page "Recherche" ou une page contenant le module "Recherche" permet d\'activer un lien dans le pied de page. ' ]); ?>
@@ -201,7 +113,7 @@ 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [ 'label' => 'Accès interdit, erreur 403', - 'selected' =>$this->getData(['config', 'page403']), + 'selected' =>$this->getData(['locale', 'page403']), 'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.' ]); ?>
@@ -209,7 +121,7 @@ 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [ 'label' => 'Page inexistante, erreur 404', - 'selected' =>$this->getData(['config', 'page404']), + 'selected' =>$this->getData(['locale', 'page404']), 'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.' ]); ?>
@@ -217,7 +129,7 @@ 'Page par défaut'],helper::arrayCollumn($orphans, 'title', 'SORT_ASC')), [ 'label' => 'Site en maintenance', - 'selected' =>$this->getData(['config', 'page302']), + 'selected' =>$this->getData(['locale', 'page302']), 'help' => 'Cette page ne doit pas apparaître dans l\'arborescence du menu. Créez une page orpheline.' ]); ?>
@@ -225,373 +137,4 @@
- -
-
-
-

Réseaux sociaux -
- -
-

-
-
-
- 'Saisissez votre ID : https://www.facebook.com/[ID].', - 'label' => 'Facebook', - 'value' => $this->getData(['config', 'social', 'facebookId']) - ]); ?> -
-
- 'Saisissez votre ID : https://www.instagram.com/[ID].', - 'label' => 'Instagram', - 'value' => $this->getData(['config', 'social', 'instagramId']) - ]); ?> -
-
- 'ID de la chaîne : https://www.youtube.com/channel/[ID].', - 'label' => 'Chaîne Youtube', - 'value' => $this->getData(['config', 'social', 'youtubeId']) - ]); ?> -
-
- 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].', - 'label' => 'Youtube', - 'value' => $this->getData(['config', 'social', 'youtubeUserId']) - ]); ?> -
-
-
-
- 'Saisissez votre ID : https://twitter.com/[ID].', - 'label' => 'Twitter', - 'value' => $this->getData(['config', 'social', 'twitterId']) - ]); ?> -
-
- 'Saisissez votre ID : https://pinterest.com/[ID].', - 'label' => 'Pinterest', - 'value' => $this->getData(['config', 'social', 'pinterestId']) - ]); ?> -
-
- 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].', - 'label' => 'Linkedin', - 'value' => $this->getData(['config', 'social', 'linkedinId']) - ]); ?> -
-
- 'Saisissez votre ID Github : https://github.com/[ID].', - 'label' => 'Github', - 'value' => $this->getData(['config', 'social', 'githubId']) - ]); ?> -
-
-
-
-
-
-
-
-
-

Référencement -
- -
-

-
-
-
-
-
- helper::baseUrl() . 'config/configMetaImage', - 'value' => 'Capture Open Graph', - 'ico' => 'pencil' - ]); ?> -
-
-
-
- helper::baseUrl() . 'config/generateFiles', - 'value' => 'Sitemap.xml / Robots.txt', - 'ico' => 'pencil' - ]); ?> -
-
-
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
-

Sécurité de la connexion -
- -
-

-
-
-
- 'Connexions successives', - 'selected' => $this->getData(['config', 'connect', 'attempt']) - ]); ?> -
-
- 'Blocage après échecs', - 'selected' => $this->getData(['config', 'connect', 'timeout']) - ]); ?> -
-
- - helper::baseUrl() . 'config/blacklistDownload', - 'value' => 'Télécharger liste noire', - 'ico' => 'download' - ]); ?> -
-
- 'buttonRed', - 'href' => helper::baseUrl() . 'config/blacklistReset', - 'value' => 'Réinitialiser liste', - 'ico' => 'cancel' - ]); ?> -
-
-
-
- $this->getData(['config', 'connect','captcha']) - ]); ?> -
-
-
-
-
-
-
-
-
-

Journalisation -
- -
-

-
-
-
- $this->getData(['config', 'connect', 'log']) - ]); ?> -
-
- helper::baseUrl() . 'config/logDownload', - 'value' => 'Télécharger journal', - 'ico' => 'download' - ]); ?> -
-
- 'buttonRed', - 'href' => helper::baseUrl() . 'config/logReset', - 'value' => 'Réinitialiser journal', - 'ico' => 'cancel' - ]); ?> -
-
-
-
-
-
-
-
-
-

Réseau -
- -
-

-
-
-
- 'Type de proxy', - 'selected' => $this->getData(['config', 'proxyType']) - ]); ?> -
-
- 'Adresse du proxy', - 'placeholder' => 'cache.proxy.fr', - 'value' => $this->getData(['config', 'proxyUrl']) - ]); ?> -
-
- 'Port du proxy', - 'placeholder' => '6060', - 'value' => $this->getData(['config', 'proxyPort']) - ]); ?> -
-
-
-
-
-
-
-
-
-

Messagerie SMTP -
- -
-

-
-
-
- $this->getData(['config', 'smtp','enable']), - 'help' => 'Paramètres à utiliser lorsque votre hébergeur ne propose pas la fonctionnalité d\'envoi de mail.' - ]); ?> -
-
-
-
-
- 'Adresse SMTP', - 'placeholder' => 'smtp.fr', - 'value' => $this->getData(['config', 'smtp','host']) - ]); ?> -
-
- 'Port SMTP', - 'placeholder' => '589', - 'value' => $this->getData(['config', 'smtp','port']) - ]); ?> -
-
- 'Authentification', - 'selected' => $this->getData(['config', 'smtp','auth']) - ]); ?> -
-
-
-
-
- 'Nom utilisateur', - 'value' => $this->getData(['config', 'smtp','username' ]) - ]); ?> -
-
- 'Mot de passe', - 'autocomplete' => 'off', - 'value' => $this->getData(['config', 'smtp','username' ]) ? helper::decrypt ($this->getData(['config', 'smtp','username' ]),$this->getData(['config','smtp','password'])) : '' - ]); ?> -
-
- 'Sécurité', - 'selected' => $this->getData(['config', 'smtp','secure']) - ]); ?> -
-
-
-
-
-
-
-
-
-
-
-

Scripts -
- -
-

-
-
-
- 'Saisissez l\'ID de suivi.', - 'label' => 'Google Analytics', - 'placeholder' => 'UA-XXXXXXXX-X', - 'value' => $this->getData(['config', 'analyticsId']) - ]); ?> -
-
- helper::baseUrl() . 'config/script/head', - 'value' => 'Script dans head', - 'ico' => 'pencil' - ]); ?> -
-
- helper::baseUrl() . 'config/script/body', - 'value' => 'Script dans body', - 'ico' => 'pencil' - ]); ?> -
-
-
-
-
-
diff --git a/core/module/maintenance/maintenance.php b/core/module/maintenance/maintenance.php index f20d12d8..8840123b 100755 --- a/core/module/maintenance/maintenance.php +++ b/core/module/maintenance/maintenance.php @@ -28,12 +28,12 @@ class maintenance extends common { exit(); } // Page perso définie et existante - if ($this->getData(['config','page302']) !== 'none' - AND $this->getData(['page',$this->getData(['config','page302'])]) ) { + if ($this->getData(['locale','page302']) !== 'none' + AND $this->getData(['page',$this->getData(['locale','page302'])]) ) { $this->addOutput([ 'display' => self::DISPLAY_LAYOUT_LIGHT, - 'title' => $this->getData(['page',$this->getData(['config','page302']),'title']), - 'content' => $this->getdata(['page',$this->getData(['config','page302']),'content']), + 'title' => $this->getData(['page',$this->getData(['locale','page302']),'title']), + 'content' => $this->getdata(['page',$this->getData(['locale','page302']),'content']), 'view' => 'index' ]); } else { diff --git a/core/module/page/page.php b/core/module/page/page.php index 013c1a08..53372e8a 100755 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -194,7 +194,7 @@ class page extends common { ]); } // Impossible de supprimer la page d'accueil - elseif($url[0] === $this->getData(['config', 'homePageId'])) { + elseif($url[0] === $this->getData(['locale', 'homePageId'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -202,7 +202,7 @@ class page extends common { ]); } // Impossible de supprimer la page de recherche affectée - elseif($url[0] === $this->getData(['config', 'searchPageId'])) { + elseif($url[0] === $this->getData(['locale', 'searchPageId'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -210,7 +210,7 @@ class page extends common { ]); } // Impossible de supprimer la page des mentions légales affectée - elseif($url[0] === $this->getData(['config', 'legalPageId'])) { + elseif($url[0] === $this->getData(['locale', 'legalPageId'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -218,7 +218,7 @@ class page extends common { ]); } // Impossible de supprimer la page des mentions légales affectée - elseif($url[0] === $this->getData(['config', 'page404'])) { + elseif($url[0] === $this->getData(['locale', 'page404'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -226,7 +226,7 @@ class page extends common { ]); } // Impossible de supprimer la page des mentions légales affectée - elseif($url[0] === $this->getData(['config', 'page403'])) { + elseif($url[0] === $this->getData(['locale', 'page403'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -234,7 +234,7 @@ class page extends common { ]); } // Impossible de supprimer la page des mentions légales affectée - elseif($url[0] === $this->getData(['config', 'page302'])) { + elseif($url[0] === $this->getData(['locale', 'page302'])) { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . 'config', @@ -320,8 +320,8 @@ class page extends common { $this->setData(['module', $pageId, $this->getData(['module', $this->getUrl(2)])]); $this->deleteData(['module', $this->getUrl(2)]); // Si la page correspond à la page d'accueil, change l'id dans la configuration du site - if($this->getData(['config', 'homePageId']) === $this->getUrl(2)) { - $this->setData(['config', 'homePageId', $pageId]); + if($this->getData(['locale', 'homePageId']) === $this->getUrl(2)) { + $this->setData(['locale', 'homePageId', $pageId]); } } // Supprime les données du module en cas de changement de module @@ -333,20 +333,20 @@ class page extends common { $this->deleteData(['page', $this->getUrl(2)]); } // Traitement des pages spéciales affectées dans la config : - if ($this->getUrl(2) === $this->getData(['config', 'legalPageId']) ) { - $this->setData(['config','legalPageId', $pageId]); + if ($this->getUrl(2) === $this->getData(['locale', 'legalPageId']) ) { + $this->setData(['locale','legalPageId', $pageId]); } - if ($this->getUrl(2) === $this->getData(['config', 'searchPageId']) ) { - $this->setData(['config','searchPageId', $pageId]); + if ($this->getUrl(2) === $this->getData(['locale', 'searchPageId']) ) { + $this->setData(['locale','searchPageId', $pageId]); } - if ($this->getUrl(2) === $this->getData(['config', 'page404']) ) { - $this->setData(['config','page404', $pageId]); + if ($this->getUrl(2) === $this->getData(['locale', 'page404']) ) { + $this->setData(['locale','page404', $pageId]); } - if ($this->getUrl(2) === $this->getData(['config', 'page403']) ) { - $this->setData(['config','page403', $pageId]); + if ($this->getUrl(2) === $this->getData(['locale', 'page403']) ) { + $this->setData(['locale','page403', $pageId]); } - if ($this->getUrl(2) === $this->getData(['config', 'page302']) ) { - $this->setData(['config','page302', $pageId]); + if ($this->getUrl(2) === $this->getData(['locale', 'page302']) ) { + $this->setData(['locale','page302', $pageId]); } // Si la page est une page enfant, actualise les positions des autres enfants du parent, sinon actualise les pages sans parents $lastPosition = 1; diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php index 7ca2688a..9cd01021 100755 --- a/core/module/theme/view/footer/footer.php +++ b/core/module/theme/view/footer/footer.php @@ -79,16 +79,16 @@
$this->getData(['config', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']), - 'disabled' => $this->getData(['config', 'legalPageId']) === 'none' ? true : false, - 'help' => $this->getData(['config', 'legalPageId']) === 'none' ? 'Pour activer cette option, sélectionnez la page contenant les mentions légales dans la configuration du site' : '' + 'checked' => $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']), + 'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false, + 'help' => $this->getData(['locale', 'legalPageId']) === 'none' ? 'Pour activer cette option, sélectionnez la page contenant les mentions légales dans la configuration du site' : '' ]); ?>
$this->getData(['config', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']), - 'disabled' => $this->getData(['config', 'searchPageId']) === 'none' ? true : false, - 'help' => $this->getData(['config', 'searchPageId']) === 'none' ? 'Pour activer cette option, sélectionnez la page contenant un module de recherche dans la configuration du site' : '' + 'checked' => $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']), + 'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false, + 'help' => $this->getData(['locale', 'searchPageId']) === 'none' ? 'Pour activer cette option, sélectionnez la page contenant un module de recherche dans la configuration du site' : '' ]); ?>
diff --git a/core/module/user/user.php b/core/module/user/user.php index eac48d9a..084f4f05 100755 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -95,9 +95,9 @@ class user extends common { if($this->getInput('userAddSendMail', helper::FILTER_BOOLEAN) && $check === true) { $sent = $this->sendMail( $userMail, - 'Compte créé sur ' . $this->getData(['config', 'title']), + 'Compte créé sur ' . $this->getData(['locale', 'title']), 'Bonjour ' . $userFirstname . ' ' . $userLastname . ',

' . - 'Un administrateur vous a créé un compte sur le site ' . $this->getData(['config', 'title']) . '. Vous trouverez ci-dessous les détails de votre compte.

' . + 'Un administrateur vous a créé un compte sur le site ' . $this->getData(['locale', 'title']) . '. Vous trouverez ci-dessous les détails de votre compte.

' . 'Identifiant du compte : ' . $this->getInput('userAddId') . '
' . 'Nous ne conservons pas les mots de passe, en conséquence nous vous conseillons de conserver ce message tant que vous ne vous êtes pas connecté. Vous pourrez modifier votre mot de passe après votre première connexion.', null @@ -653,9 +653,9 @@ class user extends common { AND $this->getInput('userImportNotification',helper::FILTER_BOOLEAN) === true) { $sent = $this->sendMail( $item['email'], - 'Compte créé sur ' . $this->getData(['config', 'title']), + 'Compte créé sur ' . $this->getData(['locale', 'title']), 'Bonjour ' . $item['prenom'] . ' ' . $item['nom'] . ',

' . - 'Un administrateur vous a créé un compte sur le site ' . $this->getData(['config', 'title']) . '. Vous trouverez ci-dessous les détails de votre compte.

' . + 'Un administrateur vous a créé un compte sur le site ' . $this->getData(['locale', 'title']) . '. Vous trouverez ci-dessous les détails de votre compte.

' . 'Identifiant du compte : ' . $userId . '
' . 'Un mot de passe provisoire vous été attribué, à la première connexion cliquez sur Mot de passe Oublié.' );