diff --git a/CHANGES.md b/CHANGES.md index fcbed38..092f702 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,16 @@ # Changelog +## Version 4.3.06 de Deltacms +- Corrections : + - Personnalisation des thémes : color picker absent du paramétrage de la bannière et du footer. + +## Version 4.3.05 de Deltacms +- Modifications : + - Form, Agenda, Gallery : les lexiques pour la langue d'administration sont déportés dans des dossiers 'lang', + - Modules du coeur, core.php, core.js.php : les lexiques pour la langue d'administration sont déportés dans des dossiers 'lang', + - Fichier sitemap.xml : exclusion des pages orphelines, + - Capture Opengraph : réduction du poids de l'image screenshot.jpg. + ## Version 4.3.04 de Deltacms - Modifications : - Fichiers .htaccess : Mise à jour vers Apache 2.4. Attention pour cette mise à jour vers la version Deltacms 4.3.04 diff --git a/README.md b/README.md index 6d46d0f..a3872de 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# DeltaCMS 4.3.04 +# DeltaCMS 4.3.06 DeltaCMS est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. L'administration du site est bilingue anglais ou français, le site peut être rédigé dans une des principales langues européennes. diff --git a/core/core.js.php b/core/core.js.php index f71f59b..b18e680 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -65,14 +65,6 @@ core.colorVariants = function(rgba) { * Crée un message de confirmation */ core.confirm = function(text, yesCallback, noCallback) { - var textnon = ""; - var textoui = ""; - getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){ - echo 'textnon = "Non"; textoui = "Oui";' ; - } - else{ - echo 'textnon = "No"; textoui = "Yes";' ; - } ?> var lightbox = lity(function($) { return $("
| '; + $notification = $text['core']['showNotification'][1].'
| ';
foreach (common::$coreNotices as $item) $notification .= $item . ' | ';
$notificationClass = 'notificationError';
}
@@ -2007,64 +1940,22 @@ class common {
*/
public function showBar() {
// Lexique
- $text = [];
- $val = $this->getData(['config', 'i18n', 'langAdmin']);
- switch ($val) {
- case 'fr' :
- $text[0] = 'Choisissez une page';
- $text[1] = 'Pages orphelines';
- $text[2] = 'Pages du menu';
- $text[3] = 'Barres latérales';
- $text[4] = 'Créer une page ou
une barre latérale';
- $text[5] = 'Modifier la page';
- $text[6] = 'Configurer le module';
- $text[7] = 'Dupliquer la page';
- $text[8] = 'Effacer la page';
- $text[9] = 'Gérer les fichiers';
- $text[10] = 'Personnaliser les thèmes';
- $text[11] = 'Gérer les modules';
- $text[12] = 'Gestion des langues';
- $text[13] = 'Configurer le site';
- $text[14] = 'Configurer les utilisateurs';
- $text[15] = 'Mettre à jour DeltaCMS ';
- $text[16] = 'Configurer mon compte';
- $text[17] = 'Me déconnecter';
- break;
- case 'en' :
- $text[0] = 'Choose a page';
- $text[1] = 'Orphan pages';
- $text[2] = 'Menu pages';
- $text[3] = 'Side bars';
- $text[4] = 'Creating a page
or a sidebar';
- $text[5] = 'Modify the page';
- $text[6] = 'Configuring the module';
- $text[7] = 'Duplicate the page';
- $text[8] = 'Erase the page';
- $text[9] = 'Managing files';
- $text[10] = 'Customise themes';
- $text[11] = 'Manage modules';
- $text[12] = 'Language management';
- $text[13] = 'Configuring the site';
- $text[14] = 'Setting up users';
- $text[15] = 'Updating DeltaCMS ';
- $text[16] = 'Set up my account';
- $text[17] = 'Logout';
- break;
- }
+ include('./core/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_core.php');
+
if($this->getUser('password') === $this->getInput('DELTA_USER_PASSWORD')) {
// Items de gauche
$leftItems = '';
if($this->getUser('group') >= self::GROUP_MODERATOR) {
$leftItems .= '
Site files are not backed up automatically. Activation recommended.'; +$text['core_config_view']['setup'][20] = 'Site under maintenance'; +$text['core_config_view']['setup'][21] = 'Save'; +$text['core_config_view']['setup'][22] = 'Restore'; +$text['core_config_view']['setup'][23] = 'Auto backup copy'; +$text['core_config_view']['setup'][24] = 'Information to send to support in case of malfunction'; +$text['core_config_view']['setup'][25] = 'Deltacms version: '; +$text['core_config_view']['setup'][26] = 'PHP version: '; +$text['core_config_view']['setup'][27] = 'Server type: '; +$text['core_config_view']['setup'][28] = 'Smart URL: '; +$text['core_config_view']['setup'][29] = 'yes'; +$text['core_config_view']['setup'][30] = 'no'; +$text['core_config_view']['setup'][31] = 'PHP modules installed: '; +$text['core_config_view']['setup'][32] = 'Module(s) missing: '; +$text['core_config_view']['setup'][33] = 'The necessary modules are installed.'; +$text['core_config_view']['setup'][34] = 'Deltacms modules installed: '; +$text['core_config_view']['setup'][35] = 'Generate a pdf'; +$text['core_config_view']['setup'][36] = 'Directive '; +$text['core_config_view']['setup'][37] = 'Function '; +$text['core_config_view']['social'][0] = 'Settings'; +$text['core_config_view']['social'][1] = 'Disable Open Graph capture mode'; +$text['core_config_view']['social'][2] = 'Enable Open Graph capture mode'; +$text['core_config_view']['social'][3] = 'Generate sitemap.xml and robots.txt'; +$text['core_config_view']['social'][4] = 'Allow robots to reference the site'; +$text['core_config_view']['social'][5] = 'This screenshot is required for social media sharing. To regenerate it, activate the Open Graph capture mode and click on the camera at the bottom right'; +$text['core_config_view']['social'][6] = '
Enabling the Open Graph capture mode causes a camera to appear at the bottom of the page. Clicking it generates a screenshot.jpg image from the active page.
'; +$text['core_config_view']['social'][7] = 'Social networks'; +$text['core_config_view']['social'][8] = 'Enter your ID: https://www.facebook.com/[ID].'; +$text['core_config_view']['social'][9] = 'Enter your ID: https://www.instagram.com/[ID].'; +$text['core_config_view']['social'][10] = 'String ID: https://www.youtube.com/channel/[ID].'; +$text['core_config_view']['social'][11] = 'Enter your User ID: https://www.youtube.com/user/[ID].'; +$text['core_config_view']['social'][12] = 'Enter your ID: https://twitter.com/[ID].'; +$text['core_config_view']['social'][13] = 'Enter your ID: https://pinterest.com/[ID].'; +$text['core_config_view']['social'][14] = 'Enter your Linkedin ID: https://fr.linkedin.com/in/[ID].'; +$text['core_config_view']['social'][15] = 'Enter your Github ID: https://github.com/[ID].'; +$text['core_config']['generateFiles'][0] = 'Updated sitemap and robots.txt files'; +$text['core_config']['generateFiles'][1] = 'Writing failure, site map not updated'; +$text['core_config']['backup'][0] = 'Save'; +$text['core_config']['configOpenGraph'][0] = 'Opengraph capture mode disabled'; +$text['core_config']['configOpenGraph'][1] = 'Opengraph capture mode enabled'; +$text['core_config']['restore'][0] = 'Restore'; +$text['core_config']['restore'][1] = 'The file is not a valid archive'; +$text['core_config']['restore'][2] = 'Unable to read the archive'; +$text['core_config']['restore'][3] = 'This archive is not a valid backup'; +$text['core_config']['restore'][4] = 'Restoration completed successfully'; +$text['core_config']['restore'][5] = 'Unknown error'; +$text['core_config']['index'][0] = 'Configuration'; +$text['core_config']['index'][1] = 'Saved changes'; +$text['core_config']['script'][0] = 'Script editor in '; +$text['core_config']['logReset'][0] = 'Configuration'; +$text['core_config']['logReset'][1] = 'Log successfully reset'; +$text['core_config']['logReset'][2] = 'No logs to clear'; +$text['core_config']['logDownload'][0] = 'Configuration'; +$text['core_config']['logDownload'][1] = 'No log files to upload'; +$text['core_config']['blacklistDownload'][0] = 'Date last attempted;Time last attempted;Id;IP address;Number of failures'; +$text['core_config']['blacklistDownload'][1] = 'Configuration'; +$text['core_config']['blacklistDownload'][2] = 'No blacklist to download'; +$text['core_config']['blacklistReset'][0] = 'Configuration'; +$text['core_config']['blacklistReset'][1] = 'Blacklist successfully reset'; +$text['core_config']['blacklistReset'][2] = 'No list to clear'; +$text['core_config']['copyBackups'][0] = 'Configuration'; +$text['core_config']['copyBackups'][1] = 'Copy completed'; + + +// Selects +// Authentification SMTP EN +$SMTPauth = [ + true => 'Yes', + false => 'No' +]; +// Encryptation SMTP EN +$SMTPEnc = [ + '' => 'None', + 'tls' => 'START TLS', + 'ssl' => 'SSL/TLS' +]; +// Sécurité de la connexion - tentative max avant blocage EN +$connectAttempt = [ + 999 => 'Security disabled', + 3 => '3 attempts', + 5 => '5 attempts', + 10 => '10 attempts' +]; +// Sécurité de la connexion - durée du blocage EN +$connectTimeout = [ + 0 => 'Safety off', + 300 => '5 minutes', + 600 => '10 minutes', + 900 => '15 minutes' +]; +// Anonymisation des IP du journal EN +$anonIP = [ + 4 => 'Not truncated', + 3 => 'Level 1 (192.168.12.x)', + 2 => 'Level 2 (192.168.x.x)', + 1 => 'Level 3 (192.x.x.x)' +]; +$captchaTypes = [ + 'num' => 'Numbers', + 'alpha' => 'Letters' +]; +?> \ No newline at end of file diff --git a/core/module/config/lang/fr/lex_config.php b/core/module/config/lang/fr/lex_config.php new file mode 100644 index 0000000..432d93b --- /dev/null +++ b/core/module/config/lang/fr/lex_config.php @@ -0,0 +1,229 @@ +Pensez à supprimer le cache de votre navigateur si la favicon ne change pas.'; +$text['core_config_view']['setup'][6] = 'Favicon thème sombre'; +$text['core_config_view']['setup'][7] = 'Fuseau horaire'; +$text['core_config_view']['setup'][8] = 'Le fuseau horaire est utile au bon référencement'; +$text['core_config_view']['setup'][9] = 'Message de consentement aux cookies'; +$text['core_config_view']['setup'][10] = 'Activation obligatoire selon les lois françaises sauf si vous utilisez votre propre système de consentement.'; +$text['core_config_view']['setup'][11] = 'URL intelligentes'; +$text['core_config_view']['setup'][12] = 'Vérifiez d\'abord que votre serveur autorise l\'URL rewriting (ce qui n\'est pas le cas chez Free).'; +$text['core_config_view']['setup'][13] = 'Rechercher une mise à jour en ligne'; +$text['core_config_view']['setup'][14] = 'La vérification est quotidienne. Option désactivée si la configuration du serveur ne le permet pas.'; +$text['core_config_view']['setup'][15] = 'Préserver le fichier htaccess racine'; +$text['core_config_view']['setup'][16] = 'Lors d\'une mise à jour automatique, conserve le fichier htaccess de la racine du site.'; +$text['core_config_view']['setup'][17] = 'Réinstaller'; +$text['core_config_view']['setup'][18] = 'Sauvegarde automatique quotidienne du site'; +$text['core_config_view']['setup'][19] = '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. Activation recommandée.'; +$text['core_config_view']['setup'][20] = 'Site en maintenance'; +$text['core_config_view']['setup'][21] = 'Sauvegarder'; +$text['core_config_view']['setup'][22] = 'Restaurer'; +$text['core_config_view']['setup'][23] = 'Copie sauvegardes auto'; +$text['core_config_view']['setup'][24] = 'Informations à transmettre au support en cas de dysfonctionnement'; +$text['core_config_view']['setup'][25] = 'Version de Deltacms: '; +$text['core_config_view']['setup'][26] = 'Version de PHP: '; +$text['core_config_view']['setup'][27] = 'Type de serveur: '; +$text['core_config_view']['setup'][28] = 'URL intelligentes: '; +$text['core_config_view']['setup'][29] = 'oui'; +$text['core_config_view']['setup'][30] = 'non'; +$text['core_config_view']['setup'][31] = 'Modules PHP installés: '; +$text['core_config_view']['setup'][32] = 'Module(s) absent(s): '; +$text['core_config_view']['setup'][33] = 'Les modules nécessaires sont installés.'; +$text['core_config_view']['setup'][34] = 'Modules Deltacms installés: '; +$text['core_config_view']['setup'][35] = 'Générer un pdf'; +$text['core_config_view']['setup'][36] = 'Directive '; +$text['core_config_view']['setup'][37] = 'Fonction '; +$text['core_config_view']['social'][0] = 'Paramètres'; +$text['core_config_view']['social'][1] = 'Désactiver le mode de capture Open Graph'; +$text['core_config_view']['social'][2] = 'Activer le mode de capture Open Graph'; +$text['core_config_view']['social'][3] = 'Générer sitemap.xml et robots.txt'; +$text['core_config_view']['social'][4] = 'Autoriser les robots à référencer le site'; +$text['core_config_view']['social'][5] = 'Cette capture d\'écran est nécessaire aux partages sur les réseaux sociaux. Pour la régénérer activer le mode de capture Open Graph et cliquer sur l\'appareil photo en bas à droite.'; +$text['core_config_view']['social'][6] = '
L\'activation du mode de capture Open Graph fait apparaître un appareil photo en bas de page. Un clic dessus génère une image screenshot.jpg à partir de la page active.
'; +$text['core_config_view']['social'][7] = 'Réseaux sociaux'; +$text['core_config_view']['social'][8] = 'Saisissez votre ID : https://www.facebook.com/[ID].'; +$text['core_config_view']['social'][9] = 'Saisissez votre ID : https://www.instagram.com/[ID].'; +$text['core_config_view']['social'][10] = 'ID de la chaîne : https://www.youtube.com/channel/[ID].'; +$text['core_config_view']['social'][11] = 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].'; +$text['core_config_view']['social'][12] = 'Saisissez votre ID : https://twitter.com/[ID].'; +$text['core_config_view']['social'][13] = 'Saisissez votre ID : https://pinterest.com/[ID].'; +$text['core_config_view']['social'][14] = 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].'; +$text['core_config_view']['social'][15] = 'Saisissez votre ID Github : https://github.com/[ID].'; +$text['core_config']['generateFiles'][0] = 'Mises à jour des fichiers sitemap et robots.txt'; +$text['core_config']['generateFiles'][1] = 'Echec d\'écriture, le site map n\'a pas été mis à jour'; +$text['core_config']['backup'][0] = 'Sauvegarder'; +$text['core_config']['configOpenGraph'][0] = 'Mode de capture Opengraph désactivé'; +$text['core_config']['configOpenGraph'][1] = 'Mode de capture Opengraph activé'; +$text['core_config']['restore'][0] = 'Restaurer'; +$text['core_config']['restore'][1] = 'Le fichier n\'est pas une archive valide'; +$text['core_config']['restore'][2] = 'Impossible de lire l\'archive'; +$text['core_config']['restore'][3] = 'Cette archive n\'est pas une sauvegarde valide'; +$text['core_config']['restore'][4] = 'Restauration effectuée avec succès'; +$text['core_config']['restore'][5] = 'Erreur inconnue'; +$text['core_config']['index'][0] = 'Configuration'; +$text['core_config']['index'][1] = 'Modifications enregistrées '; +$text['core_config']['script'][0] = 'Éditeur de script dans '; +$text['core_config']['logReset'][0] = 'Configuration'; +$text['core_config']['logReset'][1] = 'Journal réinitialisé avec succès'; +$text['core_config']['logReset'][2] = 'Aucun journal à effacer'; +$text['core_config']['logDownload'][0] = 'Configuration'; +$text['core_config']['logDownload'][1] = 'Aucun fichier journal à télécharger'; +$text['core_config']['blacklistDownload'][0] = 'Date dernière tentative;Heure dernière tentative;Id;Adresse IP;Nombre d\'échecs'; +$text['core_config']['blacklistDownload'][1] = 'Configuration'; +$text['core_config']['blacklistDownload'][2] = 'Aucune liste noire à télécharger'; +$text['core_config']['blacklistReset'][0] = 'Configuration'; +$text['core_config']['blacklistReset'][1] = 'Liste noire réinitialisée avec succès'; +$text['core_config']['blacklistReset'][2] = 'Pas de liste à effacer'; +$text['core_config']['copyBackups'][0] = 'Configuration'; +$text['core_config']['copyBackups'][1] = 'Copie terminée'; + + +// Selects +// Authentification SMTP +$SMTPauth = [ + true => 'Oui', + false => 'Non' +]; +// Encryptation SMTP +$SMTPEnc = [ + '' => 'Aucune', + 'tls' => 'START TLS', + 'ssl' => 'SSL/TLS' +]; +// Sécurité de la connexion - tentative max avant blocage +$connectAttempt = [ + 999 => 'Sécurité désactivée', + 3 => '3 tentatives', + 5 => '5 tentatives', + 10 => '10 tentatives' +]; +// Sécurité de la connexion - durée du blocage +$connectTimeout = [ + 0 => 'Sécurité désactivée', + 300 => '5 minutes', + 600 => '10 minutes', + 900 => '15 minutes' +]; +// Anonymisation des IP du journal +$anonIP = [ + 4 => 'Non tronquées', + 3 => 'Niveau 1 (192.168.12.x)', + 2 => 'Niveau 2 (192.168.x.x)', + 1 => 'Niveau 3 (192.x.x.x)' +]; +$captchaTypes = [ + 'num' => 'Chiffres', + 'alpha' => 'Lettres' +]; +?> \ No newline at end of file diff --git a/core/module/config/view/backup/backup.js.php b/core/module/config/view/backup/backup.js.php index 76b6526..99a7aad 100644 --- a/core/module/config/view/backup/backup.js.php +++ b/core/module/config/view/backup/backup.js.php @@ -15,19 +15,7 @@ */ $( document).ready(function() { - var text1 = ""; - var text2 = ""; - var text3 = ""; - getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){ - echo 'text1 = "La sauvegarde a été générée avec succès.";' ; - echo 'text2 = "Une erreur s\'est produite, la sauvegarde n\'a pas été générée !";' ; - echo 'text3 = "Une sauvegarde avec le contenu du gestionnaire de fichier peut prendre du temps à générer. Confirmez-vous ?";' ; - } - else{ - echo 'text1 = "The backup was successfully generated.";' ; - echo 'text2 = "An error occurred, the backup was not generated !";' ; - echo 'text3 = "A backup with the contents of the file manager may take some time to generate. Can you confirm?";' ; - } ?> + $("#configBackupForm").submit( function(e){ //$("#configBackupSubmit").addClass("disabled").prop("disabled", true); e.preventDefault(); diff --git a/core/module/config/view/backup/backup.php b/core/module/config/view/backup/backup.php index 0da4e42..e8e10bc 100644 --- a/core/module/config/view/backup/backup.php +++ b/core/module/config/view/backup/backup.php @@ -1,43 +1,20 @@ getData(['config', 'i18n', 'langAdmin']); -switch ($val) { - case 'fr' : - $text[0] = 'Retour'; - $text[1] = 'Sauvegarder'; - $text[2] = 'Inclure le contenu du gestionnaire de fichiers'; - $text[3] = 'Si le contenu du gestionnaire de fichiers est très volumineux, mieux vaut une copie par FTP.'; - $text[4] = 'Paramètres de la sauvegarde'; - $text[5] = 'L\'archive est générée dans '; - $text[6] = 'le dossier Backup'; - $text[7] = ' du gestionnaire de fichiers.'; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Save'; - $text[2] = 'Include the contents of the file manager'; - $text[3] = 'If the contents of the file manager are very large, it is better to copy them via FTP'; - $text[4] = 'Backup settings'; - $text[5] = 'The archive is generated in '; - $text[6] = 'the Backup folder'; - $text[7] = ' of the file manager'; - break; -} -?> - +include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php'); + +echo template::formOpen('configBackupForm'); ?>Les fichiers du site ne sont pas sauvegardés automatiquement. Activation recommandée.';
- $text[20] = 'Site en maintenance';
- $text[21] = 'Sauvegarder';
- $text[22] = 'Restaurer';
- $text[23] = 'Copie sauvegardes auto';
- $text[24] = 'Informations à transmettre au support en cas de dysfonctionnement';
- $text[25] = 'Version de Deltacms: ';
- $text[26] = 'Version de PHP: ';
- $text[27] = 'Type de serveur: ';
- $text[28] = 'URL intelligentes: ';
- $text[29] = 'oui';
- $text[30] = 'non';
- $text[31] = 'Modules PHP installés: ';
- $text[32] = 'Module(s) absent(s): ';
- $text[33] = 'Les modules nécessaires sont installés.';
- $text[34] = 'Modules Deltacms installés: ';
- $text[35] = 'Générer un pdf';
- $text[36] = 'Directive ';
- $text[37] = 'Fonction ';
- break;
- case 'en' :
- $text[0] = 'Parameters';
- $text[1] = 'Automated update';
- $text[2] = 'Maintenance';
- $text[3] = 'Remember to clear your browser\'s cache if the favicon does not change';
- $text[4] = 'Favicon';
- $text[5] = 'Select a suitable icon for a dark theme.
Remember to clear your browser\'s cache if the favicon does not change.';
- $text[6] = 'Favicon dark theme';
- $text[7] = 'Time zone';
- $text[8] = 'The time zone is useful for good referencing';
- $text[9] = 'Cookie consent message';
- $text[10] = 'Mandatory activation under French law unless you use your own consent system';
- $text[11] = 'Smart URLs';
- $text[12] = 'First check that your server allows URL rewriting (which is not the case with Free)';
- $text[13] = 'Search for an online update';
- $text[14] = 'The check is daily. Option disabled if server configuration does not allow it.';
- $text[15] = 'Preserve the root htaccess file';
- $text[16] = 'On auto-update, keep the root htaccess file';
- $text[17] = 'Reinstall';
- $text[18] = 'Automatic daily site backup';
- $text[19] = 'An archive containing the folder /site/data is copied to the folder \'site/backup\'. The backup is kept for 30 days.
Site files are not backed up automatically. Activation recommended.'; - $text[20] = 'Site under maintenance'; - $text[21] = 'Save'; - $text[22] = 'Restore'; - $text[23] = 'Auto backup copy'; - $text[24] = 'Information to send to support in case of malfunction'; - $text[25] = 'Deltacms version: '; - $text[26] = 'PHP version: '; - $text[27] = 'Server type: '; - $text[28] = 'Smart URL: '; - $text[29] = 'yes'; - $text[30] = 'no'; - $text[31] = 'PHP modules installed: '; - $text[32] = 'Module(s) missing: '; - $text[33] = 'The necessary modules are installed.'; - $text[34] = 'Deltacms modules installed: '; - $text[35] = 'Generate a pdf'; - $text[36] = 'Directive '; - $text[37] = 'Function '; - break; -} +include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php'); ?>
L\'activation du mode de capture Open Graph fait apparaître un appareil photo en bas de page. Un clic dessus génère une image screenshot.jpg à partir de la page active.
'; - $text[7] = 'Réseaux sociaux'; - $text[8] = 'Saisissez votre ID : https://www.facebook.com/[ID].'; - $text[9] = 'Saisissez votre ID : https://www.instagram.com/[ID].'; - $text[10] = 'ID de la chaîne : https://www.youtube.com/channel/[ID].'; - $text[11] = 'Saisissez votre ID Utilisateur : https://www.youtube.com/user/[ID].'; - $text[12] = 'Saisissez votre ID : https://twitter.com/[ID].'; - $text[13] = 'Saisissez votre ID : https://pinterest.com/[ID].'; - $text[14] = 'Saisissez votre ID Linkedin : https://fr.linkedin.com/in/[ID].'; - $text[15] = 'Saisissez votre ID Github : https://github.com/[ID].'; - break; - case 'en' : - $text[0] = 'Settings'; - $text[1] = 'Disable Open Graph capture mode'; - $text[2] = 'Enable Open Graph capture mode'; - $text[3] = 'Generate sitemap.xml and robots.txt'; - $text[4] = 'Allow robots to reference the site'; - $text[5] = 'This screenshot is required for social media sharing. To regenerate it, activate the Open Graph capture mode and click on the camera at the bottom right'; - $text[6] = 'Enabling the Open Graph capture mode causes a camera to appear at the bottom of the page. Clicking it generates a screenshot.jpg image from the active page.
'; - $text[7] = 'Social networks'; - $text[8] = 'Enter your ID: https://www.facebook.com/[ID].'; - $text[9] = 'Enter your ID: https://www.instagram.com/[ID].'; - $text[10] = 'String ID: https://www.youtube.com/channel/[ID].'; - $text[11] = 'Enter your User ID: https://www.youtube.com/user/[ID].'; - $text[12] = 'Enter your ID: https://twitter.com/[ID].'; - $text[13] = 'Enter your ID: https://pinterest.com/[ID].'; - $text[14] = 'Enter your Linkedin ID: https://fr.linkedin.com/in/[ID].'; - $text[15] = 'Enter your Github ID: https://github.com/[ID].'; - break; -} +include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php'); ?>
+
@@ -57,8 +18,8 @@ switch ($val) {
helper::baseUrl() . 'config/configOpenGraph',
'value' => $texte
@@ -70,13 +31,13 @@ switch ($val) {
helper::baseUrl() . 'config/generateFiles',
- 'value' => $text[3]
+ 'value' => $text['core_config_view']['social'][3]
]); ?>
- $this->getData(['config', 'seo','robots'])
]); ?>
@@ -86,13 +47,13 @@ switch ($val) {
-
+
-
+
@@ -104,7 +65,7 @@ switch ($val) {
-
+
@@ -114,28 +75,28 @@ switch ($val) {
$text[8],
+ 'help' => $text['core_config_view']['social'][8],
'label' => 'Facebook',
'value' => $this->getData(['config', 'social', 'facebookId'])
]); ?>
$text[9],
+ 'help' => $text['core_config_view']['social'][9],
'label' => 'Instagram',
'value' => $this->getData(['config', 'social', 'instagramId'])
]); ?>
$text[10],
+ 'help' => $text['core_config_view']['social'][10],
'label' => 'Chaîne Youtube',
'value' => $this->getData(['config', 'social', 'youtubeId'])
]); ?>
$text[11],
+ 'help' => $text['core_config_view']['social'][11],
'label' => 'Youtube',
'value' => $this->getData(['config', 'social', 'youtubeUserId'])
]); ?>
@@ -144,28 +105,28 @@ switch ($val) {
$text[12],
+ 'help' => $text['core_config_view']['social'][12],
'label' => 'Twitter',
'value' => $this->getData(['config', 'social', 'twitterId'])
]); ?>
$text[13],
+ 'help' => $text['core_config_view']['social'][13],
'label' => 'Pinterest',
'value' => $this->getData(['config', 'social', 'pinterestId'])
]); ?>
$text[14],
+ 'help' => $text['core_config_view']['social'][14],
'label' => 'Linkedin',
'value' => $this->getData(['config', 'social', 'linkedinId'])
]); ?>
$text[15],
+ 'help' => $text['core_config_view']['social'][15],
'label' => 'Github',
'value' => $this->getData(['config', 'social', 'githubId'])
]); ?>
diff --git a/core/module/install/install.php b/core/module/install/install.php
index 1386d95..ea257e6 100644
--- a/core/module/install/install.php
+++ b/core/module/install/install.php
@@ -83,37 +83,18 @@ class install extends common {
]);
// Lexique
- $text = [];
- switch ($langAdmin) {
- case 'fr' :
- $text[0] = 'Installation de votre site';
- $text[1] = 'Bonjour';
- $text[2] = 'Voici les détails de votre installation';
- $text[3] = 'URL du site';
- $text[4] = 'Identifiant du compte';
- $text[5] = 'Installation terminée';
- break;
- case 'en' :
- $text[0] = 'Setting up your website';
- $text[1] = 'Hello';
- $text[2] = 'Here are the details of your installation';
- $text[3] = 'Site URL';
- $text[4] = 'Account ID';
- $text[5] = 'Installation completed';
- break;
- }
-
+ include('./core/module/install/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_install.php');
// Compte créé, envoi du mail et création des données du site
if ($success) { // Formulaire complété envoi du mail
// Envoie le mail
// Sent contient true si réussite sinon code erreur d'envoi en clair
$sent = $this->sendMail(
$userMail,
- $text[0],
- $text[1] . ' ' . $userFirstname . ' ' . $userLastname . ',
-
-
-
-
+
+
+
+
- .
+ .
-
+
$text[9],
+ 'value' => $text['core_install_view']['update'][9],
'href' => helper::baseUrl() . 'config',
'ico' => 'check',
'class' => 'disabled'
diff --git a/core/module/maintenance/lang/en/lex_maintenance.php b/core/module/maintenance/lang/en/lex_maintenance.php
new file mode 100644
index 0000000..389d0b1
--- /dev/null
+++ b/core/module/maintenance/lang/en/lex_maintenance.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/core/module/maintenance/lang/fr/lex_maintenance.php b/core/module/maintenance/lang/fr/lex_maintenance.php
new file mode 100644
index 0000000..d834503
--- /dev/null
+++ b/core/module/maintenance/lang/fr/lex_maintenance.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/core/module/maintenance/maintenance.php b/core/module/maintenance/maintenance.php
index 2cedcdc..07f8deb 100644
--- a/core/module/maintenance/maintenance.php
+++ b/core/module/maintenance/maintenance.php
@@ -27,16 +27,8 @@ class maintenance extends common {
*/
public function index() {
// Lexique
- $text = [];
- $val = $this->getData(['config', 'i18n', 'langAdmin']);
- switch ($val) {
- case 'fr' :
- $text[0] = 'Maintenance en cours...';
- break;
- case 'en' :
- $text[0] = 'Maintenance in progress...';
- break;
- }
+ include('./core/module/maintenance/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_maintenance.php');
+
// Redirection vers l'accueil après rafraîchissement et que la maintenance est terminée.
if($this->getData(['config', 'maintenance']) == False){
header('Location:' . helper::baseUrl());
@@ -58,7 +50,7 @@ class maintenance extends common {
// Valeurs en sortie
$this->addOutput([
'display' => self::DISPLAY_LAYOUT_LIGHT,
- 'title' => $text[0],
+ 'title' => $text['core_maintenance']['index'][0],
'view' => 'index'
]);
}
diff --git a/core/module/maintenance/view/index/index.php b/core/module/maintenance/view/index/index.php
index 9681a52..a11abac 100644
--- a/core/module/maintenance/view/index/index.php
+++ b/core/module/maintenance/view/index/index.php
@@ -1,5 +1,9 @@
-
'None'
+];
+$pagesBarId = [
+ '' => 'None'
+];
+$typeMenu = [
+ 'text' => 'Text',
+ 'icon' => 'Icon',
+ 'icontitle' => 'Icon with text bubble'
+];
+$modulePosition = [
+ 'bottom' => 'Bottom',
+ 'top' => 'Top',
+ 'free' => 'Free'
+];
+$pageBlocks = [
+ '12' => 'Standard page',
+ '4-8' => 'Bar 1/3 - page 2/3',
+ '8-4' => 'Page 2/3 - bar 1/3',
+ '3-9' => 'Bar 1/4 - page 3/4',
+ '9-3' => 'Page 3/4 - bar 1/4',
+ '3-6-3' => 'Bar 1/4 - page 1/2 - bar 1/4',
+ '2-7-3' => 'Bar 2/12 - page 7/12 - bar 3/12 ',
+ '3-7-2' => 'Bar 3/12 - page 7/12 - bar 2/12 ',
+ 'bar' => 'Sidebar'
+];
+$displayMenu = [
+ 'none' => 'None',
+ 'parents' => 'Menu',
+ 'children' => 'The submenu of the parent page'
+];
+$groupPublics = [
+ self::GROUP_VISITOR => 'Visitor',
+ self::GROUP_MEMBER => 'Member',
+ self::GROUP_MODERATOR => 'Editor',
+ self::GROUP_ADMIN => 'Administrator'
+];
+?>
\ No newline at end of file
diff --git a/core/module/page/lang/fr/lex_page.php b/core/module/page/lang/fr/lex_page.php
new file mode 100644
index 0000000..abaf986
--- /dev/null
+++ b/core/module/page/lang/fr/lex_page.php
@@ -0,0 +1,91 @@
+ 'Aucune'
+];
+$pagesBarId = [
+ '' => 'Aucune'
+];
+$typeMenu = [
+ 'text' => 'Texte',
+ 'icon' => 'Icône',
+ 'icontitle' => 'Icône avec bulle de texte'
+];
+// Position du module
+$modulePosition = [
+ 'bottom' => 'En bas',
+ 'top' => 'En haut',
+ 'free' => 'Libre'
+];
+$pageBlocks = [
+ '12' => 'Page standard',
+ '4-8' => 'Barre 1/3 - page 2/3',
+ '8-4' => 'Page 2/3 - barre 1/3',
+ '3-9' => 'Barre 1/4 - page 3/4',
+ '9-3' => 'Page 3/4 - barre 1/4',
+ '3-6-3' => 'Barre 1/4 - page 1/2 - barre 1/4',
+ '2-7-3' => 'Barre 2/12 - page 7/12 - barre 3/12 ',
+ '3-7-2' => 'Barre 3/12 - page 7/12 - barre 2/12 ',
+ 'bar' => 'Barre latérale'
+];
+$displayMenu = [
+ 'none' => 'Aucun',
+ 'parents' => 'Le menu',
+ 'children' => 'Le sous-menu de la page parente'
+];
+$groupPublics = [
+ self::GROUP_VISITOR => 'Visiteur',
+ self::GROUP_MEMBER => 'Membre',
+ self::GROUP_MODERATOR => 'Éditeur',
+ self::GROUP_ADMIN => 'Administrateur'
+];
+?>
\ No newline at end of file
diff --git a/core/module/page/page.php b/core/module/page/page.php
index d3a5ef0..eb57118 100644
--- a/core/module/page/page.php
+++ b/core/module/page/page.php
@@ -24,79 +24,17 @@ class page extends common {
'edit' => self::GROUP_MODERATOR,
'duplicate' => self::GROUP_MODERATOR
];
- public static $pagesNoParentId = [
- '' => 'Aucune'
- ];
- public static $pagesNoParentId_en = [
- '' => 'None'
- ];
- public static $pagesBarId = [
- '' => 'Aucune'
- ];
- public static $pagesBarId_en = [
- '' => 'None'
- ];
- public static $moduleIds = [];
- public static $typeMenu = [
- 'text' => 'Texte',
- 'icon' => 'Icône',
- 'icontitle' => 'Icône avec bulle de texte'
- ];
- public static $typeMenu_en = [
- 'text' => 'Text',
- 'icon' => 'Icon',
- 'icontitle' => 'Icon with text bubble'
- ];
- // Position du module
- public static $modulePosition = [
- 'bottom' => 'En bas',
- 'top' => 'En haut',
- 'free' => 'Libre'
- ];
- public static $modulePosition_en = [
- 'bottom' => 'Bottom',
- 'top' => 'Top',
- 'free' => 'Free'
- ];
- public static $pageBlocks = [
- '12' => 'Page standard',
- '4-8' => 'Barre 1/3 - page 2/3',
- '8-4' => 'Page 2/3 - barre 1/3',
- '3-9' => 'Barre 1/4 - page 3/4',
- '9-3' => 'Page 3/4 - barre 1/4',
- '3-6-3' => 'Barre 1/4 - page 1/2 - barre 1/4',
- '2-7-3' => 'Barre 2/12 - page 7/12 - barre 3/12 ',
- '3-7-2' => 'Barre 3/12 - page 7/12 - barre 2/12 ',
- 'bar' => 'Barre latérale'
- ];
- public static $pageBlocks_en = [
- '12' => 'Standard page',
- '4-8' => 'Bar 1/3 - page 2/3',
- '8-4' => 'Page 2/3 - bar 1/3',
- '3-9' => 'Bar 1/4 - page 3/4',
- '9-3' => 'Page 3/4 - bar 1/4',
- '3-6-3' => 'Bar 1/4 - page 1/2 - bar 1/4',
- '2-7-3' => 'Bar 2/12 - page 7/12 - bar 3/12 ',
- '3-7-2' => 'Bar 3/12 - page 7/12 - bar 2/12 ',
- 'bar' => 'Sidebar'
- ];
- public static $displayMenu = [
- 'none' => 'Aucun',
- 'parents' => 'Le menu',
- 'children' => 'Le sous-menu de la page parente'
- ];
- public static $displayMenu_en = [
- 'none' => 'None',
- 'parents' => 'Menu',
- 'children' => 'The submenu of the parent page'
- ];
+ public static $moduleIds = [];
+ public static $pagesBarId = [];
+ public static $pagesNoParentId = [];
/**
* Duplication
*/
public function duplicate() {
// Lexique
+ include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
@@ -172,6 +110,7 @@ class page extends common {
*/
public function add() {
// Lexique
+ include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
@@ -237,6 +176,7 @@ class page extends common {
*/
public function delete() {
// Lexique
+ include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
@@ -388,6 +328,7 @@ class page extends common {
*/
public function edit() {
// Lexique
+ include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
@@ -588,36 +529,27 @@ class page extends common {
}
}
self::$moduleIds = array_merge( ['' => $text[1]] , helper::arrayCollumn(helper::getModules(),'realName','SORT_ASC')); // Pages sans parent
+ self::$pagesNoParentId = $pagesNoParentId;
foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) {
if($parentPageId !== $this->getUrl(2)) {
self::$pagesNoParentId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
- self::$pagesNoParentId_en[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
+ //self::$pagesNoParentId_en[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
}
}
// Pages barre latérales
+ self::$pagesBarId = $pagesBarId;
foreach($this->getHierarchy(null,false,true) as $parentPageId => $childrenPageIds) {
if($parentPageId !== $this->getUrl(2) &&
$this->getData(['page', $parentPageId, 'block']) === 'bar') {
self::$pagesBarId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
- self::$pagesBarId_en[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
+ //self::$pagesBarId_en[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
}
}
// Mise à jour de la liste des pages pour TinyMCE
$this->pages2Json();
- // Passage de la langue d'administration à Tinymce
- $lang_admin = 'fr_FR';
- if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en') $lang_admin = 'en_GB';
- ?>
-
- addOutput([
'title' => $this->getData(['page', $this->getUrl(2), 'title']),
- 'vendor' => [
- 'tinymce'
- ],
'view' => 'edit'
]);
}
diff --git a/core/module/page/view/edit/edit.js.php b/core/module/page/view/edit/edit.js.php
index 4bfbc4c..f131b7e 100644
--- a/core/module/page/view/edit/edit.js.php
+++ b/core/module/page/view/edit/edit.js.php
@@ -20,14 +20,7 @@
*/
$("#pageEditDelete").on("click", function() {
var _this = $(this);
- var text = "";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Êtes-vous sûr de vouloir supprimer cette page ?";' ;
- }
- else{
- echo 'text = "Are you sure you want to delete this page ?";' ;
- } ?>
- return core.confirm( text, function() {
+ return core.confirm( textConfirm, function() {
$(location).attr("href", _this.attr("href"));
});
});
@@ -43,17 +36,7 @@ function protectModule() {
if ( oldModule !== "" &&
oldModule !== newModule) {
var _this = $(this);
- var text1 = "";
- var text2 = "";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text1 = "Les données du module ";' ;
- echo 'text2 = " seront effacées. Confirmez-vous ?";' ;
- }
- else{
- echo 'text1 = "The data in the module ";' ;
- echo 'text2 = " will be deleted. Do you confirm?";' ;
- } ?>
- core.confirm( text1 + oldModuleText + text2,
+ core.confirm( text1Confirm + oldModuleText + text2Confirm,
function() {
$(location).attr("href", _this.attr("href"));
return true;
diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php
index 353cdaa..ae1f98d 100644
--- a/core/module/page/view/edit/edit.php
+++ b/core/module/page/view/edit/edit.php
@@ -1,111 +1,18 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Dupliquer';
- $text[3] = 'Supprimer';
- $text[4] = 'Enregistrer';
- $text[5] = 'Informations générales';
- $text[6] = 'Titre';
- $text[7] = 'Titre court';
- $text[8] = 'Le titre court est affiché dans les menus. Il peut être identique au titre de la page.';
- $text[9] = 'En cas de changement de module, les données du module précédent seront supprimées.';
- $text[10] = 'Module';
- $text[11] = 'Aspect du lien';
- $text[12] = 'Sélectionnez une image ou une icône de petite dimension';
- $text[13] = 'Icône';
- $text[14] = 'En position libre ajoutez le module en plaçant [MODULE] à l\'endroit voulu dans votre page.';
- $text[15] = 'Position du module';
- $text[16] = 'Mise en page';
- $text[17] = 'Gabarits de page / Barre latérale';
- $text[18] = 'Pour définir la page comme barre latérale, choisissez l\'option dans la liste.';
- $text[19] = 'Barre latérale gauche :';
- $text[20] = 'Barre latérale droite :';
- $text[21] = 'Contenu du menu vertical';
- $text[22] = 'Par défaut le menu est affiché APRES le contenu de la page. Pour le positionner à un emplacement précis, insérez [MENU] dans le contenu de la page.';
- $text[23] = 'Emplacement dans le menu';
- $text[24] = 'Position';
- $text[25] = '\'Ne pas afficher\' crée une page orpheline non accessible par le biais des menus.';
- $text[26] = 'Page parent';
- $text[27] = 'Une page désactivée n\'est pas cliquable en mode déconnecté, les pages enfants sont visibles et accessibles. La page d\'accueil n\'est pas désactivable.';
- $text[28] = 'Affiche le nom de la page parente suivi du nom de la page, le titre ne doit pas être masqué.';
- $text[29] = 'Options d\'emplacement avancées';
- $text[30] = 'Masquer les pages enfants dans le menu horizontal';
- $text[31] = 'Masquer la page et les pages enfants dans le menu d\'une barre latérale';
- $text[32] = 'La page est affichée dans un menu horizontal mais pas dans le menu vertical d\'une barre latérale.';
- $text[33] = 'Permission et référencement';
- $text[34] = 'Groupe requis pour accéder à la page :';
- $text[35] = 'Méta-titre';
- $text[36] = 'Méta-description';
- $text[37] = 'Désactivée';
- $text[38] = 'Nouvel onglet';
- $text[39] = 'Titre masqué';
- $text[40] = 'Fil d\'Ariane';
- $typeMenu = $module::$typeMenu;
- $modulePosition = $module::$modulePosition;
- $pageBlocks = $module::$pageBlocks;
- $displayMenu = $module::$displayMenu;
- $groupPublics = self::$groupPublics;
- $pagesBarId = $module::$pagesBarId;
- $pagesNoParentId = $module::$pagesNoParentId;
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Duplicate';
- $text[3] = 'Delete';
- $text[4] = 'OK';
- $text[5] = 'General information';
- $text[6] = 'Title';
- $text[7] = 'Short title';
- $text[8] = 'The short title is displayed in the menus. It can be identical to the page title.';
- $text[9] = 'If the module is changed, the data of the previous module will be deleted.';
- $text[10] = 'Module';
- $text[11] = 'Aspect of the link';
- $text[12] = 'Select a small image or icon';
- $text[13] = 'Icon';
- $text[14] = 'In free position add the module by placing [MODULE] at the desired location on your page.';
- $text[15] = 'Module position';
- $text[16] = 'Layout';
- $text[17] = 'Page templates / Sidebar';
- $text[18] = 'To set the page as a sidebar, choose the option from the list.';
- $text[19] = 'Left sidebar :';
- $text[20] = 'Right sidebar :';
- $text[21] = 'Content of the vertical menu';
- $text[22] = 'By default the menu is displayed AFTER the page content. To position it at a specific location, insert [MENU] into the page content.';
- $text[23] = 'Location in the menu';
- $text[24] = 'Position';
- $text[25] = 'Do not display creates an orphan page that cannot be accessed via the menus.';
- $text[26] = 'Parent page';
- $text[27] = 'A deactivated page is not clickable in disconnected mode, the child pages are visible and accessible. The home page cannot be disabled.';
- $text[28] = 'Displays the parent page name followed by the page name, the title should not be hidden.';
- $text[29] = 'Advanced location options';
- $text[30] = 'Hide child pages in the horizontal menu';
- $text[31] = 'Hide the page and child pages in the sidebar menu';
- $text[32] = 'The page is displayed in a horizontal menu but not in the vertical menu of a sidebar.';
- $text[33] = 'Permission and referencing';
- $text[34] = 'Group required to access the page:';
- $text[35] = 'Meta title';
- $text[36] = 'Meta description';
- $text[37] = 'Disabled';
- $text[38] = 'New tab';
- $text[39] = 'Title hidden';
- $text[40] = 'Breadcrumb';
- $typeMenu = $module::$typeMenu_en;
- $modulePosition = $module::$modulePosition_en;
- $pageBlocks = $module::$pageBlocks_en;
- $displayMenu = $module::$displayMenu_en;
- $groupPublics = self::$groupPublics_en;
- $pagesBarId = $module::$pagesBarId_en;
- $pagesNoParentId = $module::$pagesNoParentId_en;
- break;
-}
+include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php');
?>
-
+
+';
+echo '';
+echo '';
+
+echo template::formOpen('pageEditForm'); ?>
getUrl(2); ?>
@@ -114,7 +21,7 @@ switch ($val) {
'class' => 'buttonGrey',
'href' => $href,
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_page_view']['edit'][0]
]); ?>
@@ -122,14 +29,14 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/edition',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_page_view']['edit'][1],
'class' => 'buttonHelp'
]); ?>
helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
- 'value' => $text[2],
+ 'value' => $text['core_page_view']['edit'][2],
'ico' => 'clone'
]); ?>
@@ -137,21 +44,21 @@ switch ($val) {
'buttonRed',
'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'],
- 'value' => $text[3],
+ 'value' => $text['core_page_view']['edit'][3],
'ico' => 'cancel'
]); ?>
true,
- 'value' => $text[4]
+ 'value' => $text['core_page_view']['edit'][4]
]); ?>
-
' . - $text[2].'
' . - ''.$text[3].' : ' . helper::baseUrl(false) . '
' . - ''.$text[4].' : ' . $this->getInput('installId') . '
', + $text['core_install']['index'][0], + $text['core_install']['index'][1] . ' ' . $userFirstname . ' ' . $userLastname . ',
' . + $text['core_install']['index'][2].'
' . + ''.$text['core_install']['index'][3].' : ' . helper::baseUrl(false) . '
' . + ''.$text['core_install']['index'][4].' : ' . $this->getInput('installId') . '
', null ); // Nettoyer les cookies de langue d'une précédente installation @@ -129,21 +110,20 @@ class install extends common { } } - // Installation du site de test en anglais - if( $langAdmin === 'en'){ + // Installation du site de test dans une langue d'administration différente du français + if( $langAdmin !== 'fr'){ if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === FALSE) { - $this->copyDir( './core/module/install/ressource/database_en/base/', './site/data/base/'); - $this->copyDir( './core/module/install/ressource/database_en/search/', './site/data/search/'); + $this->copyDir( './core/module/install/ressource/database_'.$langAdmin.'/base/', './site/data/base/'); + $this->copyDir( './core/module/install/ressource/database_'.$langAdmin.'/search/', './site/data/search/'); } else{ - $this->copyDir( './core/module/install/ressource/databaselight_en/base/', './site/data/base/'); + $this->copyDir( './core/module/install/ressource/databaselight_'.$langAdmin.'/base/', './site/data/base/'); } } // Personnalisation de la page d'accueil en fonction de la langue de rédaction choisie - if( $langBase !== 'fr' && $langBase !== 'en' && file_exists( './core/module/install/ressource/'. $langBase . '/accueil.html' )){ - $accueil = 'accueil.html'; - if( $langAdmin === 'en') $accueil = 'home.html'; + if( $langBase !== $langAdmin && file_exists( './core/module/install/ressource/'. $langBase . '/accueil.html' )){ + $accueil = $text['core_install']['index'][6]; copy('./core/module/install/ressource/'. $langBase . '/accueil.html', './site/data/base/content/'. $accueil); } @@ -189,10 +169,10 @@ class install extends common { unlink(self::FILE_DIR . 'source/theme/themes.json'); // Modification du texte 'Pied de page personnalisé' situé dans theme.json ( $this->setData pose problème) - if( $langAdmin === 'en'){ + if( $langAdmin !== 'fr'){ $theme = file_get_contents( self::DATA_DIR.'theme.json'); $theme = json_decode( $theme, true); - $theme['theme']['footer']['text'] = 'Custom footer'; + $theme['theme']['footer']['text'] = $text['core_install']['index'][7]; $json = json_encode($theme); file_put_contents(self::DATA_DIR.'theme.json',$json); } @@ -200,7 +180,7 @@ class install extends common { // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl(false), - 'notification' => $sent === true ? $text[5] : $sent, + 'notification' => $sent === true ? $text['core_install']['index'][5] : $sent, 'state' => ($sent === true && $success === true) ? true : null ]); } @@ -339,22 +319,13 @@ class install extends common { */ public function update() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ( $val ) { - case 'fr' : - $text[0] = 'Mise à jour'; - break; - case 'en' : - $text[0] = 'Update'; - break; - } + include('./core/module/install/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_install.php'); // Nouvelle version self::$newVersion = helper::urlGetContents(common::DELTA_UPDATE_URL . common::DELTA_UPDATE_CHANNEL . '/version'); // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_LAYOUT_LIGHT, - 'title' => $text[0], + 'title' => $text['core_install']['update'][0], 'view' => 'update' ]); } diff --git a/core/module/install/lang/en/lex_install.php b/core/module/install/lang/en/lex_install.php new file mode 100644 index 0000000..34ae9b4 --- /dev/null +++ b/core/module/install/lang/en/lex_install.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/core/module/install/lang/fr/lex_install.php b/core/module/install/lang/fr/lex_install.php new file mode 100644 index 0000000..f4753f0 --- /dev/null +++ b/core/module/install/lang/fr/lex_install.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/core/module/install/ressource/database_en/base/module.json b/core/module/install/ressource/database_en/base/module.json index cc7b63a..ddf9e6d 100644 --- a/core/module/install/ressource/database_en/base/module.json +++ b/core/module/install/ressource/database_en/base/module.json @@ -120,7 +120,7 @@ "style": "site\/data\/gallery\/galeries\/theme.css" }, "config": { - "versionData": "4.0" + "versionData": "4.1" } }, "deltacms": { @@ -141,7 +141,7 @@ "logoUrl": "", "logoWidth": "40", "maxSizeUpload": "500000", - "versionData": "4.2", + "versionData": "4.3", "uploadJpg": true, "uploadPng": true, "uploadPdf": false, diff --git a/core/module/install/ressource/database_fr/base/module.json b/core/module/install/ressource/database_fr/base/module.json index c29732d..dc53310 100644 --- a/core/module/install/ressource/database_fr/base/module.json +++ b/core/module/install/ressource/database_fr/base/module.json @@ -120,7 +120,7 @@ "style": "site\/data\/gallery\/galeries\/theme.css" }, "config": { - "versionData": "4.0" + "versionData": "4.1" } }, "deltacms": { @@ -141,7 +141,7 @@ "logoUrl": "", "logoWidth": "40", "maxSizeUpload": "1000000", - "versionData": "4.2", + "versionData": "4.3", "uploadJpg": true, "uploadPng": true, "uploadPdf": false, diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 96ec626..1d710ef 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -70,7 +70,7 @@ class init extends common { ] ], 'core' => [ - 'dataVersion' => 4304, + 'dataVersion' => 4306, 'lastBackup' => 0, 'lastClearTmp' => 0, 'lastAutoUpdate' => 0, diff --git a/core/module/install/view/update/update.php b/core/module/install/view/update/update.php index f98cdb1..d0a6796 100644 --- a/core/module/install/view/update/update.php +++ b/core/module/install/view/update/update.php @@ -1,58 +1,30 @@ getData(['config', 'i18n', 'langAdmin']); -switch ($val) { - case 'fr' : - $text[0] = 'Mise à jour de Deltacms '; - $text[1] = ' vers Deltacms '; - $text[2] = 'Afin d\'assurer le bon fonctionnement de Deltacms, veuillez ne pas fermer cette page avant la fin de l\'opération.'; - $text[3] = '1/4 : Préparation...'; - $text[4] = '2/4 : Téléchargement...'; - $text[5] = '3/4 : Installation...'; - $text[6] = '4/4 : Configuration...'; - $text[7] = 'Une erreur est survenue lors de l\'étape'; - $text[8] = 'Mise à jour terminée avec succès.'; - $text[9] = 'Terminer'; - break; - case 'en' : - $text[0] = 'Updating Deltacms '; - $text[1] = ' to Deltacms '; - $text[2] = 'To ensure the proper functioning of Deltacms, please do not close this page until the operation is complete.'; - $text[3] = '1/4: Preparation...'; - $text[4] = '2/4 : Download...'; - $text[5] = '3/4 : Installation...'; - $text[6] = '4/4 : Configuration...'; - $text[7] = 'An error occurred in the step'; - $text[8] = 'Update successfully completed.'; - $text[9] = 'Finish'; - break; -} - +include('./core/module/install/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_install.php'); ?> -
.
- +.
+Notre site est actuellement en maintenance. Nous sommes désolés pour la gêne occasionnée et faisons notre possible pour être rapidement de retour.
-Our site is currently undergoing maintenance. We apologise for the inconvenience and are doing our best to be back soon.
+getData(['config', 'i18n', 'langAdmin']) . '/lex_maintenance.php'); +?> + ++
@@ -161,15 +68,15 @@ switch ($val) {
$text[6],
+ 'label' => $text['core_page_view']['edit'][6],
'value' => $this->getData(['page', $this->getUrl(2), 'title'])
]); ?>
$text[7],
+ 'label' => $text['core_page_view']['edit'][7],
'value' => $this->getData(['page', $this->getUrl(2), 'shortTitle']),
- 'help' => $text[8]
+ 'help' => $text['core_page_view']['edit'][8]
]); ?>
@@ -177,8 +84,8 @@ switch ($val) {
$text[9],
- 'label' => $text[10],
+ 'help' => $text['core_page_view']['edit'][9],
+ 'label' => $text['core_page_view']['edit'][10],
'selected' => $this->getData(['page', $this->getUrl(2), 'moduleId'])
]); ?>
$this->getData(['page', $this->getUrl(2), 'moduleId'])]); ?>
@@ -202,21 +109,21 @@ switch ($val) {
$text[11],
+ 'label' => $text['core_page_view']['edit'][11],
'selected' => $this->getData(['page', $this->getUrl(2), 'typeMenu'])
]); ?>
$text[12],
- 'label' => $text[13],
+ 'help' => $text['core_page_view']['edit'][12],
+ 'label' => $text['core_page_view']['edit'][13],
'value' => $this->getData(['page', $this->getUrl(2), 'iconUrl'])
]); ?>
$text[14],
- 'label' => $text[15],
+ 'help' => $text['core_page_view']['edit'][14],
+ 'label' => $text['core_page_view']['edit'][15],
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
]); ?>
@@ -236,7 +143,7 @@ switch ($val) {
-
@@ -292,7 +199,7 @@ switch ($val) {
-
+
@@ -249,8 +156,8 @@ switch ($val) {
$text[17],
- 'help' => $text[18],
+ 'label' => $text['core_page_view']['edit'][17],
+ 'help' => $text['core_page_view']['edit'][18],
'selected' => $this->getData(['page', $this->getUrl(2) , 'block'])
]); ?>
@@ -263,8 +170,8 @@ switch ($val) {
'value' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
]); ?>
- $text[19],
+ $text['core_page_view']['edit'][19],
'selected' => $this->getData(['page', $this->getUrl(2), 'barLeft'])
]); ?>
@@ -273,15 +180,15 @@ switch ($val) {
'value' => $this->getData(['page', $this->getUrl(2), 'barRight'])
]); ?>
- $text[20],
+ $text['core_page_view']['edit'][20],
'selected' => $this->getData(['page', $this->getUrl(2), 'barRight'])
]); ?>
$text[21],
+ 'label' => $text['core_page_view']['edit'][21],
'selected' => $this->getData(['page', $this->getUrl(2), 'displayMenu']),
- 'help' => $text[22]
+ 'help' => $text['core_page_view']['edit'][22]
]); ?>
+
@@ -303,8 +210,8 @@ switch ($val) {
$text[24],
- 'help' => $text[25]
+ 'label' => $text['core_page_view']['edit'][24],
+ 'help' => $text['core_page_view']['edit'][25]
]); ?>
@@ -313,8 +220,8 @@ switch ($val) {
'value' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
]); ?>
- $text[26],
+ $text['core_page_view']['edit'][26],
'selected' => $this->getData(['page', $this->getUrl(2), 'parentPageId'])
]); ?>
@@ -323,27 +230,27 @@ switch ($val) {
- $this->getData(['page', $this->getUrl(2), 'disable']),
- 'help' => $text[27]
+ 'help' => $text['core_page_view']['edit'][27]
]); ?>
- $this->getData(['page', $this->getUrl(2), 'targetBlank'])
]); ?>
- $this->getData(['page', $this->getUrl(2), 'hideTitle'])
]); ?>
- $this->getData(['page', $this->getUrl(2), 'breadCrumb']),
- 'help' => $text[28]
+ 'help' => $text['core_page_view']['edit'][28]
]); ?>
@@ -354,7 +261,7 @@ switch ($val) {
-
+
@@ -364,14 +271,14 @@ switch ($val) {
- $this->getData(['page', $this->getUrl(2), 'hideMenuChildren'])
]); ?>
- $this->getData(['page', $this->getUrl(2), 'hideMenuSide']),
- 'help' => $text[32]
+ 'help' => $text['core_page_view']['edit'][32]
]); ?>
@@ -382,7 +289,7 @@ switch ($val) {
-
-
-
-
+
\ No newline at end of file
diff --git a/core/module/theme/view/admin/admin.js.php b/core/module/theme/view/admin/admin.js.php
index a06d138..d64b27e 100644
--- a/core/module/theme/view/admin/admin.js.php
+++ b/core/module/theme/view/admin/admin.js.php
@@ -56,14 +56,7 @@ $("input, select").on("change", function() {
*/
$("#configAdminReset").on("click", function() {
var _this = $(this);
- var text="";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine le thème de l\'administration ?";' ;
- }
- else{
- echo 'text = "Are you sure you want to reset the administration theme to its original state ?";' ;
- } ?>
- return core.confirm(text, function() {
+ return core.confirm(textConfirm, function() {
$(location).attr("href", _this.attr("href"));
});
});
diff --git a/core/module/theme/view/admin/admin.php b/core/module/theme/view/admin/admin.php
index 74da2c1..d1832dc 100644
--- a/core/module/theme/view/admin/admin.php
+++ b/core/module/theme/view/admin/admin.php
@@ -1,64 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[3] = 'Réinitialiser';
- $text[4] = 'Valider';
- $text[5] = 'Couleurs';
- $text[6] = 'Couleur visible en l\'absence d\'une image.
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['admin'][0]
]); ?>
@@ -66,7 +17,7 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/administration',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['admin'][1],
'class' => 'buttonHelp'
]); ?>
@@ -74,13 +25,13 @@ switch ($val) {
'buttonRed',
'href' => helper::baseUrl() . 'theme/reset/admin' . '&csrf=' . $_SESSION['csrf'],
- 'value' => $text[3],
+ 'value' => $text['core_theme_view']['admin'][3],
'ico' => 'cancel'
]); ?>
$text[4],
+ 'value' => $text['core_theme_view']['admin'][4],
'ico' => 'check'
]); ?>
@@ -88,29 +39,29 @@ switch ($val) {
-
+
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[8],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][8],
'value' => $this->getData(['admin', 'backgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[9],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][9],
'value' => $this->getData(['admin', 'colorTitle'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[10],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][10],
'value' => $this->getData(['admin', 'colorText'])
]); ?>
@@ -119,24 +70,24 @@ switch ($val) {
'colorPicker',
- 'help' => $text[7],
- 'label' => $text[11],
+ 'help' => $text['core_theme_view']['admin'][7],
+ 'label' => $text['core_theme_view']['admin'][11],
'value' => $this->getData(['admin', 'backgroundBlockColor'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[12],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][12],
'value' => $this->getData(['admin', 'borderBlockColor'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[13],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][13],
'value' => $this->getData(['admin', 'backgroundColorButtonHelp'])
]); ?>
@@ -145,32 +96,32 @@ switch ($val) {
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[14],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][14],
'value' => $this->getData(['admin', 'backgroundColorButtonGrey'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[15],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][15],
'value' => $this->getData(['admin', 'backgroundColorButton'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[16],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][16],
'value' => $this->getData(['admin', 'backgroundColorButtonRed'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[17],
+ 'help' => $text['core_theme_view']['admin'][6],
+ 'label' => $text['core_theme_view']['admin'][17],
'value' => $this->getData(['admin', 'backgroundColorButtonGreen'])
]); ?>
@@ -181,24 +132,24 @@ switch ($val) {
-
+
$text[19],
+ 'label' => $text['core_theme_view']['admin'][19],
'selected' => $this->getData(['admin', 'fontText']),
'fonts' => true
]); ?>
$text[20],
+ 'label' => $text['core_theme_view']['admin'][20],
'selected' => $this->getData(['admin', 'fontSize'])
]); ?>
$text[21],
+ 'label' => $text['core_theme_view']['admin'][21],
'selected' => $this->getData(['admin', 'fontTitle']),
'fonts' => true
]); ?>
@@ -209,3 +160,6 @@ switch ($val) {
+
\ No newline at end of file
diff --git a/core/module/theme/view/advanced/advanced.js.php b/core/module/theme/view/advanced/advanced.js.php
index 6d5a701..1259343 100644
--- a/core/module/theme/view/advanced/advanced.js.php
+++ b/core/module/theme/view/advanced/advanced.js.php
@@ -32,14 +32,7 @@ $("#themeAdvancedCss").on("change keydown keyup", function() {
*/
$("#themeAdvancedReset").on("click", function() {
var _this = $(this);
- var text="";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine la personnalisation avancée ?";' ;
- }
- else{
- echo 'text = "Are you sure you want to reset the advanced customization to its original state ?";' ;
- } ?>
- return core.confirm(text, function() {
+ return core.confirm(textConfirm, function() {
$(location).attr("href", _this.attr("href"));
});
});
\ No newline at end of file
diff --git a/core/module/theme/view/advanced/advanced.php b/core/module/theme/view/advanced/advanced.php
index 95222a3..13bcc41 100644
--- a/core/module/theme/view/advanced/advanced.php
+++ b/core/module/theme/view/advanced/advanced.php
@@ -1,30 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Réinitialiser';
- $text[3] = 'Enregistrer';
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Reset';
- $text[3] = 'Save';
- break;
-}
-?>
-
+include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
+
+echo template::formOpen('themeAdvancedForm'); ?>
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['advanced'][0]
]); ?>
@@ -32,7 +17,7 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/editeur-css',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['advanced'][1],
'class' => 'buttonHelp'
]); ?>
@@ -41,12 +26,12 @@ switch ($val) {
'href' => helper::baseUrl() . 'theme/reset/custom' . '&csrf=' . $_SESSION['csrf'],
'class' => 'buttonRed',
'ico' => 'cancel',
- 'value' => $text[2]
+ 'value' => $text['core_theme_view']['advanced'][2]
]); ?>
$text[3]
+ 'value' => $text['core_theme_view']['advanced'][3]
]); ?>
@@ -58,4 +43,7 @@ switch ($val) {
]); ?>
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/core/module/theme/view/body/body.php b/core/module/theme/view/body/body.php
index f6b8e77..5d91d70 100644
--- a/core/module/theme/view/body/body.php
+++ b/core/module/theme/view/body/body.php
@@ -1,62 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Enregistrer';
- $text[3] = 'Couleurs';
- $text[4] = 'Couleur visible en l\'absence d\'une image.
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['body'][0]
]); ?>
@@ -64,26 +17,26 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/personnalisation-de-l-arriere-plan',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['body'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['body'][2]
]); ?>
-
+
'colorPicker',
- 'help' => $text[4],
- 'label' => $text[5],
+ 'help' => $text['core_theme_view']['body'][4],
+ 'label' => $text['core_theme_view']['body'][5],
'value' => $this->getData(['theme', 'body', 'backgroundColor'])
]); ?>
@@ -92,16 +45,16 @@ switch ($val) {
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[7],
+ 'help' => $text['core_theme_view']['body'][6],
+ 'label' => $text['core_theme_view']['body'][7],
'value' => $this->getData(['theme', 'body', 'toTopbackgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[6],
- 'label' => $text[8],
+ 'help' => $text['core_theme_view']['body'][6],
+ 'label' => $text['core_theme_view']['body'][8],
'value' => $this->getData(['theme', 'body', 'toTopColor'])
]); ?>
@@ -112,14 +65,14 @@ switch ($val) {
-
+
getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
echo template::file('themeBodyImage', [
- 'help' => $text[10],
- 'label' => $text[11],
+ 'help' => $text['core_theme_view']['body'][10],
+ 'label' => $text['core_theme_view']['body'][11],
'type' => 1,
'value' => $imageFile
]); ?>
@@ -129,13 +82,13 @@ switch ($val) {
$text[12],
+ 'label' => $text['core_theme_view']['body'][12],
'selected' => $this->getData(['theme', 'body', 'imageRepeat'])
]); ?>
$text[13],
+ 'label' => $text['core_theme_view']['body'][13],
'selected' => $this->getData(['theme', 'body', 'imagePosition'])
]); ?>
@@ -143,13 +96,13 @@ switch ($val) {
$text[14],
+ 'label' => $text['core_theme_view']['body'][14],
'selected' => $this->getData(['theme', 'body', 'imageAttachment'])
]); ?>
$text[15],
+ 'label' => $text['core_theme_view']['body'][15],
'selected' => $this->getData(['theme', 'body', 'imageSize'])
]); ?>
diff --git a/core/module/theme/view/editFonts/editFonts.php b/core/module/theme/view/editFonts/editFonts.php
index 8595302..f0d6eee 100644
--- a/core/module/theme/view/editFonts/editFonts.php
+++ b/core/module/theme/view/editFonts/editFonts.php
@@ -1,49 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Enregistrer';
- $text[3] = 'Paramètres de la police';
- $text[4] = 'Nom de la police sélectionnée';
- $text[5] = 'Valeur non modifiable';
- $text[6] = 'Liaison avec un fichier de police';
- $text[7] = 'Le fichier de police est envoyé, ou pas, depuis un dépôt local';
- $text[8] = 'Vous devez au préalable téléverser le fichier de police, ttf, woff, otf, eot ou woff2 dans le dossier fonts avec le gestionnaire de fichiers.';
- $text[9] = 'Sélection d\'une police';
- $text[10] = 'License';
- $text[11] = 'Type de license de la police';
- $typeAddFont = $module::$typeAddFont;
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Save';
- $text[3] = 'Font settings';
- $text[4] = 'Selected font name';
- $text[5] = 'Value not editable';
- $text[6] = 'Link to a font file';
- $text[7] = 'The font file is sent, or not, from a local repository';
- $text[8] = 'You must first upload the font file, ttf, woff, otf, eot or woff2 to the fonts folder with the file manager';
- $text[9] = 'Select a font';
- $text[10] = 'License';
- $text[11] = 'License type of the font';
- $typeAddFont = $module::$typeAddFont_en;
- break;
-}
-?>
-
+include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
+echo template::formOpen('themeEditFonts'); ?>
'buttonGrey',
'href' => helper::baseUrl() . 'theme/fonts',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['editFonts'][0]
]); ?>
@@ -51,33 +17,33 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/polices',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['editFonts'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['editFonts'][2]
]); ?>
-
+
$this->getData(['fonts', $this->getUrl(2),'name']),
- 'label' => $text[4],
+ 'label' => $text['core_theme_view']['editFonts'][4],
'readonly' => true,
- 'help' => $text[5]
+ 'help' => $text['core_theme_view']['editFonts'][5]
]); ?>
$text[6],
+ 'label' => $text['core_theme_view']['editFonts'][6],
'selected' => $this->getData(['fonts', $this->getUrl(2),'type']),
- 'help' => $text[7]
+ 'help' => $text['core_theme_view']['editFonts'][7]
]); ?>
@@ -85,8 +51,8 @@ switch ($val) {
getData(['fonts', $this->getUrl(2),'file']), $module::$fontFiles);
echo template::select('fileEditFont', $module::$fontFiles, [
'selected' => $key,
- 'help' => $text[8],
- 'label' => $text[9]
+ 'help' => $text['core_theme_view']['editFonts'][8],
+ 'label' => $text['core_theme_view']['editFonts'][9]
]); ?>
@@ -95,8 +61,8 @@ switch ($val) {
$this->getData(['fonts', $this->getUrl(2),'license']),
- 'label' => $text[10],
- 'help' => $text[11]
+ 'label' => $text['core_theme_view']['editFonts'][10],
+ 'help' => $text['core_theme_view']['editFonts'][11]
]); ?>
diff --git a/core/module/theme/view/fonts/fonts.js.php b/core/module/theme/view/fonts/fonts.js.php
index 76b4b04..7b53074 100644
--- a/core/module/theme/view/fonts/fonts.js.php
+++ b/core/module/theme/view/fonts/fonts.js.php
@@ -20,13 +20,7 @@
$(".fontDelete").on("click", function() {
var _this = $(this);
var text="";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Êtes-vous sûr de vouloir supprimer cette police ?";' ;
- }
- else{
- echo 'text = "Are you sure you want to delete this font ?";' ;
- } ?>
- return core.confirm(text, function() {
+ return core.confirm(textConfirm, function() {
$(location).attr("href", _this.attr("href"));
});
});
\ No newline at end of file
diff --git a/core/module/theme/view/fonts/fonts.php b/core/module/theme/view/fonts/fonts.php
index def8792..e0edd19 100644
--- a/core/module/theme/view/fonts/fonts.php
+++ b/core/module/theme/view/fonts/fonts.php
@@ -1,27 +1,6 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Police';
- $text[3] = 'Identifiant';
- $text[4] = 'Nom';
- $text[5] = 'Fichier';
- $text[6] = 'Aperçu';
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Police';
- $text[3] = 'Username';
- $text[4] = 'Name';
- $text[5] = 'File';
- $text[6] = 'Preview';
- break;
-}
+include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
?>
@@ -29,7 +8,7 @@ switch ($val) {
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['fonts'][0]
]); ?>
@@ -37,7 +16,7 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/polices',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['fonts'][1],
'class' => 'buttonHelp'
]); ?>
@@ -45,9 +24,12 @@ switch ($val) {
helper::baseUrl() . 'theme/addFonts',
'ico' => 'plus',
- 'value' => $text[2]
+ 'value' => $text['core_theme_view']['fonts'][2]
]); ?>
-
+
+
diff --git a/core/module/theme/view/footer/footer.css b/core/module/theme/view/footer/footer.css
index 8091386..cb062b9 100644
--- a/core/module/theme/view/footer/footer.css
+++ b/core/module/theme/view/footer/footer.css
@@ -24,7 +24,7 @@
*/
.titleWysiwygContent {
font-family: "Oswald",sans-serif;
- font-weight: normal;
+ font-weight: bold;
text-transform: none;
font-size: 1.0em;
margin: 10px;
diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php
index 0c9d9de..87b4253 100644
--- a/core/module/theme/view/footer/footer.js.php
+++ b/core/module/theme/view/footer/footer.js.php
@@ -120,25 +120,6 @@ $(".themeFooterContent").on("change",function() {
// Modification dynamique de la mise en page
$("#themeFooterTemplate").on("change",function() {
// Nettoyage des sélecteurs des contenus
- var newOptions = {};
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo " newOptions = {
- 4: {'hide' : 'Masqué', 'left' : 'En haut', 'center' : 'Au milieu', 'right' : 'En bas'} ,
- 3: {'hide': 'Masqué', 'left': 'A gauche', 'center': 'Au centre', 'right': 'A droite'} ,
- 2: {'hide': 'Masqué', 'left': 'A gauche', 'right': 'A droite'} ,
- 1: {'hide': 'Masqué', 'center': 'Affiché'}
- };";
- }
- else{
- echo " newOptions = {
- 4: {'hide' : 'Hidden', 'left' : 'Top', 'center' : 'Middle', 'right' : 'Bottom'} ,
- 3: {'hide': 'Hidden', 'left': 'Left', 'center': 'Center', 'right': 'Right'} ,
- 2: {'hide': 'Hidden', 'left': 'Left', 'right': 'Right'} ,
- 1: {'hide': 'Hidden', 'center': 'Display'}
- };" ;
- } ?>
-
-
var $el = $(".themeFooterContent");
$el.empty();
// Eléments des position de contenus
diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php
index e110fbd..0bf6633 100644
--- a/core/module/theme/view/footer/footer.php
+++ b/core/module/theme/view/footer/footer.php
@@ -1,130 +1,26 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Enregistrer';
- $text[3] = 'Paramètres';
- $text[4] = 'Position';
- $text[5] = 'Marges verticales';
- $text[6] = 'Couleurs';
- $text[7] = 'Texte';
- $text[8] = 'Arrière-plan';
- $text[9] = 'Quand le pied de page est dans le site, l\'arrière plan transparent montre le fond de la page. Quand le pied de page est hors du site, l\'arrière plan transparent montre le fond du site.';
- $text[10] = 'Contenu';
- $text[11] = 'Motorisé par';
- $text[12] = 'Affiche cette mention devant DeltaCMS';
- $text[13] = 'Version';
- $text[14] = 'Affiche le numéro de version après DeltaCMS';
- $text[15] = 'Plan du site';
- $text[16] = 'Cookies';
- $text[17] = 'Message d\'information relatif aux cookies, disponible si l\'acceptation des cookies est activé.';
- $text[18] = 'Lien de connexion';
- $text[19] = 'Pour limiter les tentatives de piratage, enregistrez la page de connexion en favori et désactivez cette option.';
- $text[20] = 'Barre du membre';
- $text[21] = 'Affiche les icônes de gestion du compte et de déconnexion des membres simples connectés, ne s\'applique pas aux éditeurs et administrateurs.';
- $text[22] = 'Mentions légales';
- $text[23] = 'Option active si une page a été sélectionnée.';
- $text[24] = 'Aucune';
- $text[25] = 'Page "Mentions légales" ';
- $text[26] = 'Rechercher';
- $text[27] = 'Option active si une page a été sélectionnée.';
- $text[28] = 'Page "Rechercher" ';
- $text[29] = 'Options identique à la configuration du site';
- $text[30] = 'Mise en forme du texte';
- $text[31] = 'Police';
- $text[32] = 'Taille';
- $text[33] = 'Proportionnelle à celle définie dans le site.';
- $text[34] = 'Style';
- $text[35] = 'Casse';
- $text[36] = 'Dispositions';
- $text[37] = 'Répartition';
- $text[38] = 'Contenu personnalisé';
- $text[39] = 'Position';
- $text[40] = 'Alignement';
- $text[41] = 'Réseaux sociaux';
- $text[42] = 'Informations';
- $text[43] = 'Alignement avec le contenu';
- $text[44] = 'Pied de page fixe';
- $text[45] = 'Contenu personnalisé';
- $footerPositions = $module::$footerPositions;
- $footerHeights = $module::$footerHeights;
- $footerFontSizes = $module::$footerFontSizes;
- $fontWeights = $module::$fontWeights;
- $textTransforms = $module::$textTransforms;
- $footerblocks = $module::$footerblocks;
- $footerTemplate = $module::$footerTemplate;
- $aligns = $module::$aligns;
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Save';
- $text[3] = 'Settings';
- $text[4] = 'Position';
- $text[5] = 'Vertical margins';
- $text[6] = 'Colours';
- $text[7] = 'Text';
- $text[8] = 'Background';
- $text[9] = 'When the footer is inside the site, the transparent background shows the page background. When the footer is outside the site, the transparent background shows the site background';
- $text[10] = 'Content';
- $text[11] = 'Powered by';
- $text[12] = 'Displays this in front of DeltaCMS';
- $text[13] = 'Version';
- $text[14] = 'Displays the version number after DeltaCMS';
- $text[15] = 'Site map';
- $text[16] = 'Cookies';
- $text[17] = 'Cookie information message, available if cookie acceptance is enabled';
- $text[18] = 'Login link';
- $text[19] = 'To limit hacking attempts, save the login page as a favourite and disable this option';
- $text[20] = 'Member bar';
- $text[21] = 'Displays account management and logout icons for simple logged-in members, does not apply to editors and administrators';
- $text[22] = 'Legal notice';
- $text[23] = 'Option active if a page has been selected';
- $text[24] = 'None';
- $text[25] = 'Legal page ';
- $text[26] = 'Search';
- $text[27] = 'Option active if a page has been selected';
- $text[28] = 'Search page ';
- $text[29] = 'Options same as site configuration';
- $text[30] = 'Text formatting';
- $text[31] = 'Font';
- $text[32] = 'Size';
- $text[33] = 'Proportional to that defined in the site';
- $text[34] = 'Style';
- $text[35] = 'Character case';
- $text[36] = 'Layout';
- $text[37] = 'Breakdown';
- $text[38] = 'Custom content';
- $text[39] = 'Position';
- $text[40] = 'Alignment';
- $text[41] = 'Social networks';
- $text[42] = 'Information';
- $text[43] = 'Alignment with content';
- $text[44] = 'Fixed footer';
- $text[45] = 'Customised content';
- $footerPositions = $module::$footerPositions_en;
- $footerHeights = $module::$footerHeights_en;
- $footerFontSizes = $module::$footerFontSizes_en;
- $fontWeights = $module::$fontWeights_en;
- $textTransforms = $module::$textTransforms_en;
- $footerblocks = $module::$footerblocks_en;
- $footerTemplate = $module::$footerTemplate_en;
- $aligns = $module::$aligns_en;
- break;
-}
+include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
+
+// Passage de la langue d'administration à Tinymce
+?>
+
+';
+echo '';
+echo '';
+echo template::formOpen('themeFooterForm');
?>
-
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['footer'][0]
]); ?>
@@ -132,30 +28,30 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/personnalisation-du-pied-de-page',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['footer'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['footer'][2]
]); ?>
-
+
$text[4],
+ 'label' => $text['core_theme_view']['footer'][4],
'selected' => $this->getData(['theme', 'footer', 'position'])
]); ?>
$text[5],
+ 'label' => $text['core_theme_view']['footer'][5],
'selected' => $this->getData(['theme', 'footer', 'height'])
]); ?>
@@ -166,21 +62,21 @@ switch ($val) {
-
+
'colorPicker',
- 'label' => $text[7],
+ 'label' => $text['core_theme_view']['footer'][7],
'value' => $this->getData(['theme', 'footer', 'textColor'])
]); ?>
'colorPicker',
- 'label' => $text[8],
+ 'label' => $text['core_theme_view']['footer'][8],
'value' => $this->getData(['theme', 'footer', 'backgroundColor']),
- 'help' => $text[9]
+ 'help' => $text['core_theme_view']['footer'][9]
]); ?>
@@ -190,77 +86,77 @@ switch ($val) {
-
+
- $this->getData(['theme', 'footer','displayCopyright']),
- 'help' => $text[12]
+ 'help' => $text['core_theme_view']['footer'][12]
]); ?>
- $this->getData(['theme', 'footer','displayVersion']),
- 'help' => $text[14]
+ 'help' => $text['core_theme_view']['footer'][14]
]); ?>
- $this->getData(['theme', 'footer', 'displaySiteMap'])
]); ?>
- $this->getData(['config', 'cookieConsent']) === true ? $this->getData(['theme', 'footer', 'displayCookie']) : false,
- 'help' => $text[17],
+ 'help' => $text['core_theme_view']['footer'][17],
'disabled' => !$this->getData(['config', 'cookieConsent'])
]); ?>
- $this->getData(['theme', 'footer', 'loginLink']),
- 'help' => $text[19]
+ 'help' => $text['core_theme_view']['footer'][19]
]); ?>
- $this->getData(['theme', 'footer', 'displayMemberBar']),
- 'help' => $text[21]
+ 'help' => $text['core_theme_view']['footer'][21]
]); ?>
- $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false,
- 'help' => $text[23]
+ 'help' => $text['core_theme_view']['footer'][23]
]); ?>
getInput('DELTA_I18N_SITE') === 'base') $flag = $this->getData(['config', 'i18n', 'langBase']); ?>
- $text[24]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
- 'label' => $text[25] . template::flag($flag, '20px'),
+ $text['core_theme_view']['footer'][24]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
+ 'label' => $text['core_theme_view']['footer'][25] . template::flag($flag, '20px'),
'selected' => $this->getData(['locale', 'legalPageId'])
]); ?>
- $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']),
'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false,
- 'help' => $text[27]
+ 'help' => $text['core_theme_view']['footer'][27]
]); ?>
- $text[24]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
- 'label' => $text[28] . template::flag($flag, '20px'),
+ $text['core_theme_view']['footer'][24]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
+ 'label' => $text['core_theme_view']['footer'][28] . template::flag($flag, '20px'),
'selected' => $this->getData(['locale', 'searchPageId']),
- 'help' => $text[29]
+ 'help' => $text['core_theme_view']['footer'][29]
]); ?>
@@ -270,7 +166,7 @@ switch ($val) {
''.$text[45].' ',
+ 'label' => ''.$text['core_theme_view']['footer'][45].' ',
'value' => $this->getData(['theme', 'footer', 'text']),
'class' => 'editorWysiwyg'
]); ?>
@@ -279,31 +175,31 @@ switch ($val) {
-
+
$text[31],
+ 'label' => $text['core_theme_view']['footer'][31],
'selected' => $this->getData(['theme', 'footer', 'font']),
'fonts' => true
]); ?>
$text[32],
- 'help' => $text[33],
+ 'label' => $text['core_theme_view']['footer'][32],
+ 'help' => $text['core_theme_view']['footer'][33],
'selected' => $this->getData(['theme', 'footer', 'fontSize'])
]); ?>
$text[34],
+ 'label' => $text['core_theme_view']['footer'][34],
'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
]); ?>
$text[35],
+ 'label' => $text['core_theme_view']['footer'][35],
'selected' => $this->getData(['theme', 'footer', 'textTransform'])
]); ?>
@@ -314,23 +210,23 @@ switch ($val) {
-
+
getData(['theme', 'footer', 'template'])) ? $footerblocks[3] : $footerblocks [$this->getData(['theme', 'footer', 'template'])] ;?>
$text[37],
+ 'label' => $text['core_theme_view']['footer'][37],
'selected' => is_null($this->getData(['theme', 'footer', 'template'])) ? 4 : $this->getData(['theme', 'footer', 'template'])
]); ?>
-
$text[39],
+ 'label' => $text['core_theme_view']['footer'][39],
'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent'
]); ?>
@@ -339,18 +235,18 @@ switch ($val) {
$text[40],
+ 'label' => $text['core_theme_view']['footer'][40],
'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?>
-
$text[39],
+ 'label' => $text['core_theme_view']['footer'][39],
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent'
]); ?>
@@ -359,18 +255,18 @@ switch ($val) {
$text[40],
+ 'label' => $text['core_theme_view']['footer'][40],
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?>
-
$text[39],
+ 'label' => $text['core_theme_view']['footer'][39],
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent'
]); ?>
@@ -379,7 +275,7 @@ switch ($val) {
$text[40],
+ 'label' => $text['core_theme_view']['footer'][40],
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?>
@@ -387,14 +283,14 @@ switch ($val) {
- $this->getData(['theme', 'footer', 'margin'])
]); ?>
- $this->getData(['theme', 'footer', 'fixed'])
]); ?>
@@ -404,3 +300,6 @@ switch ($val) {
+
\ No newline at end of file
diff --git a/core/module/theme/view/header/header.css b/core/module/theme/view/header/header.css
index 69c9908..1ae84fd 100644
--- a/core/module/theme/view/header/header.css
+++ b/core/module/theme/view/header/header.css
@@ -23,7 +23,7 @@
*/
.titleWysiwygContent {
font-family: "Oswald",sans-serif;
- font-weight: normal;
+ font-weight: bold;
text-transform: none;
font-size: 1.0em;
margin: 10px;
diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php
index 461992d..2d7a728 100644
--- a/core/module/theme/view/header/header.js.php
+++ b/core/module/theme/view/header/header.js.php
@@ -70,14 +70,7 @@ $("input, select").on("change", function() {
// Modifier la valeur
$("#themeHeaderHeight option:eq(0)").val(tmpImgHeight + "px");
// Modifier l'option
- var text="";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Hauteur de l\'image sélectionnée (";' ;
- }
- else{
- echo 'text = "Height of the selected image (";' ;
- } ?>
- $("#themeHeaderHeight option:eq(0)").html( text + tmpImgHeight + "px)");
+ $("#themeHeaderHeight option:eq(0)").html( textOption + tmpImgHeight + "px)");
}
};
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php
index 6d64ea1..93c37ef 100644
--- a/core/module/theme/view/header/header.php
+++ b/core/module/theme/view/header/header.php
@@ -1,114 +1,27 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Paramètres';
- $text[3] = 'Position';
- $text[4] = 'Nature de contenu';
- $text[5] = 'Hauteur maximale';
- $text[6] = 'La hauteur maximale est de 600 pixels, même si les dimensions de l\'image sélectionnée sont supérieures.
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['header'][0]
]); ?>
@@ -116,59 +29,59 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/personnalisation-de-la-banniere',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['header'][1],
'class' => 'buttonHelp'
]); ?>
$text[34]
+ 'value' => $text['core_theme_view']['header'][34]
]); ?>
-
+
$text[3],
+ 'label' => $text['core_theme_view']['header'][3],
'selected' => $this->getData(['theme', 'header', 'position'])
]); ?>
$text[4],
+ 'label' => $text['core_theme_view']['header'][4],
'selected' => $this->getData(['theme', 'header', 'feature'])
]); ?>
$text[5],
+ 'label' => $text['core_theme_view']['header'][5],
'selected' => $this->getData(['theme', 'header', 'height']),
- 'help' => $text[6]
+ 'help' => $text['core_theme_view']['header'][6]
]); ?>
$text[7],
+ 'label' => $text['core_theme_view']['header'][7],
'selected' => $this->getData(['theme', 'header', 'wide'])
]); ?>
- $this->getData(['theme', 'header', 'tinyHidden'])
]); ?>
- $this->getData(['theme', 'header', 'margin'])
]); ?>
@@ -180,21 +93,21 @@ switch ($val) {
-
+
'colorPicker',
- 'help' => $text[11],
- 'label' => $text[12],
+ 'help' => $text['core_theme_view']['header'][11],
+ 'label' => $text['core_theme_view']['header'][12],
'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[13],
- 'label' => $text[14],
+ 'help' => $text['core_theme_view']['header'][13],
+ 'label' => $text['core_theme_view']['header'][14],
'value' => $this->getData(['theme', 'header', 'textColor'])
]); ?>
@@ -205,24 +118,24 @@ switch ($val) {
-
+
- $this->getData(['theme', 'header', 'textHide'])
]); ?>
$text[17],
+ 'label' => $text['core_theme_view']['header'][17],
'selected' => $this->getData(['theme', 'header', 'font']),
'fonts' => true
]); ?>
$text[18],
- 'help' => $text[21],
+ 'label' => $text['core_theme_view']['header'][18],
+ 'help' => $text['core_theme_view']['header'][21],
'selected' => $this->getData(['theme', 'header', 'fontSize'])
]); ?>
@@ -230,19 +143,19 @@ switch ($val) {
$text[19],
+ 'label' => $text['core_theme_view']['header'][19],
'selected' => $this->getData(['theme', 'header', 'fontWeight'])
]); ?>
$text[20],
+ 'label' => $text['core_theme_view']['header'][20],
'selected' => $this->getData(['theme', 'header', 'textTransform'])
]); ?>
$text[22],
+ 'label' => $text['core_theme_view']['header'][22],
'selected' => $this->getData(['theme', 'header', 'textAlign'])
]); ?>
@@ -254,15 +167,15 @@ switch ($val) {
-
+
getData(['theme', 'header', 'image'])) ?
$this->getData(['theme', 'header', 'image']) : "";
echo template::file('themeHeaderImage', [
- 'help' => $text[24],
- 'label' => $text[25],
+ 'help' => $text['core_theme_view']['header'][24],
+ 'label' => $text['core_theme_view']['header'][25],
'type' => 1,
'value' => $imageFile
]); ?>
@@ -272,25 +185,25 @@ switch ($val) {
$text[26],
+ 'label' => $text['core_theme_view']['header'][26],
'selected' => $this->getData(['theme', 'header', 'imageRepeat'])
]); ?>
$text[27],
+ 'label' => $text['core_theme_view']['header'][27],
'selected' => $this->getData(['theme', 'header', 'imageContainer']),
- 'help' => $text[28]
+ 'help' => $text['core_theme_view']['header'][28]
]); ?>
$text[3],
+ 'label' => $text['core_theme_view']['header'][3],
'selected' => $this->getData(['theme', 'header', 'imagePosition'])
]); ?>
- $this->getData(['theme', 'header', 'linkHomePage'])
]); ?>
@@ -298,7 +211,7 @@ switch ($val) {
-
+
@@ -311,7 +224,7 @@ switch ($val) {
''.$text[33].' ',
+ 'label' => ''.$text['core_theme_view']['header'][33].' ',
'class' => 'editorWysiwyg',
'value' => $this->getData(['theme', 'header', 'featureContent'])
]); ?>
@@ -323,3 +236,6 @@ switch ($val) {
getData(['theme','header','featureContent']);?>
+
\ No newline at end of file
diff --git a/core/module/theme/view/index/index.php b/core/module/theme/view/index/index.php
index 145494d..41e9f1d 100644
--- a/core/module/theme/view/index/index.php
+++ b/core/module/theme/view/index/index.php
@@ -1,45 +1,20 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Cliquez sur une zone afin d\'accéder à ses options de personnalisation. Vous pouvez également afficher les zones cachées à l\'aide du bouton ci-dessous.';
- $text[1] = 'Accueil';
- $text[2] = 'Aide';
- $text[3] = 'Zones cachées';
- $text[4] = 'Gestion';
- $text[5] = 'Administration';
- $text[6] = 'Éditeur CSS';
- $text[7] = 'Polices';
- $text[8] = 'Cliquez sur une zone afin d\'accéder à ses options de personnalisation.';
- break;
- case 'en' :
- $text[0] = 'Click on an area to access its customisation options. You can also display hidden areas using the button below';
- $text[1] = 'Home';
- $text[2] = 'Help';
- $text[3] = 'Hidden areas';
- $text[4] = 'Management';
- $text[5] = 'Administration';
- $text[6] = 'CSS Editor';
- $text[7] = 'Fonts';
- $text[8] = 'Click on a zone to access its customisation options';
- break;
-}
-?>
-getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
+
+if(
$this->getData(['theme', 'header', 'position']) === 'hide'
OR $this->getData(['theme', 'menu', 'position']) === 'hide'
OR $this->getData(['theme', 'footer', 'position']) === 'hide'
): ?>
-
+
'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
- 'value' => $text[1]
+ 'value' => $text['core_theme_view']['index'][1]
]); ?>
@@ -47,14 +22,14 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/theme-2',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[2],
+ 'value' => $text['core_theme_view']['index'][2],
'class' => 'buttonHelp'
]); ?>
'eye',
- 'value' => $text[3]
+ 'value' => $text['core_theme_view']['index'][3]
]); ?>
@@ -63,14 +38,14 @@ switch ($val) {
'cogs',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
- 'value' => $text[4]
+ 'value' => $text['core_theme_view']['index'][4]
]); ?>
'brush',
'href' => helper::baseUrl() . $this->getUrl(0) . '/admin',
- 'value' => $text[5]
+ 'value' => $text['core_theme_view']['index'][5]
]); ?>
@@ -78,7 +53,7 @@ switch ($val) {
'code',
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
- 'value' => $text[6]
+ 'value' => $text['core_theme_view']['index'][6]
]); ?>
@@ -87,19 +62,19 @@ switch ($val) {
'pencil',
'href' => helper::baseUrl() . $this->getUrl(0) . '/fonts',
- 'value' => $text[7]
+ 'value' => $text['core_theme_view']['index'][7]
]); ?>
-
+
'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
- 'value' => $text[1]
+ 'value' => $text['core_theme_view']['index'][1]
]); ?>
@@ -107,7 +82,7 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/theme-2',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[2],
+ 'value' => $text['core_theme_view']['index'][2],
'class' => 'buttonHelp'
]); ?>
@@ -117,14 +92,14 @@ switch ($val) {
'cogs',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
- 'value' => $text[4]
+ 'value' => $text['core_theme_view']['index'][4]
]); ?>
'brush',
'href' => helper::baseUrl() . $this->getUrl(0) . '/admin',
- 'value' => $text[5]
+ 'value' => $text['core_theme_view']['index'][5]
]); ?>
@@ -132,7 +107,7 @@ switch ($val) {
'code',
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
- 'value' => $text[6]
+ 'value' => $text['core_theme_view']['index'][6]
]); ?>
@@ -141,7 +116,7 @@ switch ($val) {
'pencil',
'href' => helper::baseUrl() . $this->getUrl(0) . '/fonts',
- 'value' => $text[7]
+ 'value' => $text['core_theme_view']['index'][7]
]); ?>
diff --git a/core/module/theme/view/manage/manage.js.php b/core/module/theme/view/manage/manage.js.php
index c985c3a..0b66d42 100644
--- a/core/module/theme/view/manage/manage.js.php
+++ b/core/module/theme/view/manage/manage.js.php
@@ -19,14 +19,7 @@
*/
$("#configManageReset").on("click", function() {
var _this = $(this);
- var text="";
- getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
- echo 'text = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine le thème du site ?";' ;
- }
- else{
- echo 'text = "Are you sure you want to reset the site theme to its original state ?";' ;
- } ?>
- return core.confirm(text, function() {
+ return core.confirm(textConfirm, function() {
$(location).attr("href", _this.attr("href"));
});
});
\ No newline at end of file
diff --git a/core/module/theme/view/manage/manage.php b/core/module/theme/view/manage/manage.php
index 558bc15..dd3c0d3 100644
--- a/core/module/theme/view/manage/manage.php
+++ b/core/module/theme/view/manage/manage.php
@@ -1,50 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Réinitialiser';
- $text[3] = 'Appliquer';
- $text[4] = 'Installer un thème archivé (site ou administration)';
- $text[5] = 'Archive ZIP :';
- $text[6] = 'Sauvegarde du thème dans les ';
- $text[7] = 'fichiers';
- $text[8] = ' du site';
- $text[9] = 'Thème du site';
- $text[10] = 'Thème de l\'administration';
- $text[11] = 'Télécharger le thème';
- $text[12] = 'Thème du site';
- $text[13] = 'Thème de l\'administration';
- break;
- case 'en' :
- $text[0] = 'Back';
- $text[1] = 'Help';
- $text[2] = 'Reset';
- $text[3] = 'Apply';
- $text[4] = 'Install archived theme (site or admin)';
- $text[5] = 'ZIP archive:';
- $text[6] = 'Save theme in ';
- $text[7] = 'files';
- $text[8] = ' of the site';
- $text[9] = 'Site theme';
- $text[10] = 'Administration theme';
- $text[11] = 'Download theme';
- $text[12] = 'Site theme';
- $text[13] = 'Administration theme';
- break;
-}
-?>
-
+include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
+
+echo template::formOpen('themeManageForm'); ?>
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['manage'][0]
]); ?>
@@ -52,7 +17,7 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/gestion',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['manage'][1],
'class' => 'buttonHelp'
]); ?>
@@ -60,24 +25,24 @@ switch ($val) {
'buttonRed',
'href' => helper::baseUrl() . 'theme/reset/manage' . '&csrf=' . $_SESSION['csrf'],
- 'value' => $text[2],
+ 'value' => $text['core_theme_view']['manage'][2],
'ico' => 'cancel'
]); ?>
$text[3]
+ 'value' => $text['core_theme_view']['manage'][3]
]); ?>
-
+
$text[5],
+ 'label' => $text['core_theme_view']['manage'][5],
'type' => 2
]); ?>
@@ -88,20 +53,20 @@ switch ($val) {
-
helper::baseUrl() . 'theme/save/theme',
'ico' => 'download-cloud',
- 'value' => $text[9]
+ 'value' => $text['core_theme_view']['manage'][9]
]); ?>
helper::baseUrl() . 'theme/save/admin',
'ico' => 'download-cloud',
- 'value' => $text[10]
+ 'value' => $text['core_theme_view']['manage'][10]
]); ?>
@@ -110,20 +75,20 @@ switch ($val) {
-
+
helper::baseUrl() . 'theme/export/theme',
'ico' => 'download',
- 'value' => $text[12]
+ 'value' => $text['core_theme_view']['manage'][12]
]); ?>
helper::baseUrl() . 'theme/export/admin',
'ico' => 'download',
- 'value' => $text[13]
+ 'value' => $text['core_theme_view']['manage'][13]
]); ?>
@@ -131,3 +96,6 @@ switch ($val) {
+
\ No newline at end of file
diff --git a/core/module/theme/view/menu/menu.php b/core/module/theme/view/menu/menu.php
index 9dc9ba8..cdfc6a7 100644
--- a/core/module/theme/view/menu/menu.php
+++ b/core/module/theme/view/menu/menu.php
@@ -1,118 +1,15 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Enregistrer';
- $text[3] = 'Paramètres';
- $text[4] = 'Position';
- $text[5] = 'Largeur';
- $text[6] = 'Bords arrondis';
- $text[7] = 'Autour de la page sélectionnée';
- $text[8] = 'Hauteur';
- $text[9] = 'Alignement du contenu';
- $text[10] = 'Aligner le menu avec le contenu';
- $text[11] = 'Menu fixe';
- $text[12] = 'Contenus';
- $text[13] = 'Lien de connexion';
- $text[14] = 'Barre de membre';
- $text[15] = 'Icônes de gestion de compte et de déconnexion. Uniquement pour les membres connectés';
- $text[16] = 'Affichage dans le menu burger';
- $text[17] = 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.';
- $text[18] = 'Sélectionner une image, ses dimensions seront adaptées automatiquement';
- $text[19] = 'Logo du menu burger';
- $text[20] = 'Couleurs';
- $text[21] = 'Le curseur horizontal règle le niveau de transparence.';
- $text[22] = 'Texte';
- $text[23] = 'Le curseur horizontal règle le niveau de transparence.';
- $text[24] = 'Arrière-plan';
- $text[25] = 'Fond du sous-menu';
- $text[26] = 'Texte page active';
- $text[27] = 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.';
- $text[28] = 'Couleur de fond de la page sélectionnée dans le menu.
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['menu'][0]
]); ?>
@@ -120,38 +17,38 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/personnalisation-du-menu',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['menu'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['menu'][2]
]); ?>
-
+
getData(['theme', 'header', 'position']) == "site")
{ echo template::select('themeMenuPosition', $menuPositionsSite, [
- 'label' => $text[4],
+ 'label' => $text['core_theme_view']['menu'][4],
'selected' => $this->getData(['theme', 'menu', 'position'])
]);
}else{
echo template::select('themeMenuPosition', $menuPositionsBody, [
- 'label' => $text[4],
+ 'label' => $text['core_theme_view']['menu'][4],
'selected' => $this->getData(['theme', 'menu', 'position'])
]); }
?>
$text[5],
+ 'label' => $text['core_theme_view']['menu'][5],
'selected' => $this->getData(['theme', 'menu', 'wide'])
]); ?>
@@ -159,31 +56,31 @@ switch ($val) {
$text[6],
+ 'label' => $text['core_theme_view']['menu'][6],
'selected' => $this->getData(['theme', 'menu', 'radius']),
- 'help' => $text[7]
+ 'help' => $text['core_theme_view']['menu'][7]
]); ?>
$text[8],
+ 'label' => $text['core_theme_view']['menu'][8],
'selected' => $this->getData(['theme', 'menu', 'height'])
]); ?>
$text[9],
+ 'label' => $text['core_theme_view']['menu'][9],
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
]); ?>
- $this->getData(['theme', 'menu', 'margin'])
]); ?>
- $this->getData(['theme', 'menu', 'fixed'])
]); ?>
@@ -193,24 +90,24 @@ switch ($val) {
-
+
- $this->getData(['theme', 'menu', 'loginLink'])
]); ?>
- $this->getData(['theme', 'menu', 'memberBar']),
- 'help' => $text[15]
+ 'help' => $text['core_theme_view']['menu'][15]
]); ?>
$text[16],
+ 'label' => $text['core_theme_view']['menu'][16],
'selected' => $this->getData(['theme', 'menu', 'burgerContent']),
- 'help' => $text[17]
+ 'help' => $text['core_theme_view']['menu'][17]
]); ?>
@@ -219,15 +116,15 @@ switch ($val) {
'colorPicker',
- 'help' => $text[21],
- 'label' => $text[22],
+ 'help' => $text['core_theme_view']['menu'][21],
+ 'label' => $text['core_theme_view']['menu'][22],
'value' => $this->getData(['theme', 'menu', 'burgerTextColor'])
]); ?>
$text[32],
- 'help' => $text[33],
+ 'label' => $text['core_theme_view']['menu'][32],
+ 'help' => $text['core_theme_view']['menu'][33],
'selected' => $this->getData(['theme', 'menu', 'burgerFontSize'])
]); ?>
@@ -239,8 +136,8 @@ switch ($val) {
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'menu', 'burgerLogo'])) ?
$this->getData(['theme', 'menu', 'burgerLogo']) : "";
echo template::file('themeMenuBurgerLogo', [
- 'help' => $text[18],
- 'label' => $text[19],
+ 'help' => $text['core_theme_view']['menu'][18],
+ 'label' => $text['core_theme_view']['menu'][19],
'type' => 1,
'value' => $imageFile
]); ?>
@@ -252,29 +149,29 @@ switch ($val) {
-
+
'colorPicker',
- 'help' => $text[21],
- 'label' => $text[22],
+ 'help' => $text['core_theme_view']['menu'][21],
+ 'label' => $text['core_theme_view']['menu'][22],
'value' => $this->getData(['theme', 'menu', 'textColor'])
]); ?>
'colorPicker',
- 'help' => $text[23],
- 'label' => $text[24],
+ 'help' => $text['core_theme_view']['menu'][23],
+ 'label' => $text['core_theme_view']['menu'][24],
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[23],
- 'label' => $text[25],
+ 'help' => $text['core_theme_view']['menu'][23],
+ 'label' => $text['core_theme_view']['menu'][25],
'value' => $this->getData(['theme', 'menu', 'backgroundColorSub'])
]); ?>
@@ -283,23 +180,23 @@ switch ($val) {
'colorPicker',
- 'help' => $text[23],
- 'label' => $text[26],
+ 'help' => $text['core_theme_view']['menu'][23],
+ 'label' => $text['core_theme_view']['menu'][26],
'value' => $this->getData(['theme', 'menu', 'activeTextColor'])
]); ?>
$this->getData(['theme', 'menu', 'activeColorAuto']),
- 'help' => $text[27]
+ 'help' => $text['core_theme_view']['menu'][27]
]); ?>
'colorPicker',
- 'help' => $text[28],
- 'label' => $text[29],
+ 'help' => $text['core_theme_view']['menu'][28],
+ 'label' => $text['core_theme_view']['menu'][29],
'value' => $this->getData(['theme', 'menu', 'activeColor'])
]); ?>
@@ -310,19 +207,19 @@ switch ($val) {
-
+
$text[31],
+ 'label' => $text['core_theme_view']['menu'][31],
'selected' => $this->getData(['theme', 'menu', 'font']),
'fonts' => true
]); ?>
$text[32],
- 'help' => $text[33],
+ 'label' => $text['core_theme_view']['menu'][32],
+ 'help' => $text['core_theme_view']['menu'][33],
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
]); ?>
@@ -330,13 +227,13 @@ switch ($val) {
$text[34],
+ 'label' => $text['core_theme_view']['menu'][34],
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
]); ?>
$text[35],
+ 'label' => $text['core_theme_view']['menu'][35],
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
]); ?>
diff --git a/core/module/theme/view/site/site.php b/core/module/theme/view/site/site.php
index c2a5e93..c2dfc35 100644
--- a/core/module/theme/view/site/site.php
+++ b/core/module/theme/view/site/site.php
@@ -1,98 +1,27 @@
getData(['config', 'i18n', 'langAdmin']);
-switch ($val) {
- case 'fr' :
- $text[0] = 'Retour';
- $text[1] = 'Aide';
- $text[2] = 'Enregistrer';
- $text[3] = 'Paramètres';
- $text[4] = 'Largeur du site';
- $text[5] = 'Arrondi des angles';
- $text[6] = 'Ombre sur les bords du site';
- $text[7] = 'Pas de marge au-dessus et en-dessous du site';
- $text[8] = 'Couleurs';
- $text[9] = 'Le curseur horizontal règle le niveau de transparence.';
- $text[10] = 'Arrière-plan';
- $text[11] = 'Texte';
- $text[12] = 'Titres';
- $text[13] = 'Liens';
- $text[14] = 'Couleur visible en l\'absence d\'une image.
'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['site'][0]
]); ?>
@@ -100,43 +29,43 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/personnalisation-du-site',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['site'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['site'][2]
]); ?>
-
+
$text[4],
+ 'label' => $text['core_theme_view']['site'][4],
'selected' => $this->getData(['theme', 'site', 'width'])
]); ?>
$text[5],
+ 'label' => $text['core_theme_view']['site'][5],
'selected' => $this->getData(['theme', 'site', 'radius'])
]); ?>
$text[6],
+ 'label' => $text['core_theme_view']['site'][6],
'selected' => $this->getData(['theme', 'site', 'shadow'])
]); ?>
- $this->getData(['theme', 'site', 'margin'])
]); ?>
@@ -147,23 +76,23 @@ switch ($val) {
-
+
'colorPicker',
- 'help' => $text[9],
- 'label' => $text[10],
+ 'help' => $text['core_theme_view']['site'][9],
+ 'label' => $text['core_theme_view']['site'][10],
'value' => $this->getData(['theme', 'site', 'backgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[9],
- 'label' => $text[11],
+ 'help' => $text['core_theme_view']['site'][9],
+ 'label' => $text['core_theme_view']['site'][11],
'value' => $this->getData(['theme', 'text', 'textColor'])
]); ?>
@@ -172,16 +101,16 @@ switch ($val) {
'colorPicker',
- 'help' => $text[9],
- 'label' => $text[12],
+ 'help' => $text['core_theme_view']['site'][9],
+ 'label' => $text['core_theme_view']['site'][12],
'value' => $this->getData(['theme', 'title', 'textColor'])
]); ?>
'colorPicker',
- 'help' => $text[9],
- 'label' => $text[13],
+ 'help' => $text['core_theme_view']['site'][9],
+ 'label' => $text['core_theme_view']['site'][13],
'value' => $this->getData(['theme', 'text', 'linkColor'])
]); ?>
@@ -190,16 +119,16 @@ switch ($val) {
'colorPicker',
- 'help' => $text[14],
- 'label' => $text[15],
+ 'help' => $text['core_theme_view']['site'][14],
+ 'label' => $text['core_theme_view']['site'][15],
'value' => $this->getData(['theme', 'block', 'backgroundColor'])
]); ?>
'colorPicker',
- 'help' => $text[14],
- 'label' => $text[16],
+ 'help' => $text['core_theme_view']['site'][14],
+ 'label' => $text['core_theme_view']['site'][16],
'value' => $this->getData(['theme', 'block', 'borderColor'])
]); ?>
@@ -208,13 +137,13 @@ switch ($val) {
$text[17],
+ 'label' => $text['core_theme_view']['site'][17],
'selected' => $this->getData(['theme', 'block', 'blockBorderRadius'])
]); ?>
$text[18],
+ 'label' => $text['core_theme_view']['site'][18],
'selected' => $this->getData(['theme', 'block', 'blockBorderShadow'])
]); ?>
@@ -223,16 +152,16 @@ switch ($val) {
'colorPicker',
- 'help' => $text[14],
- 'label' => $text[19],
+ 'help' => $text['core_theme_view']['site'][14],
+ 'label' => $text['core_theme_view']['site'][19],
'value' => $this->getData(['theme', 'block', 'backgroundTitleColor'])
]); ?>
'colorPicker',
- 'help' => $text[9],
- 'label' => $text[20],
+ 'help' => $text['core_theme_view']['site'][9],
+ 'label' => $text['core_theme_view']['site'][20],
'value' => $this->getData(['theme', 'button', 'backgroundColor'])
]); ?>
@@ -243,20 +172,20 @@ switch ($val) {
-
-
+
+
'buttonSubmitPreview',
- 'value' => $text[23]
+ 'value' => $text['core_theme_view']['site'][23]
]); ?>
-
+
@@ -393,17 +300,17 @@ switch ($val) {
$text[34],
+ 'label' => $text['core_page_view']['edit'][34],
'selected' => $this->getData(['page', $this->getUrl(2), 'group'])
]); ?>
$text[35],
+ 'label' => $text['core_page_view']['edit'][35],
'value' => $this->getData(['page', $this->getUrl(2), 'metaTitle'])
]); ?>
$text[36],
+ 'label' => $text['core_page_view']['edit'][36],
//'maxlength' => '500',
'value' => $this->getData(['page', $this->getUrl(2), 'metaDescription'])
]); ?>
@@ -414,3 +321,8 @@ switch ($val) {
+
\ No newline at end of file
diff --git a/core/module/sitemap/lang/en/lex_sitemap.php b/core/module/sitemap/lang/en/lex_sitemap.php
new file mode 100644
index 0000000..d4e0917
--- /dev/null
+++ b/core/module/sitemap/lang/en/lex_sitemap.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/core/module/sitemap/lang/fr/lex_sitemap.php b/core/module/sitemap/lang/fr/lex_sitemap.php
new file mode 100644
index 0000000..20a2a3a
--- /dev/null
+++ b/core/module/sitemap/lang/fr/lex_sitemap.php
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/core/module/sitemap/sitemap.php b/core/module/sitemap/sitemap.php
index d4a036a..b077fb5 100644
--- a/core/module/sitemap/sitemap.php
+++ b/core/module/sitemap/sitemap.php
@@ -29,16 +29,8 @@ class sitemap extends common
*/
public function index() {
// Lexique
- $text = [];
- $val = $this->getData(['config', 'i18n', 'langBase']);
- switch ($val) {
- case 'fr' :
- $text[0] = 'Plan du site';
- break;
- default :
- $text[0] = 'Site map';
- break;
- }
+ include('./core/module/sitemap/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_sitemap.php');
+
$items = '
'; foreach ($this->getHierarchy(null, true, null) as $parentId => $childIds) { $items .= '- ';
@@ -118,7 +110,7 @@ class sitemap extends common
// Valeurs en sortie
$this->addOutput([
- 'title' => $text[0],
+ 'title' => $text['core_sitemap']['index'][0],
'view' => 'index'
]);
}
diff --git a/core/module/theme/lang/en/lex_theme.php b/core/module/theme/lang/en/lex_theme.php
new file mode 100644
index 0000000..fc82c15
--- /dev/null
+++ b/core/module/theme/lang/en/lex_theme.php
@@ -0,0 +1,515 @@
+ The horizontal slider adjusts the level of transparency.';
+$text['core_theme_view']['admin'][7] = 'The colour visible in the absence of an image.
'buttonGrey',
'href' => helper::baseUrl() . 'theme/fonts',
'ico' => 'left',
- 'value' => $text[0]
+ 'value' => $text['core_theme_view']['addFonts'][0]
]); ?>
@@ -51,39 +17,39 @@ switch ($val) {
'href' => 'https://doc.deltacms.fr/polices',
'target' => '_blank',
'ico' => 'help',
- 'value' => $text[1],
+ 'value' => $text['core_theme_view']['addFonts'][1],
'class' => 'buttonHelp'
]); ?>
$text[2]
+ 'value' => $text['core_theme_view']['addFonts'][2]
]); ?>
-
+
'off',
- 'label' => $text[4],
- 'help' => $text[5]
+ 'label' => $text['core_theme_view']['addFonts'][4],
+ 'help' => $text['core_theme_view']['addFonts'][5]
]); ?>
$text[6],
+ 'label' => $text['core_theme_view']['addFonts'][6],
'selected' => 'file',
- 'help' => $text[7]
+ 'help' => $text['core_theme_view']['addFonts'][7]
]); ?>
$text[8],
- 'label' => $text[9]
+ 'help' => $text['core_theme_view']['addFonts'][8],
+ 'label' => $text['core_theme_view']['addFonts'][9]
]); ?>
@@ -92,13 +58,13 @@ switch ($val) {
'off',
- 'label' => $text[10],
- 'help' => $text[11]
+ 'label' => $text['core_theme_view']['addFonts'][10],
+ 'help' => $text['core_theme_view']['addFonts'][11]
]); ?>
The horizontal slider adjusts the level of transparency. The text colour is automatic.'; +$text['core_theme_view']['admin'][8] = 'Background'; +$text['core_theme_view']['admin'][9] = 'Title'; +$text['core_theme_view']['admin'][10] = 'Text'; +$text['core_theme_view']['admin'][11] = 'Field background'; +$text['core_theme_view']['admin'][12] = 'Field border'; +$text['core_theme_view']['admin'][13] = 'Help button'; +$text['core_theme_view']['admin'][14] = 'Back button'; +$text['core_theme_view']['admin'][15] = 'Standard button'; +$text['core_theme_view']['admin'][16] = 'Delete button'; +$text['core_theme_view']['admin'][17] = 'Validation button'; +$text['core_theme_view']['admin'][18] = 'Text formatting'; +$text['core_theme_view']['admin'][19] = 'Text font'; +$text['core_theme_view']['admin'][20] = 'Size'; +$text['core_theme_view']['admin'][21] = 'Title font'; +$text['core_theme_view']['admin'][22] = "Are you sure you want to reset the administration theme to its original state ?"; +$text['core_theme_view']['advanced'][0] = 'Back'; +$text['core_theme_view']['advanced'][1] = 'Help'; +$text['core_theme_view']['advanced'][2] = 'Reset'; +$text['core_theme_view']['advanced'][3] = 'Save'; +$text['core_theme_view']['advanced'][4] = "Are you sure you want to reset the advanced customization to its original state ?"; +$text['core_theme_view']['body'][0] = 'Back'; +$text['core_theme_view']['body'][1] = 'Help'; +$text['core_theme_view']['body'][2] = 'Save'; +$text['core_theme_view']['body'][3] = 'Colors'; +$text['core_theme_view']['body'][4] = 'Color visible in the absence of an image.
The horizontal slider adjusts the level of transparency.'; +$text['core_theme_view']['body'][5] = 'Background'; +$text['core_theme_view']['body'][6] = 'The horizontal slider sets the transparency level'; +$text['core_theme_view']['body'][7] = 'Top icon background'; +$text['core_theme_view']['body'][8] = 'Top icon'; +$text['core_theme_view']['body'][9] = 'Image'; +$text['core_theme_view']['body'][10] = 'Select an image'; +$text['core_theme_view']['body'][11] = 'Background'; +$text['core_theme_view']['body'][12] = 'Repeat'; +$text['core_theme_view']['body'][13] = 'Position'; +$text['core_theme_view']['body'][14] = 'Scroll'; +$text['core_theme_view']['body'][15] = 'Size'; +$text['core_theme_view']['editFonts'][0] = 'Back'; +$text['core_theme_view']['editFonts'][1] = 'Help'; +$text['core_theme_view']['editFonts'][2] = 'Save'; +$text['core_theme_view']['editFonts'][3] = 'Font settings'; +$text['core_theme_view']['editFonts'][4] = 'Selected font name'; +$text['core_theme_view']['editFonts'][5] = 'Value not editable'; +$text['core_theme_view']['editFonts'][6] = 'Link to a font file'; +$text['core_theme_view']['editFonts'][7] = 'The font file is sent, or not, from a local repository'; +$text['core_theme_view']['editFonts'][8] = 'You must first upload the font file, ttf, woff, otf, eot or woff2 to the fonts folder with the file manager'; +$text['core_theme_view']['editFonts'][9] = 'Select a font'; +$text['core_theme_view']['editFonts'][10] = 'License'; +$text['core_theme_view']['editFonts'][11] = 'License type of the font'; +$text['core_theme_view']['fonts'][0] = 'Back'; +$text['core_theme_view']['fonts'][1] = 'Help'; +$text['core_theme_view']['fonts'][2] = 'Police'; +$text['core_theme_view']['fonts'][3] = 'Username'; +$text['core_theme_view']['fonts'][4] = 'Name'; +$text['core_theme_view']['fonts'][5] = 'File'; +$text['core_theme_view']['fonts'][6] = 'Preview'; +$text['core_theme_view']['fonts'][7] = "Are you sure you want to delete this font ?"; +$text['core_theme_view']['footer'][0] = 'Back'; +$text['core_theme_view']['footer'][1] = 'Help'; +$text['core_theme_view']['footer'][2] = 'Save'; +$text['core_theme_view']['footer'][3] = 'Settings'; +$text['core_theme_view']['footer'][4] = 'Position'; +$text['core_theme_view']['footer'][5] = 'Vertical margins'; +$text['core_theme_view']['footer'][6] = 'Colours'; +$text['core_theme_view']['footer'][7] = 'Text'; +$text['core_theme_view']['footer'][8] = 'Background'; +$text['core_theme_view']['footer'][9] = 'When the footer is inside the site, the transparent background shows the page background. When the footer is outside the site, the transparent background shows the site background'; +$text['core_theme_view']['footer'][10] = 'Content'; +$text['core_theme_view']['footer'][11] = 'Powered by'; +$text['core_theme_view']['footer'][12] = 'Displays this in front of DeltaCMS'; +$text['core_theme_view']['footer'][13] = 'Version'; +$text['core_theme_view']['footer'][14] = 'Displays the version number after DeltaCMS'; +$text['core_theme_view']['footer'][15] = 'Site map'; +$text['core_theme_view']['footer'][16] = 'Cookies'; +$text['core_theme_view']['footer'][17] = 'Cookie information message, available if cookie acceptance is enabled'; +$text['core_theme_view']['footer'][18] = 'Login link'; +$text['core_theme_view']['footer'][19] = 'To limit hacking attempts, save the login page as a favourite and disable this option'; +$text['core_theme_view']['footer'][20] = 'Member bar'; +$text['core_theme_view']['footer'][21] = 'Displays account management and logout icons for simple logged-in members, does not apply to editors and administrators'; +$text['core_theme_view']['footer'][22] = 'Legal notice'; +$text['core_theme_view']['footer'][23] = 'Option active if a page has been selected'; +$text['core_theme_view']['footer'][24] = 'None'; +$text['core_theme_view']['footer'][25] = 'Legal page '; +$text['core_theme_view']['footer'][26] = 'Search'; +$text['core_theme_view']['footer'][27] = 'Option active if a page has been selected'; +$text['core_theme_view']['footer'][28] = 'Search page '; +$text['core_theme_view']['footer'][29] = 'Options same as site configuration'; +$text['core_theme_view']['footer'][30] = 'Text formatting'; +$text['core_theme_view']['footer'][31] = 'Font'; +$text['core_theme_view']['footer'][32] = 'Size'; +$text['core_theme_view']['footer'][33] = 'Proportional to that defined in the site'; +$text['core_theme_view']['footer'][34] = 'Style'; +$text['core_theme_view']['footer'][35] = 'Character case'; +$text['core_theme_view']['footer'][36] = 'Layout'; +$text['core_theme_view']['footer'][37] = 'Breakdown'; +$text['core_theme_view']['footer'][38] = 'Custom content'; +$text['core_theme_view']['footer'][39] = 'Position'; +$text['core_theme_view']['footer'][40] = 'Alignment'; +$text['core_theme_view']['footer'][41] = 'Social networks'; +$text['core_theme_view']['footer'][42] = 'Information'; +$text['core_theme_view']['footer'][43] = 'Alignment with content'; +$text['core_theme_view']['footer'][44] = 'Fixed footer'; +$text['core_theme_view']['footer'][45] = 'Customised content'; +$text['core_theme_view']['footer'][46] = "{ + 4: {'hide' : 'Hidden', 'left' : 'Top', 'center' : 'Middle', 'right' : 'Bottom'} , + 3: {'hide': 'Hidden', 'left': 'Left', 'center': 'Center', 'right': 'Right'} , + 2: {'hide': 'Hidden', 'left': 'Left', 'right': 'Right'} , + 1: {'hide': 'Hidden', 'center': 'Display'} + }"; +$text['core_theme_view']['header'][0] = 'Back'; +$text['core_theme_view']['header'][1] = 'Help'; +$text['core_theme_view']['header'][2] = 'Settings'; +$text['core_theme_view']['header'][3] = 'Position'; +$text['core_theme_view']['header'][4] = 'Type of content'; +$text['core_theme_view']['header'][5] = 'Maximum height'; +$text['core_theme_view']['header'][6] = 'The maximum height is 600 pixels, even if the selected image size is larger.
When the adaptation is set to Responsive, the height decreases in proportion to the width.'; +$text['core_theme_view']['header'][7] = 'Width'; +$text['core_theme_view']['header'][8] = 'Hide banner in small screen'; +$text['core_theme_view']['header'][9] = 'Align banner with content'; +$text['core_theme_view']['header'][10] = 'Colors'; +$text['core_theme_view']['header'][11] = 'Horizontal slider sets transparency level'; +$text['core_theme_view']['header'][12] = 'Background'; +$text['core_theme_view']['header'][13] = 'Horizontal slider sets transparency level'; +$text['core_theme_view']['header'][14] = 'Text'; +$text['core_theme_view']['header'][15] = 'Title formatting'; +$text['core_theme_view']['header'][16] = 'Hide site title'; +$text['core_theme_view']['header'][17] = 'Font'; +$text['core_theme_view']['header'][18] = 'Size'; +$text['core_theme_view']['header'][19] = 'Style'; +$text['core_theme_view']['header'][20] = 'Character case'; +$text['core_theme_view']['header'][21] = 'Proportional to that defined in the site'; +$text['core_theme_view']['header'][22] = 'Content alignment'; +$text['core_theme_view']['header'][23] = 'Wallpaper'; +$text['core_theme_view']['header'][24] = 'Select an image with the following recommended dimensions'; +$text['core_theme_view']['header'][25] = 'Image'; +$text['core_theme_view']['header'][26] = 'Repeat'; +$text['core_theme_view']['header'][27] = 'Adaptation'; +$text['core_theme_view']['header'][28] = 'Responsive modes allow proportional dimensions to be maintained.
Cover for an image larger than the banner, Contain for a smaller image. The Auto and Stretch modes do not change the height of the banner.'; +$text['core_theme_view']['header'][29] = 'Clickable banner'; +$text['core_theme_view']['header'][30] = 'Width : '; +$text['core_theme_view']['header'][31] = ' | Height : '; +$text['core_theme_view']['header'][32] = ' | ratio : '; +$text['core_theme_view']['header'][33] = 'Custom content'; +$text['core_theme_view']['header'][34] ='Save'; +$text['core_theme_view']['header'][35] = "Height of the selected image ("; +$text['core_theme_view']['index'][0] = 'Click on an area to access its customisation options. You can also display hidden areas using the button below'; +$text['core_theme_view']['index'][1] = 'Home'; +$text['core_theme_view']['index'][2] = 'Help'; +$text['core_theme_view']['index'][3] = 'Hidden areas'; +$text['core_theme_view']['index'][4] = 'Management'; +$text['core_theme_view']['index'][5] = 'Administration'; +$text['core_theme_view']['index'][6] = 'CSS Editor'; +$text['core_theme_view']['index'][7] = 'Fonts'; +$text['core_theme_view']['index'][8] = 'Click on a zone to access its customisation options'; +$text['core_theme_view']['manage'][0] = 'Back'; +$text['core_theme_view']['manage'][1] = 'Help'; +$text['core_theme_view']['manage'][2] = 'Reset'; +$text['core_theme_view']['manage'][3] = 'Apply'; +$text['core_theme_view']['manage'][4] = 'Install archived theme (site or admin)'; +$text['core_theme_view']['manage'][5] = 'ZIP archive:'; +$text['core_theme_view']['manage'][6] = 'Save theme in '; +$text['core_theme_view']['manage'][7] = 'files'; +$text['core_theme_view']['manage'][8] = ' of the site'; +$text['core_theme_view']['manage'][9] = 'Site theme'; +$text['core_theme_view']['manage'][10] = 'Administration theme'; +$text['core_theme_view']['manage'][11] = 'Download theme'; +$text['core_theme_view']['manage'][12] = 'Site theme'; +$text['core_theme_view']['manage'][13] = 'Administration theme'; +$text['core_theme_view']['manage'][14] = "Are you sure you want to reset the site theme to its original state ?"; +$text['core_theme_view']['menu'][0] = 'Back'; +$text['core_theme_view']['menu'][1] = 'Help'; +$text['core_theme_view']['menu'][2] = 'Save'; +$text['core_theme_view']['menu'][3] = 'Settings'; +$text['core_theme_view']['menu'][4] = 'Position'; +$text['core_theme_view']['menu'][5] = 'Width'; +$text['core_theme_view']['menu'][6] = 'Rounded edges'; +$text['core_theme_view']['menu'][7] = 'Around the selected page'; +$text['core_theme_view']['menu'][8] = 'Height'; +$text['core_theme_view']['menu'][9] = 'Alignment of content'; +$text['core_theme_view']['menu'][10] = 'Align menu with content'; +$text['core_theme_view']['menu'][11] = 'Fixed menu'; +$text['core_theme_view']['menu'][12] = 'Contents'; +$text['core_theme_view']['menu'][13] = 'Login link'; +$text['core_theme_view']['menu'][14] = 'Member bar'; +$text['core_theme_view']['menu'][15] = 'Account management and logout icons. Only for logged in members'; +$text['core_theme_view']['menu'][16] = 'Display in burger menu'; +$text['core_theme_view']['menu'][17] = 'The burger menu replaces the full menu when the screen width is not sufficient'; +$text['core_theme_view']['menu'][18] = 'Select an image, its dimensions will be adapted automatically'; +$text['core_theme_view']['menu'][19] = 'Logo of the burger menu'; +$text['core_theme_view']['menu'][20] = 'Colors'; +$text['core_theme_view']['menu'][21] = 'The horizontal slider sets the transparency level'; +$text['core_theme_view']['menu'][22] = 'Text'; +$text['core_theme_view']['menu'][23] = 'Horizontal slider sets transparency level'; +$text['core_theme_view']['menu'][24] = 'Background'; +$text['core_theme_view']['menu'][25] = 'Submenu background'; +$text['core_theme_view']['menu'][26] = 'Text active page'; +$text['core_theme_view']['menu'][27] = 'The background colour of the active page can be set automatically or according to a defined colour, such as the background colour of the pages.'; +$text['core_theme_view']['menu'][28] = 'Background colour of the page selected in the menu.
The horizontal slider sets the transparency level.'; +$text['core_theme_view']['menu'][29] = 'Active page background'; +$text['core_theme_view']['menu'][30] = 'Text formatting'; +$text['core_theme_view']['menu'][31] = 'Font'; +$text['core_theme_view']['menu'][32] = 'Size'; +$text['core_theme_view']['menu'][33] = 'Proportional to that defined in the site'; +$text['core_theme_view']['menu'][34] = 'Style'; +$text['core_theme_view']['menu'][35] = 'Character case'; +$text['core_theme_view']['menu'][36] = 'Automatic background color'; +$text['core_theme_view']['site'][0] = 'Back'; +$text['core_theme_view']['site'][1] = 'Help'; +$text['core_theme_view']['site'][2] = 'Save'; +$text['core_theme_view']['site'][3] = 'Settings'; +$text['core_theme_view']['site'][4] = 'Site width'; +$text['core_theme_view']['site'][5] = 'Rounding of corners'; +$text['core_theme_view']['site'][6] = 'Shadow on site edges'; +$text['core_theme_view']['site'][7] = 'No margin above and below site'; +$text['core_theme_view']['site'][8] = 'Colors'; +$text['core_theme_view']['site'][9] = 'Horizontal slider sets transparency level'; +$text['core_theme_view']['site'][10] = 'Background'; +$text['core_theme_view']['site'][11] = 'Text'; +$text['core_theme_view']['site'][12] = 'Title'; +$text['core_theme_view']['site'][13] = 'Links'; +$text['core_theme_view']['site'][14] = 'Color visible in the absence of an image'; +$text['core_theme_view']['site'][15] = 'Background of blocks'; +$text['core_theme_view']['site'][16] = 'Block border'; +$text['core_theme_view']['site'][17] = 'Block corner rounding'; +$text['core_theme_view']['site'][18] = 'Shadow on block edges'; +$text['core_theme_view']['site'][19] = 'Block title background'; +$text['core_theme_view']['site'][20] = 'Buttons'; +$text['core_theme_view']['site'][21] = 'Title'; +$text['core_theme_view']['site'][22] = 'Subtitle'; +$text['core_theme_view']['site'][23] = 'Button'; +$text['core_theme_view']['site'][24] = 'Block'; +$text['core_theme_view']['site'][25] = 'Text formatting'; +$text['core_theme_view']['site'][26] = 'Font'; +$text['core_theme_view']['site'][27] = 'Style'; +$text['core_theme_view']['site'][28] = 'Character case'; +$text['core_theme_view']['site'][29] = 'Size'; +$text['core_theme_view']['site'][30] = 'Reference size for the site. The font sizes of the banner, menu and footer are proportional to this size'; +$text['core_theme_view']['site'][31] = 'Title formatting'; +$text['core_theme']['admin'][0] = 'Saved changes'; +$text['core_theme']['admin'][1] = 'Administration'; +$text['core_theme']['advanced'][0] = 'Saved changes'; +$text['core_theme']['advanced'][1] = 'CSS Editor'; +$text['core_theme']['fonts'][0] = 'Font management'; +$text['core_theme']['editFonts'][0] = 'Select file...'; +$text['core_theme']['editFonts'][1] = 'You need to select a file'; +$text['core_theme']['editFonts'][2] = 'Changes saved'; +$text['core_theme']['editFonts'][3] = 'No file in folder'; +$text['core_theme']['editFonts'][4] = 'File'; +$text['core_theme']['editFonts'][5] = 'Non-existent'; +$text['core_theme']['editFonts'][6] = 'Editing a font'; +$text['core_theme']['deleteFonts'][0] = 'Deleted font'; +$text['core_theme']['addFonts'][0] = 'Select file...'; +$text['core_theme']['addFonts'][1] = 'You need to select a file'; +$text['core_theme']['addFonts'][2] = 'Changes saved'; +$text['core_theme']['addFonts'][3] = 'No file in folder'; +$text['core_theme']['addFonts'][4] = 'File'; +$text['core_theme']['addFonts'][5] = 'Non-existent'; +$text['core_theme']['addFonts'][6] = 'Adding a font'; +$text['core_theme']['body'][0] = 'Changes saved'; +$text['core_theme']['body'][1] = 'Customise background'; +$text['core_theme']['footer'][0] = 'Select at least one content to display'; +$text['core_theme']['footer'][1] = 'Saved changes'; +$text['core_theme']['footer'][2] = 'Customise footer'; +$text['core_theme']['header'][0] = 'Changes saved'; +$text['core_theme']['header'][1] = 'Customise banner'; +$text['core_theme']['index'][0] = 'Theme customisation'; +$text['core_theme']['menu'][0] = 'Saved changes'; +$text['core_theme']['menu'][1] = 'Customise menu'; +$text['core_theme']['reset'][0] = 'Reset performed'; +$text['core_theme']['reset'][1] = 'Incorrect token'; +$text['core_theme']['site'][0] = 'Changes saved'; +$text['core_theme']['site'][1] = 'Site customisation'; +$text['core_theme']['manage'][0] = 'Theme management'; +$text['core_theme']['import'][0] = 'The theme has been imported'; +$text['core_theme']['import'][1] = 'Error while extracting, check permissions'; +$text['core_theme']['import'][2] = 'This is not a theme archive!'; +$text['core_theme']['import'][3] = 'Unable to open the archive'; +$text['core_theme']['import'][4] = 'Archive not specified or not found'; +$text['core_theme']['save'][0] = 'Archive '; +$text['core_theme']['save'][1] = ' successfully saved'; + + +// $text[ +// Passage de la langue d'administration à Tinymce +$lang_admin = 'en_GB'; + +// Selects +$aligns = [ + 'left' => 'Left', + 'center' => 'Center', + 'right' => 'Right' +]; +$attachments = [ + 'scroll' => 'Standard', + 'fixed' => 'Fixed' +]; +$containerWides = [ + 'container' => 'Limited to the site', + 'none' => 'Extended to the page' +]; +$footerblocks = [ + 1 => [ + 'hide' => 'Hidden', + 'center' => 'Affiché' ], + 2 => [ + 'hide' => 'Hidden', + 'left' => 'Left', + 'right' => 'Right' ], + 3 => [ + 'hide' => 'Hidden', + 'left' => 'Left', + 'center' => 'Center', + 'right' => 'Right' ], + 4 => [ + 'hide' => 'Hidden', + 'left' => 'Top', + 'center' => 'Middle', + 'right' => 'Bottom' ] +]; +$fontWeights = [ + 'normal' => 'Thin', + 'bold' => 'Bold' +]; +$footerHeights = [ + '0px' => 'Nome (0px)', + '5px' => 'Very small (5px)', + '10px' => 'small (10px)', + '15px' => 'Medium (15px)', + '20px' => 'Large (20px)' +]; +$footerPositions = [ + 'hide' => 'Hidden', + 'site' => 'In the site', + 'body' => 'Below the site' +]; +$footerFontSizes = [ + '.8em' => 'Very small (80%)', + '.9em' => 'Small (90%)', + '1em' => 'Standard (100%)', + '1.1em' => 'Medium (110%)', + '1.2em' => 'Large (120%)', + '1.3em' => 'Very large (130%)' +]; +$headerFontSizes = [ + '1.6em' => 'Very small (160%)', + '1.8em' => 'Small (180%)', + '2em' => 'Medium (200%)', + '2.2em' => 'Large (220%)', + '2.4vmax' => 'Very large (240%)' +]; +$headerHeights = [ + 'unset' => 'Free', // texte dynamique cf header.js.php + '100px' => 'Very small (100px) ', + '150px' => 'Small (150px)', + '200px' => 'Medium (200px)', + '300px' => 'Large (300px)', + '400px' => 'Very large (400px)', +]; +$headerPositions = [ + 'body' => 'Above the site', + 'site' => 'In the site', + 'hide' => 'Hidden' +]; +$headerFeatures = [ + 'wallpaper' => 'Solid colour or wallpaper', + 'feature' => 'Custom content' +]; +$imagePositions = [ + 'top left' => 'Top left', + 'top center' => 'Top center', + 'top right' => 'Top right', + 'center left' => 'Middle left', + 'center center' => 'Middle center', + 'center right' => 'Middle right', + 'bottom left' => 'Bottom left', + 'bottom center' => 'Bottom center', + 'bottom right' => 'Bottom right' +]; +$menuFontSizes = [ + '.8em' => 'Very small (80%)', + '.9em' => 'Small (90%)', + '1em' => 'Standard (100%)', + '1.1em' => 'Medium (110%)', + '1.2em' => 'Large (120%)', + '1.3em' => 'Very large (130%)' +]; +$menuBurgerFontSizes = [ + '1em' => 'Very small (100%)', + '1.2em' => 'Small (120%)', + '1.5em' => 'Standard (150%)', + '1.8em' => 'Medium (180%)', + '2em' => 'Large (200%)', + '2.5em' => 'Very large (250%)' +]; +$menuHeights = [ + '5px 10px' => 'Very small', + '10px' => 'Small', + '15px 10px' => 'Medium', + '20px 15px' => 'Large', + '25px 15px' => 'Very large' +]; +$menuPositionsSite = [ + 'top' => 'Outside the site', + 'site-first' => 'Before the banner', + 'site-second' => 'After the banner', + 'hide' => 'Hidden' +]; +$menuPositionsBody = [ + 'top' => 'Outside the site', + 'body-first' => 'Before the banner', + 'body-second' => 'After the banner', + 'site' => 'In the site', + 'hide' => 'Hidden' +]; +$menuRadius = [ + '0px' => 'None', + '3px 3px 0px 0px' => 'Very light', + '6px 6px 0px 0px' => 'Light', + '9px 9px 0px 0px' => 'Medium', + '12px 12px 0px 0px' => 'Important', + '15px 15px 0px 0px' => 'Very important' +]; +$radius = [ + '0px' => 'None', + '5px' => 'Very light', + '10px' => 'Light', + '15px' => 'Medium', + '25px' => 'Important', + '50px' => 'Very important' +]; +$repeats = [ + 'no-repeat' => 'Do not repeat', + 'repeat-x' => 'On the horizontal axis', + 'repeat-y' => 'On the vertical axis', + 'repeat' => 'On both axes' +]; +$shadows = [ + '0px 0px 0px' => 'None', + '1px 1px 5px' => 'Very light', + '1px 1px 10px' => 'Light', + '1px 1px 15px' => 'Medium', + '1px 1px 25px' => 'Importante', + '1px 1px 50px' => 'Very importante' +]; +$blockShadows = [ + '0px 0px 0px' => 'None', + '1px 1px 2px' => 'Very light', + '2px 2px 4px' => 'Light', + '3px 3px 6px' => 'Medium', + '5px 5px 10px' => 'Important', + '10px 10px 20px' => 'Very important' +]; +$bodySizes = [ + 'auto' => 'Automatic', + '100% 100%' => 'Stretched image (100% 100%)', + 'cover' => 'Responsive (cover)', + 'contain' => 'Responsive (contain)' +]; +$textTransforms = [ + 'none' => 'Standard', + 'lowercase' => 'Lowercase', + 'uppercase' => 'Upper case', + 'capitalize' => 'Capitalize every word' +]; +$siteWidths = [ + '750px' => 'Small (750 pixels)', + '960px' => 'Medium (960 pixels)', + '1170px' => 'Large (1170 pixels)', + '100%' => 'Fluide (100%)' +]; +$headerWide = [ + 'auto auto' => 'Automatic', + '100% 100%' => 'Stretched image (100% 100%)', + 'cover' => 'Responsive (cover)', + 'contain' => 'Responsive (contain)' +]; +$footerTemplate = [ + '1' => 'One column', + '2' => 'Two columns : 1/2 - 1/2', + '3' => 'Three columns : 1/3 - 1/3 - 1/3', + '4' => 'Three rows on top of each' +]; +$burgerContent = [ + 'none' => 'None', + 'title' => 'Site title', + 'logo' => 'Site logo' +]; +$typeAddFont = [ + 'none' => 'None', + 'file' => 'Local file' + //'link' => 'Fichier externe avec link', + //'import' => 'Fichier externe avec import' +]; +?> \ No newline at end of file diff --git a/core/module/theme/lang/fr/lex_theme.php b/core/module/theme/lang/fr/lex_theme.php new file mode 100644 index 0000000..745d8af --- /dev/null +++ b/core/module/theme/lang/fr/lex_theme.php @@ -0,0 +1,514 @@ +Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['admin'][7] = 'Couleur visible en l\'absence d\'une image.
Le curseur horizontal règle le niveau de transparence. La couleur du texte est automatique.'; +$text['core_theme_view']['admin'][8] = 'Arrière-plan'; +$text['core_theme_view']['admin'][9] = 'Titres'; +$text['core_theme_view']['admin'][10] = 'Texte'; +$text['core_theme_view']['admin'][11] = 'Arrière-plan des champs'; +$text['core_theme_view']['admin'][12] = 'Bordure des champs'; +$text['core_theme_view']['admin'][13] = 'Bouton Aide'; +$text['core_theme_view']['admin'][14] = 'Bouton retour'; +$text['core_theme_view']['admin'][15] = 'Bouton standard'; +$text['core_theme_view']['admin'][16] = 'Bouton effacement'; +$text['core_theme_view']['admin'][17] = 'Bouton validation'; +$text['core_theme_view']['admin'][18] = 'Mise en forme du texte'; +$text['core_theme_view']['admin'][19] = 'Police du texte'; +$text['core_theme_view']['admin'][20] = 'Taille'; +$text['core_theme_view']['admin'][21] = 'Police des titres'; +$text['core_theme_view']['admin'][22] = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine le thème de l\'administration ?"; +$text['core_theme_view']['advanced'][0] = 'Retour'; +$text['core_theme_view']['advanced'][1] = 'Aide'; +$text['core_theme_view']['advanced'][2] = 'Réinitialiser'; +$text['core_theme_view']['advanced'][3] = 'Enregistrer'; +$text['core_theme_view']['advanced'][4] = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine la personnalisation avancée ?"; +$text['core_theme_view']['body'][0] = 'Retour'; +$text['core_theme_view']['body'][1] = 'Aide'; +$text['core_theme_view']['body'][2] = 'Enregistrer'; +$text['core_theme_view']['body'][3] = 'Couleurs'; +$text['core_theme_view']['body'][4] = 'Couleur visible en l\'absence d\'une image.
Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['body'][5] = 'Arrière-plan'; +$text['core_theme_view']['body'][6] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['body'][7] = 'Fond icône haut de page'; +$text['core_theme_view']['body'][8] = 'Icône haut de page'; +$text['core_theme_view']['body'][9] = 'Image'; +$text['core_theme_view']['body'][10] = 'Sélectionner une image'; +$text['core_theme_view']['body'][11] = 'Arrière-plan'; +$text['core_theme_view']['body'][12] = 'Répétition'; +$text['core_theme_view']['body'][13] = 'Position'; +$text['core_theme_view']['body'][14] = 'Défilement'; +$text['core_theme_view']['body'][15] = 'Taille'; +$text['core_theme_view']['editFonts'][0] = 'Retour'; +$text['core_theme_view']['editFonts'][1] = 'Aide'; +$text['core_theme_view']['editFonts'][2] = 'Enregistrer'; +$text['core_theme_view']['editFonts'][3] = 'Paramètres de la police'; +$text['core_theme_view']['editFonts'][4] = 'Nom de la police sélectionnée'; +$text['core_theme_view']['editFonts'][5] = 'Valeur non modifiable'; +$text['core_theme_view']['editFonts'][6] = 'Liaison avec un fichier de police'; +$text['core_theme_view']['editFonts'][7] = 'Le fichier de police est envoyé, ou pas, depuis un dépôt local'; +$text['core_theme_view']['editFonts'][8] = 'Vous devez au préalable téléverser le fichier de police, ttf, woff, otf, eot ou woff2 dans le dossier fonts avec le gestionnaire de fichiers.'; +$text['core_theme_view']['editFonts'][9] = 'Sélection d\'une police'; +$text['core_theme_view']['editFonts'][10] = 'License'; +$text['core_theme_view']['editFonts'][11] = 'Type de license de la police'; +$text['core_theme_view']['fonts'][0] = 'Retour'; +$text['core_theme_view']['fonts'][1] = 'Aide'; +$text['core_theme_view']['fonts'][2] = 'Police'; +$text['core_theme_view']['fonts'][3] = 'Identifiant'; +$text['core_theme_view']['fonts'][4] = 'Nom'; +$text['core_theme_view']['fonts'][5] = 'Fichier'; +$text['core_theme_view']['fonts'][6] = 'Aperçu'; +$text['core_theme_view']['fonts'][7] = "Êtes-vous sûr de vouloir supprimer cette police ?"; +$text['core_theme_view']['footer'][0] = 'Retour'; +$text['core_theme_view']['footer'][1] = 'Aide'; +$text['core_theme_view']['footer'][2] = 'Enregistrer'; +$text['core_theme_view']['footer'][3] = 'Paramètres'; +$text['core_theme_view']['footer'][4] = 'Position'; +$text['core_theme_view']['footer'][5] = 'Marges verticales'; +$text['core_theme_view']['footer'][6] = 'Couleurs'; +$text['core_theme_view']['footer'][7] = 'Texte'; +$text['core_theme_view']['footer'][8] = 'Arrière-plan'; +$text['core_theme_view']['footer'][9] = 'Quand le pied de page est dans le site, l\'arrière plan transparent montre le fond de la page. Quand le pied de page est hors du site, l\'arrière plan transparent montre le fond du site.'; +$text['core_theme_view']['footer'][10] = 'Contenu'; +$text['core_theme_view']['footer'][11] = 'Motorisé par'; +$text['core_theme_view']['footer'][12] = 'Affiche cette mention devant DeltaCMS'; +$text['core_theme_view']['footer'][13] = 'Version'; +$text['core_theme_view']['footer'][14] = 'Affiche le numéro de version après DeltaCMS'; +$text['core_theme_view']['footer'][15] = 'Plan du site'; +$text['core_theme_view']['footer'][16] = 'Cookies'; +$text['core_theme_view']['footer'][17] = 'Message d\'information relatif aux cookies, disponible si l\'acceptation des cookies est activé.'; +$text['core_theme_view']['footer'][18] = 'Lien de connexion'; +$text['core_theme_view']['footer'][19] = 'Pour limiter les tentatives de piratage, enregistrez la page de connexion en favori et désactivez cette option.'; +$text['core_theme_view']['footer'][20] = 'Barre du membre'; +$text['core_theme_view']['footer'][21] = 'Affiche les icônes de gestion du compte et de déconnexion des membres simples connectés, ne s\'applique pas aux éditeurs et administrateurs.'; +$text['core_theme_view']['footer'][22] = 'Mentions légales'; +$text['core_theme_view']['footer'][23] = 'Option active si une page a été sélectionnée.'; +$text['core_theme_view']['footer'][24] = 'Aucune'; +$text['core_theme_view']['footer'][25] = 'Page "Mentions légales" '; +$text['core_theme_view']['footer'][26] = 'Rechercher'; +$text['core_theme_view']['footer'][27] = 'Option active si une page a été sélectionnée.'; +$text['core_theme_view']['footer'][28] = 'Page "Rechercher" '; +$text['core_theme_view']['footer'][29] = 'Options identique à la configuration du site'; +$text['core_theme_view']['footer'][30] = 'Mise en forme du texte'; +$text['core_theme_view']['footer'][31] = 'Police'; +$text['core_theme_view']['footer'][32] = 'Taille'; +$text['core_theme_view']['footer'][33] = 'Proportionnelle à celle définie dans le site.'; +$text['core_theme_view']['footer'][34] = 'Style'; +$text['core_theme_view']['footer'][35] = 'Casse'; +$text['core_theme_view']['footer'][36] = 'Dispositions'; +$text['core_theme_view']['footer'][37] = 'Répartition'; +$text['core_theme_view']['footer'][38] = 'Contenu personnalisé'; +$text['core_theme_view']['footer'][39] = 'Position'; +$text['core_theme_view']['footer'][40] = 'Alignement'; +$text['core_theme_view']['footer'][41] = 'Réseaux sociaux'; +$text['core_theme_view']['footer'][42] = 'Informations'; +$text['core_theme_view']['footer'][43] = 'Alignement avec le contenu'; +$text['core_theme_view']['footer'][44] = 'Pied de page fixe'; +$text['core_theme_view']['footer'][45] = 'Contenu personnalisé'; +$text['core_theme_view']['footer'][46] = "{ + 4: {'hide' : 'Masqué', 'left' : 'En haut', 'center' : 'Au milieu', 'right' : 'En bas'} , + 3: {'hide': 'Masqué', 'left': 'A gauche', 'center': 'Au centre', 'right': 'A droite'} , + 2: {'hide': 'Masqué', 'left': 'A gauche', 'right': 'A droite'} , + 1: {'hide': 'Masqué', 'center': 'Affiché'} + }"; +$text['core_theme_view']['header'][0] = 'Retour'; +$text['core_theme_view']['header'][1] = 'Aide'; +$text['core_theme_view']['header'][2] = 'Paramètres'; +$text['core_theme_view']['header'][3] = 'Position'; +$text['core_theme_view']['header'][4] = 'Nature de contenu'; +$text['core_theme_view']['header'][5] = 'Hauteur maximale'; +$text['core_theme_view']['header'][6] = 'La hauteur maximale est de 600 pixels, même si les dimensions de l\'image sélectionnée sont supérieures.
Lorsque l\'adaptation est positionnée sur Responsive, la hauteur diminue proportionnellement à la largeur.'; +$text['core_theme_view']['header'][7] = 'Largeur'; +$text['core_theme_view']['header'][8] = 'Masquer la bannière en écran réduit'; +$text['core_theme_view']['header'][9] = 'Aligner la bannière avec le contenu'; +$text['core_theme_view']['header'][10] = 'Couleurs'; +$text['core_theme_view']['header'][11] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['header'][12] = 'Arrière-plan'; +$text['core_theme_view']['header'][13] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['header'][14] = 'Texte'; +$text['core_theme_view']['header'][15] = 'Mise en forme du titre'; +$text['core_theme_view']['header'][16] = 'Masquer le titre du site'; +$text['core_theme_view']['header'][17] = 'Police'; +$text['core_theme_view']['header'][18] = 'Taille'; +$text['core_theme_view']['header'][19] = 'Style'; +$text['core_theme_view']['header'][20] = 'Casse'; +$text['core_theme_view']['header'][21] = 'Proportionnelle à celle définie dans le site.'; +$text['core_theme_view']['header'][22] = 'Alignement du contenu'; +$text['core_theme_view']['header'][23] = 'Papier peint'; +$text['core_theme_view']['header'][24] = 'Sélectionner une image aux dimensions recommandées ci-dessous'; +$text['core_theme_view']['header'][25] = 'Image'; +$text['core_theme_view']['header'][26] = 'Répétition'; +$text['core_theme_view']['header'][27] = 'Adaptation'; +$text['core_theme_view']['header'][28] = 'Les modes responsives permettent de conserver des dimensions proportionnelles.
Cover pour une image plus grande que la bannière, Contain pour une image plus petite. Les modes Auto et Etiré ne provoquent pas de modification de la hauteur de la bannière.'; +$text['core_theme_view']['header'][29] = 'Bannière cliquable'; +$text['core_theme_view']['header'][30] = 'Largeur : '; +$text['core_theme_view']['header'][31] = ' | Hauteur : '; +$text['core_theme_view']['header'][32] = ' | ratio : '; +$text['core_theme_view']['header'][33] = 'Contenu personnalisé'; +$text['core_theme_view']['header'][34] ='Enregistrer'; +$text['core_theme_view']['header'][35] = "Hauteur de l\'image sélectionnée ("; +$text['core_theme_view']['index'][0] = 'Cliquez sur une zone afin d\'accéder à ses options de personnalisation. Vous pouvez également afficher les zones cachées à l\'aide du bouton ci-dessous.'; +$text['core_theme_view']['index'][1] = 'Accueil'; +$text['core_theme_view']['index'][2] = 'Aide'; +$text['core_theme_view']['index'][3] = 'Zones cachées'; +$text['core_theme_view']['index'][4] = 'Gestion'; +$text['core_theme_view']['index'][5] = 'Administration'; +$text['core_theme_view']['index'][6] = 'Éditeur CSS'; +$text['core_theme_view']['index'][7] = 'Polices'; +$text['core_theme_view']['index'][8] = 'Cliquez sur une zone afin d\'accéder à ses options de personnalisation.'; +$text['core_theme_view']['manage'][0] = 'Retour'; +$text['core_theme_view']['manage'][1] = 'Aide'; +$text['core_theme_view']['manage'][2] = 'Réinitialiser'; +$text['core_theme_view']['manage'][3] = 'Appliquer'; +$text['core_theme_view']['manage'][4] = 'Installer un thème archivé (site ou administration)'; +$text['core_theme_view']['manage'][5] = 'Archive ZIP :'; +$text['core_theme_view']['manage'][6] = 'Sauvegarde du thème dans les '; +$text['core_theme_view']['manage'][7] = 'fichiers'; +$text['core_theme_view']['manage'][8] = ' du site'; +$text['core_theme_view']['manage'][9] = 'Thème du site'; +$text['core_theme_view']['manage'][10] = 'Thème de l\'administration'; +$text['core_theme_view']['manage'][11] = 'Télécharger le thème'; +$text['core_theme_view']['manage'][12] = 'Thème du site'; +$text['core_theme_view']['manage'][13] = 'Thème de l\'administration'; +$text['core_theme_view']['manage'][14] = "Êtes-vous sûr de vouloir réinitialiser à son état d\'origine le thème du site ?"; +$text['core_theme_view']['menu'][0] = 'Retour'; +$text['core_theme_view']['menu'][1] = 'Aide'; +$text['core_theme_view']['menu'][2] = 'Enregistrer'; +$text['core_theme_view']['menu'][3] = 'Paramètres'; +$text['core_theme_view']['menu'][4] = 'Position'; +$text['core_theme_view']['menu'][5] = 'Largeur'; +$text['core_theme_view']['menu'][6] = 'Bords arrondis'; +$text['core_theme_view']['menu'][7] = 'Autour de la page sélectionnée'; +$text['core_theme_view']['menu'][8] = 'Hauteur'; +$text['core_theme_view']['menu'][9] = 'Alignement du contenu'; +$text['core_theme_view']['menu'][10] = 'Aligner le menu avec le contenu'; +$text['core_theme_view']['menu'][11] = 'Menu fixe'; +$text['core_theme_view']['menu'][12] = 'Contenus'; +$text['core_theme_view']['menu'][13] = 'Lien de connexion'; +$text['core_theme_view']['menu'][14] = 'Barre de membre'; +$text['core_theme_view']['menu'][15] = 'Icônes de gestion de compte et de déconnexion. Uniquement pour les membres connectés'; +$text['core_theme_view']['menu'][16] = 'Affichage dans le menu burger'; +$text['core_theme_view']['menu'][17] = 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.'; +$text['core_theme_view']['menu'][18] = 'Sélectionner une image, ses dimensions seront adaptées automatiquement'; +$text['core_theme_view']['menu'][19] = 'Logo du menu burger'; +$text['core_theme_view']['menu'][20] = 'Couleurs'; +$text['core_theme_view']['menu'][21] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['menu'][22] = 'Texte'; +$text['core_theme_view']['menu'][23] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['menu'][24] = 'Arrière-plan'; +$text['core_theme_view']['menu'][25] = 'Fond du sous-menu'; +$text['core_theme_view']['menu'][26] = 'Texte page active'; +$text['core_theme_view']['menu'][27] = 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.'; +$text['core_theme_view']['menu'][28] = 'Couleur de fond de la page sélectionnée dans le menu.
Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['menu'][29] = 'Fond page active'; +$text['core_theme_view']['menu'][30] = 'Mise en forme du texte'; +$text['core_theme_view']['menu'][31] = 'Police'; +$text['core_theme_view']['menu'][32] = 'Taille'; +$text['core_theme_view']['menu'][33] = 'Proportionnelle à celle définie dans le site'; +$text['core_theme_view']['menu'][34] = 'Style'; +$text['core_theme_view']['menu'][35] = 'Casse'; +$text['core_theme_view']['menu'][36] = 'Couleur de fond automatique'; +$text['core_theme_view']['site'][0] = 'Retour'; +$text['core_theme_view']['site'][1] = 'Aide'; +$text['core_theme_view']['site'][2] = 'Enregistrer'; +$text['core_theme_view']['site'][3] = 'Paramètres'; +$text['core_theme_view']['site'][4] = 'Largeur du site'; +$text['core_theme_view']['site'][5] = 'Arrondi des angles'; +$text['core_theme_view']['site'][6] = 'Ombre sur les bords du site'; +$text['core_theme_view']['site'][7] = 'Pas de marge au-dessus et en-dessous du site'; +$text['core_theme_view']['site'][8] = 'Couleurs'; +$text['core_theme_view']['site'][9] = 'Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['site'][10] = 'Arrière-plan'; +$text['core_theme_view']['site'][11] = 'Texte'; +$text['core_theme_view']['site'][12] = 'Titres'; +$text['core_theme_view']['site'][13] = 'Liens'; +$text['core_theme_view']['site'][14] = 'Couleur visible en l\'absence d\'une image.
Le curseur horizontal règle le niveau de transparence.'; +$text['core_theme_view']['site'][15] = 'Arrière-plan des blocs'; +$text['core_theme_view']['site'][16] = 'Bordure des blocs'; +$text['core_theme_view']['site'][17] = 'Arrondi des angles du bloc'; +$text['core_theme_view']['site'][18] = 'Ombre sur les bords du bloc'; +$text['core_theme_view']['site'][19] = 'Arrière-plan du titre des blocs'; +$text['core_theme_view']['site'][20] = 'Boutons'; +$text['core_theme_view']['site'][21] = 'Titre'; +$text['core_theme_view']['site'][22] = 'Sous-titre'; +$text['core_theme_view']['site'][23] = 'Bouton'; +$text['core_theme_view']['site'][24] = 'Bloc'; +$text['core_theme_view']['site'][25] = 'Mise en forme du texte'; +$text['core_theme_view']['site'][26] = 'Police'; +$text['core_theme_view']['site'][27] = 'Style'; +$text['core_theme_view']['site'][28] = 'Casse'; +$text['core_theme_view']['site'][29] = 'Taille'; +$text['core_theme_view']['site'][30] = 'Taille de référence pour le site. Les tailles des polices de la bannière, de menu et de pied de page sont proportionnelles à cette taille.'; +$text['core_theme_view']['site'][31] = 'Mise en forme des titres'; +$text['core_theme']['admin'][0] = 'Modifications enregistrées'; +$text['core_theme']['admin'][1] = 'Administration'; +$text['core_theme']['advanced'][0] = 'Modifications enregistrées'; +$text['core_theme']['advanced'][1] = 'Éditeur CSS'; +$text['core_theme']['fonts'][0] = 'Gestion des polices'; +$text['core_theme']['editFonts'][0] = 'Sélectionner le fichier...'; +$text['core_theme']['editFonts'][1] = 'Vous devez sélectionner un fichier'; +$text['core_theme']['editFonts'][2] = 'Modifications enregistrées'; +$text['core_theme']['editFonts'][3] = 'Pas de fichier dans le dossier '; +$text['core_theme']['editFonts'][4] = 'Dossier '; +$text['core_theme']['editFonts'][5] = 'inexistant'; +$text['core_theme']['editFonts'][6] = 'Édition d\'une police'; +$text['core_theme']['deleteFonts'][0] = 'Police supprimée'; +$text['core_theme']['addFonts'][0] = 'Sélectionner le fichier...'; +$text['core_theme']['addFonts'][1] = 'Vous devez sélectionner un fichier'; +$text['core_theme']['addFonts'][2] = 'Modifications enregistrées'; +$text['core_theme']['addFonts'][3] = 'Pas de fichier dans le dossier '; +$text['core_theme']['addFonts'][4] = 'Dossier '; +$text['core_theme']['addFonts'][5] = 'inexistant'; +$text['core_theme']['addFonts'][6] = 'Ajout d\'une police'; +$text['core_theme']['body'][0] = 'Modifications enregistrées'; +$text['core_theme']['body'][1] = 'Personnalisation de l\'arrière plan'; +$text['core_theme']['footer'][0] = 'Sélectionnez au moins un contenu à afficher'; +$text['core_theme']['footer'][1] = 'Modifications enregistrées'; +$text['core_theme']['footer'][2] = 'Personnalisation du pied de page'; +$text['core_theme']['header'][0] = 'Modifications enregistrées'; +$text['core_theme']['header'][1] = 'Personnalisation de la bannière'; +$text['core_theme']['index'][0] = 'Personnalisation des thèmes'; +$text['core_theme']['menu'][0] = 'Modifications enregistrées'; +$text['core_theme']['menu'][1] = 'Personnalisation du menu'; +$text['core_theme']['reset'][0] = 'Réinitialisation effectuée'; +$text['core_theme']['reset'][1] = 'Jeton incorrect'; +$text['core_theme']['site'][0] = 'Modifications enregistrées'; +$text['core_theme']['site'][1] = 'Personnalisation du site'; +$text['core_theme']['manage'][0] = 'Gestion des thèmes'; +$text['core_theme']['import'][0] = 'Le thème a été importé'; +$text['core_theme']['import'][1] = 'Erreur lors de l\'extraction, vérifiez les permissions.'; +$text['core_theme']['import'][2] = 'Ce n\'est pas l\'archive d\'un thème !'; +$text['core_theme']['import'][3] = 'Impossible d\'ouvrir l\'archive'; +$text['core_theme']['import'][4] = 'Archive non spécifiée ou introuvable'; +$text['core_theme']['save'][0] = 'Archive '; +$text['core_theme']['save'][1] = ' sauvegardée avec succès'; + + +// $text[ +// Passage de la langue d'administration à Tinymce +$lang_admin = 'fr_FR'; +// Selects +$aligns = [ + 'left' => 'À gauche', + 'center' => 'Au centre', + 'right' => 'À droite' +]; +$attachments = [ + 'scroll' => 'Standard', + 'fixed' => 'Fixe' +]; +$containerWides = [ + 'container' => 'Limitée au site', + 'none' => 'Etendue sur la page' +]; +$footerblocks = [ + 1 => [ + 'hide' => 'Masqué', + 'center' => 'Affiché' ], + 2 => [ + 'hide' => 'Masqué', + 'left' => 'À gauche', + 'right' => 'À droite' ], + 3 => [ + 'hide' => 'Masqué', + 'left' => 'À gauche', + 'center' => 'Au centre', + 'right' => 'À droite' ], + 4 => [ + 'hide' => 'Masqué', + 'left' => 'En haut', + 'center' => 'Au milieu', + 'right' => 'En bas' ] +]; +$fontWeights = [ + 'normal' => 'Maigre', + 'bold' => 'Gras' +]; +$footerHeights = [ + '0px' => 'Nulles (0px)', + '5px' => 'Très petites (5px)', + '10px' => 'Petites (10px)', + '15px' => 'Moyennes (15px)', + '20px' => 'Grandes (20px)' +]; +$footerPositions = [ + 'hide' => 'Caché', + 'site' => 'Dans le site', + 'body' => 'En dessous du site' +]; +$footerFontSizes = [ + '.8em' => 'Très petite (80%)', + '.9em' => 'Petite (90%)', + '1em' => 'Standard (100%)', + '1.1em' => 'Moyenne (110%)', + '1.2em' => 'Grande (120%)', + '1.3em' => 'Très grande (130%)' +]; +$headerFontSizes = [ + '1.6em' => 'Très petite (160%)', + '1.8em' => 'Petite (180%)', + '2em' => 'Moyenne (200%)', + '2.2em' => 'Grande (220%)', + '2.4vmax' => 'Très grande (240%)' +]; +$headerHeights = [ + 'unset' => 'Libre', // texte dynamique cf header.js.php + '100px' => 'Très petite (100px) ', + '150px' => 'Petite (150px)', + '200px' => 'Moyenne (200px)', + '300px' => 'Grande (300px)', + '400px' => 'Très grande (400px)', +]; +$headerPositions = [ + 'body' => 'Au dessus du site', + 'site' => 'Dans le site', + 'hide' => 'Cachée' +]; +$headerFeatures = [ + 'wallpaper' => 'Couleur unie ou papier-peint', + 'feature' => 'Contenu personnalisé' +]; +$imagePositions = [ + 'top left' => 'En haut à gauche', + 'top center' => 'En haut au centre', + 'top right' => 'En haut à droite', + 'center left' => 'Au milieu à gauche', + 'center center' => 'Au milieu au centre', + 'center right' => 'Au milieu à droite', + 'bottom left' => 'En bas à gauche', + 'bottom center' => 'En bas au centre', + 'bottom right' => 'En bas à droite' +]; +$menuFontSizes = [ + '.8em' => 'Très petite (80%)', + '.9em' => 'Petite (90%)', + '1em' => 'Standard (100%)', + '1.1em' => 'Moyenne (110%)', + '1.2em' => 'Grande (120%)', + '1.3em' => 'Très grande (130%)' +]; +$menuBurgerFontSizes = [ + '1em' => 'Très petite (100%)', + '1.2em' => 'Petite (120%)', + '1.5em' => 'Standard (150%)', + '1.8em' => 'Moyenne (180%)', + '2em' => 'Grande (200%)', + '2.5em' => 'Très grande (250%)' +]; +$menuHeights = [ + '5px 10px' => 'Très petite', + '10px' => 'Petite', + '15px 10px' => 'Moyenne', + '20px 15px' => 'Grande', + '25px 15px' => 'Très grande' +]; +$menuPositionsSite = [ + 'top' => 'En-dehors du site', + 'site-first' => 'Avant la bannière', + 'site-second' => 'Après la bannière', + 'hide' => 'Caché' +]; +$menuPositionsBody = [ + 'top' => 'En-dehors du site', + 'body-first' => 'Avant la bannière', + 'body-second' => 'Après la bannière', + 'site' => 'Dans le site', + 'hide' => 'Caché' +]; +$menuRadius = [ + '0px' => 'Aucun', + '3px 3px 0px 0px' => 'Très léger', + '6px 6px 0px 0px' => 'Léger', + '9px 9px 0px 0px' => 'Moyen', + '12px 12px 0px 0px' => 'Important', + '15px 15px 0px 0px' => 'Très important' +]; +$radius = [ + '0px' => 'Aucun', + '5px' => 'Très léger', + '10px' => 'Léger', + '15px' => 'Moyen', + '25px' => 'Important', + '50px' => 'Très important' +]; +$repeats = [ + 'no-repeat' => 'Ne pas répéter', + 'repeat-x' => 'Sur l\'axe horizontal', + 'repeat-y' => 'Sur l\'axe vertical', + 'repeat' => 'Sur les deux axes' +]; +$shadows = [ + '0px 0px 0px' => 'Aucune', + '1px 1px 5px' => 'Très légère', + '1px 1px 10px' => 'Légère', + '1px 1px 15px' => 'Moyenne', + '1px 1px 25px' => 'Importante', + '1px 1px 50px' => 'Très importante' +]; +$blockShadows = [ + '0px 0px 0px' => 'Aucune', + '1px 1px 2px' => 'Très légère', + '2px 2px 4px' => 'Légère', + '3px 3px 6px' => 'Moyenne', + '5px 5px 10px' => 'Important', + '10px 10px 20px' => 'Très important' +]; +$bodySizes = [ + 'auto' => 'Automatique', + '100% 100%' => 'Image étirée (100% 100%)', + 'cover' => 'Responsive (cover)', + 'contain' => 'Responsive (contain)' +]; +$textTransforms = [ + 'none' => 'Standard', + 'lowercase' => 'Minuscules', + 'uppercase' => 'Majuscules', + 'capitalize' => 'Majuscule à chaque mot' +]; +$siteWidths = [ + '750px' => 'Petite (750 pixels)', + '960px' => 'Moyenne (960 pixels)', + '1170px' => 'Grande (1170 pixels)', + '100%' => 'Fluide (100%)' +]; +$headerWide = [ + 'auto auto' => 'Automatique', + '100% 100%' => 'Image étirée (100% 100%)', + 'cover' => 'Responsive (cover)', + 'contain' => 'Responsive (contain)' +]; +$footerTemplate = [ + '1' => 'Une seule colonne', + '2' => 'Deux colonnes : 1/2 - 1/2', + '3' => 'Trois colonnes : 1/3 - 1/3 - 1/3', + '4' => 'Trois lignes superposées' +]; +$burgerContent = [ + 'none' => 'Aucun', + 'title' => 'Titre du site', + 'logo' => 'Logo du site' +]; +$typeAddFont = [ + 'none' => 'Aucune', + 'file' => 'Fichier local' + //'link' => 'Fichier externe avec link', + //'import' => 'Fichier externe avec import' +]; +?> \ No newline at end of file diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 119b336..c07f1cb 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -37,337 +37,7 @@ class theme extends common { 'import' => self::GROUP_ADMIN, 'save' => self::GROUP_ADMIN ]; - public static $aligns = [ - 'left' => 'À gauche', - 'center' => 'Au centre', - 'right' => 'À droite' - ]; - public static $aligns_en = [ - 'left' => 'Left', - 'center' => 'Center', - 'right' => 'Right' - ]; - public static $attachments = [ - 'scroll' => 'Standard', - 'fixed' => 'Fixe' - ]; - public static $attachments_en = [ - 'scroll' => 'Standard', - 'fixed' => 'Fixed' - ]; - public static $containerWides = [ - 'container' => 'Limitée au site', - 'none' => 'Etendue sur la page' - ]; - public static $containerWides_en = [ - 'container' => 'Limited to the site', - 'none' => 'Extended to the page' - ]; - public static $footerblocks = [ - 1 => [ - 'hide' => 'Masqué', - 'center' => 'Affiché' ], - 2 => [ - 'hide' => 'Masqué', - 'left' => 'À gauche', - 'right' => 'À droite' ], - 3 => [ - 'hide' => 'Masqué', - 'left' => 'À gauche', - 'center' => 'Au centre', - 'right' => 'À droite' ], - 4 => [ - 'hide' => 'Masqué', - 'left' => 'En haut', - 'center' => 'Au milieu', - 'right' => 'En bas' ] - ]; - public static $footerblocks_en = [ - 1 => [ - 'hide' => 'Hidden', - 'center' => 'Affiché' ], - 2 => [ - 'hide' => 'Hidden', - 'left' => 'Left', - 'right' => 'Right' ], - 3 => [ - 'hide' => 'Hidden', - 'left' => 'Left', - 'center' => 'Center', - 'right' => 'Right' ], - 4 => [ - 'hide' => 'Hidden', - 'left' => 'Top', - 'center' => 'Middle', - 'right' => 'Bottom' ] - ]; - public static $fontWeights = [ - 'normal' => 'Maigre', - 'bold' => 'Gras' - ]; - public static $fontWeights_en = [ - 'normal' => 'Thin', - 'bold' => 'Bold' - ]; - public static $footerHeights = [ - '0px' => 'Nulles (0px)', - '5px' => 'Très petites (5px)', - '10px' => 'Petites (10px)', - '15px' => 'Moyennes (15px)', - '20px' => 'Grandes (20px)' - ]; - public static $footerHeights_en = [ - '0px' => 'Nome (0px)', - '5px' => 'Very small (5px)', - '10px' => 'small (10px)', - '15px' => 'Medium (15px)', - '20px' => 'Large (20px)' - ]; - public static $footerPositions = [ - 'hide' => 'Caché', - 'site' => 'Dans le site', - 'body' => 'En dessous du site' - ]; - public static $footerPositions_en = [ - 'hide' => 'Hidden', - 'site' => 'In the site', - 'body' => 'Below the site' - ]; - public static $footerFontSizes = [ - '.8em' => 'Très petite (80%)', - '.9em' => 'Petite (90%)', - '1em' => 'Standard (100%)', - '1.1em' => 'Moyenne (110%)', - '1.2em' => 'Grande (120%)', - '1.3em' => 'Très grande (130%)' - ]; - public static $footerFontSizes_en = [ - '.8em' => 'Very small (80%)', - '.9em' => 'Small (90%)', - '1em' => 'Standard (100%)', - '1.1em' => 'Medium (110%)', - '1.2em' => 'Large (120%)', - '1.3em' => 'Very large (130%)' - ]; - public static $headerFontSizes = [ - '1.6em' => 'Très petite (160%)', - '1.8em' => 'Petite (180%)', - '2em' => 'Moyenne (200%)', - '2.2em' => 'Grande (220%)', - '2.4vmax' => 'Très grande (240%)' - ]; - public static $headerFontSizes_en = [ - '1.6em' => 'Very small (160%)', - '1.8em' => 'Small (180%)', - '2em' => 'Medium (200%)', - '2.2em' => 'Large (220%)', - '2.4vmax' => 'Very large (240%)' - ]; - public static $headerHeights = [ - 'unset' => 'Libre', // texte dynamique cf header.js.php - '100px' => 'Très petite (100px) ', - '150px' => 'Petite (150px)', - '200px' => 'Moyenne (200px)', - '300px' => 'Grande (300px)', - '400px' => 'Très grande (400px)', - ]; - public static $headerHeights_en = [ - 'unset' => 'Free', // texte dynamique cf header.js.php - '100px' => 'Very small (100px) ', - '150px' => 'Small (150px)', - '200px' => 'Medium (200px)', - '300px' => 'Large (300px)', - '400px' => 'Very large (400px)', - ]; - public static $headerPositions = [ - 'body' => 'Au dessus du site', - 'site' => 'Dans le site', - 'hide' => 'Cachée' - ]; - public static $headerPositions_en = [ - 'body' => 'Above the site', - 'site' => 'In the site', - 'hide' => 'Hidden' - ]; - public static $headerFeatures = [ - 'wallpaper' => 'Couleur unie ou papier-peint', - 'feature' => 'Contenu personnalisé' - ]; - public static $headerFeatures_en = [ - 'wallpaper' => 'Solid colour or wallpaper', - 'feature' => 'Custom content' - ]; - public static $imagePositions = [ - 'top left' => 'En haut à gauche', - 'top center' => 'En haut au centre', - 'top right' => 'En haut à droite', - 'center left' => 'Au milieu à gauche', - 'center center' => 'Au milieu au centre', - 'center right' => 'Au milieu à droite', - 'bottom left' => 'En bas à gauche', - 'bottom center' => 'En bas au centre', - 'bottom right' => 'En bas à droite' - ]; - public static $imagePositions_en = [ - 'top left' => 'Top left', - 'top center' => 'Top center', - 'top right' => 'Top right', - 'center left' => 'Middle left', - 'center center' => 'Middle center', - 'center right' => 'Middle right', - 'bottom left' => 'Bottom left', - 'bottom center' => 'Bottom center', - 'bottom right' => 'Bottom right' - ]; - public static $menuFontSizes = [ - '.8em' => 'Très petite (80%)', - '.9em' => 'Petite (90%)', - '1em' => 'Standard (100%)', - '1.1em' => 'Moyenne (110%)', - '1.2em' => 'Grande (120%)', - '1.3em' => 'Très grande (130%)' - ]; - public static $menuFontSizes_en = [ - '.8em' => 'Very small (80%)', - '.9em' => 'Small (90%)', - '1em' => 'Standard (100%)', - '1.1em' => 'Medium (110%)', - '1.2em' => 'Large (120%)', - '1.3em' => 'Very large (130%)' - ]; - public static $menuBurgerFontSizes = [ - '1em' => 'Très petite (100%)', - '1.2em' => 'Petite (120%)', - '1.5em' => 'Standard (150%)', - '1.8em' => 'Moyenne (180%)', - '2em' => 'Grande (200%)', - '2.5em' => 'Très grande (250%)' - ]; - public static $menuBurgerFontSizes_en = [ - '1em' => 'Very small (100%)', - '1.2em' => 'Small (120%)', - '1.5em' => 'Standard (150%)', - '1.8em' => 'Medium (180%)', - '2em' => 'Large (200%)', - '2.5em' => 'Very large (250%)' - ]; - public static $menuHeights = [ - '5px 10px' => 'Très petite', - '10px' => 'Petite', - '15px 10px' => 'Moyenne', - '20px 15px' => 'Grande', - '25px 15px' => 'Très grande' - ]; - public static $menuHeights_en = [ - '5px 10px' => 'Very small', - '10px' => 'Small', - '15px 10px' => 'Medium', - '20px 15px' => 'Large', - '25px 15px' => 'Very large' - ]; - public static $menuPositionsSite = [ - 'top' => 'En-dehors du site', - 'site-first' => 'Avant la bannière', - 'site-second' => 'Après la bannière', - 'hide' => 'Caché' - ]; - public static $menuPositionsSite_en = [ - 'top' => 'Outside the site', - 'site-first' => 'Before the banner', - 'site-second' => 'After the banner', - 'hide' => 'Hidden' - ]; - public static $menuPositionsBody = [ - 'top' => 'En-dehors du site', - 'body-first' => 'Avant la bannière', - 'body-second' => 'Après la bannière', - 'site' => 'Dans le site', - 'hide' => 'Caché' - ]; - public static $menuPositionsBody_en = [ - 'top' => 'Outside the site', - 'body-first' => 'Before the banner', - 'body-second' => 'After the banner', - 'site' => 'In the site', - 'hide' => 'Hidden' - ]; - public static $menuRadius = [ - '0px' => 'Aucun', - '3px 3px 0px 0px' => 'Très léger', - '6px 6px 0px 0px' => 'Léger', - '9px 9px 0px 0px' => 'Moyen', - '12px 12px 0px 0px' => 'Important', - '15px 15px 0px 0px' => 'Très important' - ]; - public static $menuRadius_en = [ - '0px' => 'None', - '3px 3px 0px 0px' => 'Very light', - '6px 6px 0px 0px' => 'Light', - '9px 9px 0px 0px' => 'Medium', - '12px 12px 0px 0px' => 'Important', - '15px 15px 0px 0px' => 'Very important' - ]; - public static $radius = [ - '0px' => 'Aucun', - '5px' => 'Très léger', - '10px' => 'Léger', - '15px' => 'Moyen', - '25px' => 'Important', - '50px' => 'Très important' - ]; - public static $radius_en = [ - '0px' => 'None', - '5px' => 'Very light', - '10px' => 'Light', - '15px' => 'Medium', - '25px' => 'Important', - '50px' => 'Very important' - ]; - public static $repeats = [ - 'no-repeat' => 'Ne pas répéter', - 'repeat-x' => 'Sur l\'axe horizontal', - 'repeat-y' => 'Sur l\'axe vertical', - 'repeat' => 'Sur les deux axes' - ]; - public static $repeats_en = [ - 'no-repeat' => 'Do not repeat', - 'repeat-x' => 'On the horizontal axis', - 'repeat-y' => 'On the vertical axis', - 'repeat' => 'On both axes' - ]; - public static $shadows = [ - '0px 0px 0px' => 'Aucune', - '1px 1px 5px' => 'Très légère', - '1px 1px 10px' => 'Légère', - '1px 1px 15px' => 'Moyenne', - '1px 1px 25px' => 'Importante', - '1px 1px 50px' => 'Très importante' - ]; - public static $shadows_en = [ - '0px 0px 0px' => 'None', - '1px 1px 5px' => 'Very light', - '1px 1px 10px' => 'Light', - '1px 1px 15px' => 'Medium', - '1px 1px 25px' => 'Importante', - '1px 1px 50px' => 'Very importante' - ]; - public static $blockShadows = [ - '0px 0px 0px' => 'Aucune', - '1px 1px 2px' => 'Très légère', - '2px 2px 4px' => 'Légère', - '3px 3px 6px' => 'Moyenne', - '5px 5px 10px' => 'Important', - '10px 10px 20px' => 'Très important' - ]; - public static $blockShadows_en = [ - '0px 0px 0px' => 'None', - '1px 1px 2px' => 'Very light', - '2px 2px 4px' => 'Light', - '3px 3px 6px' => 'Medium', - '5px 5px 10px' => 'Important', - '10px 10px 20px' => 'Very important' - ]; public static $siteFontSizes = [ '12px' => '12 pixels', '13px' => '13 pixels', @@ -377,93 +47,11 @@ class theme extends common { '18px' => '18 pixels', '20px' => '20 pixels' ]; - public static $bodySizes = [ - 'auto' => 'Automatique', - '100% 100%' => 'Image étirée (100% 100%)', - 'cover' => 'Responsive (cover)', - 'contain' => 'Responsive (contain)' - ]; - public static $bodySizes_en = [ - 'auto' => 'Automatic', - '100% 100%' => 'Stretched image (100% 100%)', - 'cover' => 'Responsive (cover)', - 'contain' => 'Responsive (contain)' - ]; - public static $textTransforms = [ - 'none' => 'Standard', - 'lowercase' => 'Minuscules', - 'uppercase' => 'Majuscules', - 'capitalize' => 'Majuscule à chaque mot' - ]; - public static $textTransforms_en = [ - 'none' => 'Standard', - 'lowercase' => 'Lowercase', - 'uppercase' => 'Upper case', - 'capitalize' => 'Capitalize every word' - ]; - public static $siteWidths = [ - '750px' => 'Petite (750 pixels)', - '960px' => 'Moyenne (960 pixels)', - '1170px' => 'Grande (1170 pixels)', - '100%' => 'Fluide (100%)' - ]; - public static $siteWidths_en = [ - '750px' => 'Small (750 pixels)', - '960px' => 'Medium (960 pixels)', - '1170px' => 'Large (1170 pixels)', - '100%' => 'Fluide (100%)' - ]; - public static $headerWide = [ - 'auto auto' => 'Automatique', - '100% 100%' => 'Image étirée (100% 100%)', - 'cover' => 'Responsive (cover)', - 'contain' => 'Responsive (contain)' - ]; - public static $headerWide_en = [ - 'auto auto' => 'Automatic', - '100% 100%' => 'Stretched image (100% 100%)', - 'cover' => 'Responsive (cover)', - 'contain' => 'Responsive (contain)' - ]; - public static $footerTemplate = [ - '1' => 'Une seule colonne', - '2' => 'Deux colonnes : 1/2 - 1/2', - '3' => 'Trois colonnes : 1/3 - 1/3 - 1/3', - '4' => 'Trois lignes superposées' - ]; - public static $footerTemplate_en = [ - '1' => 'One column', - '2' => 'Two columns : 1/2 - 1/2', - '3' => 'Three columns : 1/3 - 1/3 - 1/3', - '4' => 'Three rows on top of each' - ]; - public static $burgerContent = [ - 'none' => 'Aucun', - 'title' => 'Titre du site', - 'logo' => 'Logo du site' - ]; - public static $burgerContent_en = [ - 'none' => 'None', - 'title' => 'Site title', - 'logo' => 'Site logo' - ]; + // Fonts public static $fonts = []; - public static $fontFiles =[]; - - public static $typeAddFont = [ - 'none' => 'Aucune', - 'file' => 'Fichier local' - //'link' => 'Fichier externe avec link', - //'import' => 'Fichier externe avec import' - ]; - public static $typeAddFont_en = [ - 'none' => 'None', - 'file' => 'Local file' - //'link' => 'Fichier externe avec link', - //'import' => 'Fichier externe avec import' - ]; + // Variable pour construire la liste des pages du site public static $pagesList = []; @@ -472,18 +60,7 @@ class theme extends common { */ public function admin() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Administration'; - break; - case 'en' : - $text[0] = 'Saved changes'; - $text[1] = 'Administration'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { $this->setData(['admin', [ @@ -505,7 +82,7 @@ class theme extends common { ]]); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['admin'][0], 'redirect' => helper::baseUrl() . 'theme/admin', 'state' => true ]); @@ -513,7 +90,7 @@ class theme extends common { self::$fonts = $this->extract('./site/data/fonts.json'); // Valeurs en sortie $this->addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['admin'][1], 'view' => 'admin', 'vendor' => [ 'tinycolorpicker' @@ -526,32 +103,21 @@ class theme extends common { */ public function advanced() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Éditeur CSS'; - break; - case 'en' : - $text[0] = 'Saved changes'; - $text[1] = 'CSS Editor'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { // Enregistre le CSS file_put_contents(self::DATA_DIR.'custom.css', $this->getInput('themeAdvancedCss', null)); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['advanced'][0], 'redirect' => helper::baseUrl() . 'theme/advanced', 'state' => true ]); } // Valeurs en sortie $this->addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['advanced'][1], 'vendor' => [ 'codemirror' ], @@ -564,16 +130,7 @@ class theme extends common { */ public function fonts() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Gestion des polices'; - break; - case 'en' : - $text[0] = 'Font management'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Préparation du tableau d'affichage des polices $fontsName = helper::arrayCollumn($this->getData(['fonts']), 'name'); ksort($fontsName); @@ -599,7 +156,7 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'title' => $text[0], + 'title' => $text['core_theme']['fonts'][0], 'view' => 'fonts' ]); } @@ -609,34 +166,13 @@ class theme extends common { */ public function editfonts() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Sélectionner le fichier...'; - $text[1] = 'Vous devez sélectionner un fichier'; - $text[2] = 'Modifications enregistrées'; - $text[3] = 'Pas de fichier dans le dossier '; - $text[4] = 'Dossier '; - $text[5] = 'inexistant'; - $text[6] = 'Édition d\'une police'; - break; - case 'en' : - $text[0] = 'Select file...'; - $text[1] = 'You need to select a file'; - $text[2] = 'Changes saved'; - $text[3] = 'No file in folder'; - $text[4] = 'File'; - $text[5] = 'Non-existent'; - $text[6] = 'Editing a font'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Retour du formulaire if($this->isPost()) { - if( $this->getInput('typeEditFont') === 'file' && $this->getInput('fileEditFont') === $text[0]){ + if( $this->getInput('typeEditFont') === 'file' && $this->getInput('fileEditFont') === $text['core_theme']['editFonts'][0]){ // Valeurs en sortie $this->addOutput([ - 'notification' => $text[1], + 'notification' => $text['core_theme']['editFonts'][1], 'redirect' => helper::baseUrl() . 'theme/fonts', 'state' => false ]); @@ -655,7 +191,7 @@ class theme extends common { $this-> setData(['admin', 'maj', true]); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[2], + 'notification' => $text['core_theme']['editFonts'][2], 'redirect' => helper::baseUrl() . 'theme/fonts', 'state' => true ]); @@ -666,10 +202,10 @@ class theme extends common { if(is_dir(self::FILE_DIR.'source/fonts')) { $dir=self::FILE_DIR.'source/fonts'; $values = scandir($dir); - $values[0] = $text[0]; + $values[0] = $text['core_theme']['editFonts'][0]; unset($values[array_search('..', $values)]); if (count($values) <= 1){ - self::$icsFiles = array(0 => $text[3].self::FILE_DIR.'source/fonts'); + self::$icsFiles = array(0 => $text['core_theme']['editFonts'][3].self::FILE_DIR.'source/fonts'); } else{ //Modifier les clefs (qui sont les valeurs de retour du formulaire avec clef = valeur @@ -677,12 +213,12 @@ class theme extends common { } } else { - self::$fontFiles = array(0 => $text[4].self::FILE_DIR.'source/fonts '.$text[5]); + self::$fontFiles = array(0 => $text['core_theme']['editFonts'][4].self::FILE_DIR.'source/fonts '.$text['core_theme']['editFonts'][5]); } // Valeurs en sortie $this->addOutput([ - 'title' => $text[6], + 'title' => $text['core_theme']['editFonts'][6], 'view' => 'editFonts' ]); } @@ -692,23 +228,14 @@ class theme extends common { */ public function deleteFonts() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Police supprimée'; - break; - case 'en' : - $text[0] = 'Deleted font'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); //Suppression de la police passée en paramètre $this->deleteData(['fonts', $this->getUrl(2)]); // Force une maj de admin.css $this-> setData(['admin', 'maj', true]); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['deleteFonts'][0], 'redirect' => helper::baseUrl() . 'theme/fonts', 'state' => true ]); @@ -719,34 +246,13 @@ class theme extends common { */ public function addFonts() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Sélectionner le fichier...'; - $text[1] = 'Vous devez sélectionner un fichier'; - $text[2] = 'Modifications enregistrées'; - $text[3] = 'Pas de fichier dans le dossier '; - $text[4] = 'Dossier '; - $text[5] = 'inexistant'; - $text[6] = 'Ajout d\'une police'; - break; - case 'en' : - $text[0] = 'Select file...'; - $text[1] = 'You need to select a file'; - $text[2] = 'Changes saved'; - $text[3] = 'No file in folder'; - $text[4] = 'File'; - $text[5] = 'Non-existent'; - $text[6] = 'Adding a font'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Retour du formulaire if($this->isPost()) { - if( $this->getInput('typeAddFont') === 'file' && $this->getInput('fileAddFont') === $text[0]){ + if( $this->getInput('typeAddFont') === 'file' && $this->getInput('fileAddFont') === $text['core_theme']['addFonts'][0]){ // Valeurs en sortie $this->addOutput([ - 'notification' => $text[1], + 'notification' => $text['core_theme']['addFonts'][1], 'redirect' => helper::baseUrl() . 'theme/addFonts', 'state' => false ]); @@ -765,7 +271,7 @@ class theme extends common { $this-> setData(['admin', 'maj', true]); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[2], + 'notification' => $text['core_theme']['addFonts'][2], 'redirect' => helper::baseUrl() . 'theme/fonts', 'state' => true ]); @@ -775,10 +281,10 @@ class theme extends common { if(is_dir(self::FILE_DIR.'source/fonts')) { $dir=self::FILE_DIR.'source/fonts'; $values = scandir($dir); - $values[0] = $text[0]; + $values[0] = $text['core_theme']['addFonts'][0]; unset($values[array_search('..', $values)]); if (count($values) <= 1){ - self::$icsFiles = array(0 => $text[3].self::FILE_DIR.'source/fonts'); + self::$icsFiles = array(0 => $text['core_theme']['addFonts'][3].self::FILE_DIR.'source/fonts'); } else{ //Modifier les clefs (qui sont les valeurs de retour du formulaire avec clef = valeur @@ -786,12 +292,12 @@ class theme extends common { } } else { - self::$fontFiles = array(0 => $text[4].self::FILE_DIR.'source/fonts '.$text[5]); + self::$fontFiles = array(0 => $text['core_theme']['addFonts'][4].self::FILE_DIR.'source/fonts '.$text['core_theme']['addFonts'][5]); } // Valeurs en sortie $this->addOutput([ - 'title' => $text[6], + 'title' => $text['core_theme']['addFonts'][6], 'view' => 'addFonts' ]); } @@ -802,18 +308,7 @@ class theme extends common { */ public function body() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Personnalisation de l\'arrière plan'; - break; - case 'en' : - $text[0] = 'Changes saved'; - $text[1] = 'Customise background'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { $this->setData(['theme', 'body', [ @@ -828,14 +323,14 @@ class theme extends common { ]]); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['body'][0], 'redirect' => helper::baseUrl() . 'theme', 'state' => true ]); } // Valeurs en sortie $this->addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['body'][1], 'vendor' => [ 'tinycolorpicker' ], @@ -848,20 +343,7 @@ class theme extends common { */ public function footer() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Sélectionnez au moins un contenu à afficher'; - $text[1] = 'Modifications enregistrées'; - $text[2] = 'Personnalisation du pied de page'; - break; - case 'en' : - $text[0] = 'Select at least one content to display'; - $text[1] = 'Saved changes'; - $text[2] = 'Customise footer'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { if ( $this->getInput('themeFooterCopyrightPosition') === 'hide' && @@ -869,7 +351,7 @@ class theme extends common { $this->getInput('themeFooterTextPosition') === 'hide' ) { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['footer'][0], 'redirect' => helper::baseUrl() . 'theme/footer', 'state' => false ]); @@ -909,7 +391,7 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[1], + 'notification' => $text['core_theme']['footer'][1], 'redirect' => helper::baseUrl() . 'theme', 'state' => true ]); @@ -925,20 +407,11 @@ class theme extends common { } } self::$fonts = $this->extract('./site/data/fonts.json'); - // Passage de la langue d'administration à Tinymce - $lang_admin = 'fr_FR'; - if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en') $lang_admin = 'en_GB'; - ?> - - addOutput([ - 'title' => $text[2], + 'title' => $text['core_theme']['footer'][2], 'vendor' => [ - 'tinycolorpicker', - 'tinymce' + 'tinycolorpicker' ], 'view' => 'footer' ]); @@ -949,18 +422,7 @@ class theme extends common { */ public function header() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Personnalisation de la bannière'; - break; - case 'en' : - $text[0] = 'Changes saved'; - $text[1] = 'Customise banner'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { // Modification des URL des images dans la bannière perso @@ -1007,26 +469,17 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['header'][0], 'redirect' => helper::baseUrl() . 'theme', 'state' => true ]); } self::$fonts = $this->extract('./site/data/fonts.json'); - // Passage de la langue d'administration à Tinymce - $lang_admin = 'fr_FR'; - if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en') $lang_admin = 'en_GB'; - ?> - - addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['header'][1], 'vendor' => [ - 'tinycolorpicker', - 'tinymce' + 'tinycolorpicker' ], 'view' => 'header' ]); @@ -1037,19 +490,10 @@ class theme extends common { */ public function index() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Personnalisation des thèmes'; - break; - case 'en' : - $text[0] = 'Theme customisation'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Valeurs en sortie $this->addOutput([ - 'title' => $text[0], + 'title' => $text['core_theme']['index'][0], 'view' => 'index' ]); } @@ -1059,18 +503,7 @@ class theme extends common { */ public function menu() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Personnalisation du menu'; - break; - case 'en' : - $text[0] = 'Saved changes'; - $text[1] = 'Customise menu'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { $this->setData(['theme', 'menu', [ @@ -1102,7 +535,7 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['menu'][0], 'redirect' => helper::baseUrl() . 'theme', 'state' => true ]); @@ -1110,7 +543,7 @@ class theme extends common { self::$fonts = $this->extract('./site/data/fonts.json'); // Valeurs en sortie $this->addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['menu'][1], 'vendor' => [ 'tinycolorpicker' ], @@ -1123,18 +556,7 @@ class theme extends common { */ public function reset() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Réinitialisation effectuée'; - $text[1] = 'Jeton incorrect'; - break; - case 'en' : - $text[0] = 'Reset performed'; - $text[1] = 'Incorrect token'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // $url prend l'adresse sans le token $url = explode('&',$this->getUrl(2)); @@ -1162,14 +584,14 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['reset'][0], 'redirect' => $redirect, 'state' => true ]); } else { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[1] + 'notification' => $text['core_theme']['reset'][1] ]); } } @@ -1180,18 +602,7 @@ class theme extends common { */ public function site() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Modifications enregistrées'; - $text[1] = 'Personnalisation du site'; - break; - case 'en' : - $text[0] = 'Changes saved'; - $text[1] = 'Site customisation'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Soumission du formulaire if($this->isPost()) { $this->setData(['theme', 'title', [ @@ -1226,26 +637,17 @@ class theme extends common { // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0], + 'notification' => $text['core_theme']['site'][0], 'redirect' => helper::baseUrl() . 'theme', 'state' => true ]); } self::$fonts = $this->extract('./site/data/fonts.json'); - // Passage de la langue d'administration à Tinymce - $lang_admin = 'fr_FR'; - if( $this->getData(['config', 'i18n', 'langAdmin']) ==='en') $lang_admin = 'en_GB'; - ?> - - addOutput([ - 'title' => $text[1], + 'title' => $text['core_theme']['site'][1], 'vendor' => [ - 'tinycolorpicker', - 'tinymce' + 'tinycolorpicker' ], 'view' => 'site' ]); @@ -1256,16 +658,8 @@ class theme extends common { */ public function manage() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Gestion des thèmes'; - break; - case 'en' : - $text[0] = 'Theme management'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); + if($this->isPost() ) { $zipFilename = $this->getInput('themeManageImport', helper::FILTER_STRING_SHORT, true); @@ -1281,14 +675,14 @@ class theme extends common { $this->addOutput([ 'notification' => $data['notification'], 'state' => $data['success'], - 'title' => $text[0], + 'title' => $text['core_theme']['manage'][0], 'view' => 'manage' ]);; } } // Valeurs en sortie $this->addOutput([ - 'title' => $text[0], + 'title' => $text['core_theme']['manage'][0], 'view' => 'manage' ]); } @@ -1301,24 +695,7 @@ class theme extends common { public function import($zipName = '') { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Le thème a été importé'; - $text[1] = 'Erreur lors de l\'extraction, vérifiez les permissions.'; - $text[2] = 'Ce n\'est pas l\'archive d\'un thème !'; - $text[3] = 'Impossible d\'ouvrir l\'archive'; - $text[4] = 'Archive non spécifiée ou introuvable'; - break; - case 'en' : - $text[0] = 'The theme has been imported'; - $text[1] = 'Error while extracting, check permissions'; - $text[2] = 'This is not a theme archive!'; - $text[3] = 'Unable to open the archive'; - $text[4] = 'Archive not specified or not found'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); if ($zipName !== '' && file_exists($zipName)) { @@ -1361,13 +738,13 @@ class theme extends common { $this->copyDir( $importFolder, './'); $this->removeDir($importFolder); // traitement de l'erreur - $notification = $success ? $text[0] : $text[1]; + $notification = $success ? $text['core_theme']['import'][0] : $text['core_theme']['import'][1]; } else { // pas une archive de thème $success = false; - $notification = $text[2]; + $notification = $text['core_theme']['import'][2]; } // Supprimer le dossier temporaire même si le thème est invalide $this->removeDir(self::TEMP_DIR . $tempFolder); @@ -1375,12 +752,12 @@ class theme extends common { } else { // erreur à l'ouverture $success = false; - $notification = $text[3]; + $notification = $text['core_theme']['import'][3]; } return (['success' => $success, 'notification' => $notification]); } - return (['success' => false, 'notification' => $text[4]]); + return (['success' => false, 'notification' => $text['core_theme']['import'][4]]); } @@ -1408,18 +785,7 @@ class theme extends common { */ public function save() { // Lexique - $text = []; - $val = $this->getData(['config', 'i18n', 'langAdmin']); - switch ($val) { - case 'fr' : - $text[0] = 'Archive '; - $text[1] = ' sauvegardée avec succès'; - break; - case 'en' : - $text[0] = 'Archive '; - $text[1] = ' successfully saved'; - break; - } + include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Make zip $zipFilename = $this->zipTheme($this->getUrl(2)); // Téléchargement du ZIP @@ -1431,7 +797,7 @@ class theme extends common { unlink (self::TEMP_DIR . $zipFilename); // Valeurs en sortie $this->addOutput([ - 'notification' => $text[0].''.$zipFilename.''. $text[1], + 'notification' => $text['core_theme']['save'][0].''.$zipFilename.''. $text['core_theme']['save'][1], 'redirect' => helper::baseUrl() . 'theme/manage', 'state' => true ]); diff --git a/core/module/theme/view/addFonts/addFonts.js.php b/core/module/theme/view/addFonts/addFonts.js.php index 76b4b04..0112011 100644 --- a/core/module/theme/view/addFonts/addFonts.js.php +++ b/core/module/theme/view/addFonts/addFonts.js.php @@ -19,14 +19,7 @@ */ $(".fontDelete").on("click", function() { var _this = $(this); - var text=""; - getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){ - echo 'text = "Êtes-vous sûr de vouloir supprimer cette police ?";' ; - } - else{ - echo 'text = "Are you sure you want to delete this font ?";' ; - } ?> - return core.confirm(text, function() { + return core.confirm(textConfirm, function() { $(location).attr("href", _this.attr("href")); }); }); \ No newline at end of file diff --git a/core/module/theme/view/addFonts/addFonts.php b/core/module/theme/view/addFonts/addFonts.php index 5e431d6..bf7f22e 100644 --- a/core/module/theme/view/addFonts/addFonts.php +++ b/core/module/theme/view/addFonts/addFonts.php @@ -1,49 +1,15 @@ getData(['config', 'i18n', 'langAdmin']); -switch ($val) { - case 'fr' : - $text[0] = 'Retour'; - $text[1] = 'Aide'; - $text[2] = 'Enregistrer'; - $text[3] = 'Paramètres de la nouvelle police'; - $text[4] = 'Nom'; - $text[5] = 'Nom de la police, majuscules et espaces autorisés'; - $text[6] = 'Liaison avec un fichier de police'; - $text[7] = 'Le fichier de police est envoyé, ou pas, depuis un dépôt local'; - $text[8] = 'Vous devez au préalable téléverser le fichier de police, ttf, woff, otf, eot ou woff2 dans le dossier fonts avec le gestionnaire de fichiers.'; - $text[9] = 'Sélection d\'une police'; - $text[10] = 'License'; - $text[11] = 'Type de license de la police'; - $typeAddFont = $module::$typeAddFont; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[2] = 'Save'; - $text[3] = 'New font settings'; - $text[4] = 'Name'; - $text[5] = 'Font name, upper case and spaces allowed'; - $text[6] = 'Link to a font file'; - $text[7] = 'The font file is sent, or not, from a local repository'; - $text[8] = 'You must first upload the font file, ttf, woff, otf, eot or woff2 to the fonts folder with the file manager'; - $text[9] = 'Select a font'; - $text[10] = 'License'; - $text[11] = 'License type of the font'; - $typeAddFont = $module::$typeAddFont_en; - break; -} -?> - +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); +echo template::formOpen('themeAddFonts'); ?>
Le curseur horizontal règle le niveau de transparence.'; - $text[7] = 'Couleur visible en l\'absence d\'une image.
Le curseur horizontal règle le niveau de transparence. La couleur du texte est automatique.'; - $text[8] = 'Arrière-plan'; - $text[9] = 'Titres'; - $text[10] = 'Texte'; - $text[11] = 'Arrière-plan des champs'; - $text[12] = 'Bordure des champs'; - $text[13] = 'Bouton Aide'; - $text[14] = 'Bouton retour'; - $text[15] = 'Bouton standard'; - $text[16] = 'Bouton effacement'; - $text[17] = 'Bouton validation'; - $text[18] = 'Mise en forme du texte'; - $text[19] = 'Police du texte'; - $text[20] = 'Taille'; - $text[21] = 'Police des titres'; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[3] = 'Reset'; - $text[4] = 'Validate'; - $text[5] = 'Colors'; - $text[6] = 'The colour visible in the absence of an image.
The horizontal slider adjusts the level of transparency.'; - $text[7] = 'The colour visible in the absence of an image.
The horizontal slider adjusts the level of transparency. The text colour is automatic.'; - $text[8] = 'Background'; - $text[9] = 'Title'; - $text[10] = 'Text'; - $text[11] = 'Field background'; - $text[12] = 'Field border'; - $text[13] = 'Help button'; - $text[14] = 'Back button'; - $text[15] = 'Standard button'; - $text[16] = 'Delete button'; - $text[17] = 'Validation button'; - $text[18] = 'Text formatting'; - $text[19] = 'Text font'; - $text[20] = 'Size'; - $text[21] = 'Title font'; - break; -} -?> - +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); + +echo template::formOpen('configAdminForm'); ?>
Le curseur horizontal règle le niveau de transparence.'; - $text[5] = 'Arrière-plan'; - $text[6] = 'Le curseur horizontal règle le niveau de transparence.'; - $text[7] = 'Fond icône haut de page'; - $text[8] = 'Icône haut de page'; - $text[9] = 'Image'; - $text[10] = 'Sélectionner une image'; - $text[11] = 'Arrière-plan'; - $text[12] = 'Répétition'; - $text[13] = 'Position'; - $text[14] = 'Défilement'; - $text[15] = 'Taille'; - $repeats = $module::$repeats; - $imagePositions = $module::$imagePositions; - $attachments = $module::$attachments; - $bodySizes = $module::$bodySizes; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[2] = 'Save'; - $text[3] = 'Colors'; - $text[4] = 'Color visible in the absence of an image.
The horizontal slider adjusts the level of transparency.'; - $text[5] = 'Background'; - $text[6] = 'The horizontal slider sets the transparency level'; - $text[7] = 'Top icon background'; - $text[8] = 'Top icon'; - $text[9] = 'Image'; - $text[10] = 'Select an image'; - $text[11] = 'Background'; - $text[12] = 'Repeat'; - $text[13] = 'Position'; - $text[14] = 'Scroll'; - $text[15] = 'Size'; - $repeats = $module::$repeats_en; - $imagePositions = $module::$imagePositions_en; - $attachments = $module::$attachments_en; - $bodySizes = $module::$bodySizes_en; - break; -} -?> - +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); + +echo template::formOpen('themeBodyForm'); ?>
+
+
+
Lorsque l\'adaptation est positionnée sur Responsive, la hauteur diminue proportionnellement à la largeur.'; - $text[7] = 'Largeur'; - $text[8] = 'Masquer la bannière en écran réduit'; - $text[9] = 'Aligner la bannière avec le contenu'; - $text[10] = 'Couleurs'; - $text[11] = 'Le curseur horizontal règle le niveau de transparence.'; - $text[12] = 'Arrière-plan'; - $text[13] = 'Le curseur horizontal règle le niveau de transparence.'; - $text[14] = 'Texte'; - $text[15] = 'Mise en forme du titre'; - $text[16] = 'Masquer le titre du site'; - $text[17] = 'Police'; - $text[18] = 'Taille'; - $text[19] = 'Style'; - $text[20] = 'Casse'; - $text[21] = 'Proportionnelle à celle définie dans le site.'; - $text[22] = 'Alignement du contenu'; - $text[23] = 'Papier peint'; - $text[24] = 'Sélectionner une image aux dimensions recommandées ci-dessous :'; - $text[25] = 'Image'; - $text[26] = 'Répétition'; - $text[27] = 'Adaptation'; - $text[28] = 'Les modes responsives permettent de conserver des dimensions proportionnelles.
Cover pour une image plus grande que la bannière, Contain pour une image plus petite. Les modes Auto et Etiré ne provoquent pas de modification de la hauteur de la bannière.'; - $text[29] = 'Bannière cliquable'; - $text[30] = 'Largeur : '; - $text[31] = ' | Hauteur : '; - $text[32] = ' | ratio : '; - $text[33] = 'Contenu personnalisé'; - $text[34] ='Enregistrer'; - $headerPositions = $module::$headerPositions; - $headerFeatures = $module::$headerFeatures; - $headerHeights = $module::$headerHeights; - $containerWides = $module::$containerWides; - $headerFontSizes = $module::$headerFontSizes; - $fontWeights = $module::$fontWeights; - $textTransforms = $module::$textTransforms; - $aligns = $module::$aligns; - $repeats = $module::$repeats; - $headerWide = $module::$headerWide; - $imagePositions = $module::$imagePositions; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[2] = 'Settings'; - $text[3] = 'Position'; - $text[4] = 'Type of content'; - $text[5] = 'Maximum height'; - $text[6] = 'The maximum height is 600 pixels, even if the selected image size is larger.
When the adaptation is set to Responsive, the height decreases in proportion to the width.'; - $text[7] = 'Width'; - $text[8] = 'Hide banner in small screen'; - $text[9] = 'Align banner with content'; - $text[10] = 'Colors'; - $text[11] = 'Horizontal slider sets transparency level'; - $text[12] = 'Background'; - $text[13] = 'Horizontal slider sets transparency level'; - $text[14] = 'Text'; - $text[15] = 'Title formatting'; - $text[16] = 'Hide site title'; - $text[17] = 'Font'; - $text[18] = 'Size'; - $text[19] = 'Style'; - $text[20] = 'Character case'; - $text[21] = 'Proportional to that defined in the site'; - $text[22] = 'Content alignment'; - $text[23] = 'Wallpaper'; - $text[24] = 'Select an image with the following recommended dimensions:'; - $text[25] = 'Image'; - $text[26] = 'Repeat'; - $text[27] = 'Adaptation'; - $text[28] = 'Responsive modes allow proportional dimensions to be maintained.
Cover for an image larger than the banner, Contain for a smaller image. The Auto and Stretch modes do not change the height of the banner.'; - $text[29] = 'Clickable banner'; - $text[30] = 'Width : '; - $text[31] = ' | Height : '; - $text[32] = ' | ratio : '; - $text[33] = 'Custom content'; - $text[34] ='Save'; - $headerPositions = $module::$headerPositions_en; - $headerFeatures = $module::$headerFeatures_en; - $headerHeights = $module::$headerHeights_en; - $containerWides = $module::$containerWides_en; - $headerFontSizes = $module::$headerFontSizes_en; - $fontWeights = $module::$fontWeights_en; - $textTransforms = $module::$textTransforms_en; - $aligns = $module::$aligns_en; - $repeats = $module::$repeats_en; - $headerWide = $module::$headerWide_en; - $imagePositions = $module::$imagePositions_en; - break; -} +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); +// Passage de la langue d'administration à Tinymce +?> + +'; +echo ''; +echo ''; +echo template::formOpen('themeFooterForm'); + +echo template::formOpen('themeHeaderForm'); ?> -
+
Le curseur horizontal règle le niveau de transparence.'; - $text[29] = 'Fond page active'; - $text[30] = 'Mise en forme du texte'; - $text[31] = 'Police'; - $text[32] = 'Taille'; - $text[33] = 'Proportionnelle à celle définie dans le site'; - $text[34] = 'Style'; - $text[35] = 'Casse'; - $text[36] = 'Couleur de fond automatique'; - $menuPositionsSite = $module::$menuPositionsSite; - $menuPositionsBody = $module::$menuPositionsBody; - $containerWides = $module::$containerWides; - $menuRadius = $module::$menuRadius; - $menuHeights = $module::$menuHeights; - $aligns = $module::$aligns; - $burgerContent = $module::$burgerContent; - $menuFontSizes = $module::$menuFontSizes; - $menuBurgerFontSizes = $module::$menuBurgerFontSizes; - $fontWeights = $module::$fontWeights; - $textTransforms = $module::$textTransforms; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[2] = 'Save'; - $text[3] = 'Settings'; - $text[4] = 'Position'; - $text[5] = 'Width'; - $text[6] = 'Rounded edges'; - $text[7] = 'Around the selected page'; - $text[8] = 'Height'; - $text[9] = 'Alignment of content'; - $text[10] = 'Align menu with content'; - $text[11] = 'Fixed menu'; - $text[12] = 'Contents'; - $text[13] = 'Login link'; - $text[14] = 'Member bar'; - $text[15] = 'Account management and logout icons. Only for logged in members'; - $text[16] = 'Display in burger menu'; - $text[17] = 'The burger menu replaces the full menu when the screen width is not sufficient'; - $text[18] = 'Select an image, its dimensions will be adapted automatically'; - $text[19] = 'Logo of the burger menu'; - $text[20] = 'Colors'; - $text[21] = 'The horizontal slider sets the transparency level'; - $text[22] = 'Text'; - $text[23] = 'Horizontal slider sets transparency level'; - $text[24] = 'Background'; - $text[25] = 'Submenu background'; - $text[26] = 'Text active page'; - $text[27] = 'The background colour of the active page can be set automatically or according to a defined colour, such as the background colour of the pages.'; - $text[28] = 'Background colour of the page selected in the menu.
The horizontal slider sets the transparency level.'; - $text[29] = 'Active page background'; - $text[30] = 'Text formatting'; - $text[31] = 'Font'; - $text[32] = 'Size'; - $text[33] = 'Proportional to that defined in the site'; - $text[34] = 'Style'; - $text[35] = 'Character case'; - $text[36] = 'Automatic background color'; - $menuPositionsSite = $module::$menuPositionsSite_en; - $menuPositionsBody = $module::$menuPositionsBody_en; - $containerWides = $module::$containerWides_en; - $menuRadius = $module::$menuRadius_en; - $menuHeights = $module::$menuHeights_en; - $aligns = $module::$aligns_en; - $burgerContent = $module::$burgerContent_en; - $menuFontSizes = $module::$menuFontSizes_en; - $menuBurgerFontSizes = $module::$menuBurgerFontSizes_en; - $fontWeights = $module::$fontWeights_en; - $textTransforms = $module::$textTransforms_en; - break; -} -?> - +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); + +echo template::formOpen('themeMenuForm'); ?>
Le curseur horizontal règle le niveau de transparence.'; - $text[15] = 'Arrière-plan des blocs'; - $text[16] = 'Bordure des blocs'; - $text[17] = 'Arrondi des angles du bloc'; - $text[18] = 'Ombre sur les bords du bloc'; - $text[19] = 'Arrière-plan du titre des blocs'; - $text[20] = 'Boutons'; - $text[21] = 'Titre'; - $text[22] = 'Sous-titre'; - $text[23] = 'Bouton'; - $text[24] = 'Bloc'; - $text[25] = 'Mise en forme du texte'; - $text[26] = 'Police'; - $text[27] = 'Style'; - $text[28] = 'Casse'; - $text[29] = 'Taille'; - $text[30] = 'Taille de référence pour le site. Les tailles des polices de la bannière, de menu et de pied de page sont proportionnelles à cette taille.'; - $text[31] = 'Mise en forme des titres'; - $siteWidths = $module::$siteWidths; - $radius = $module::$radius; - $shadows = $module::$shadows; - $blockShadows = $module::$blockShadows; - $fontWeights = $module::$fontWeights; - $textTransforms = $module::$textTransforms; - break; - case 'en' : - $text[0] = 'Back'; - $text[1] = 'Help'; - $text[2] = 'Save'; - $text[3] = 'Settings'; - $text[4] = 'Site width'; - $text[5] = 'Rounding of corners'; - $text[6] = 'Shadow on site edges'; - $text[7] = 'No margin above and below site'; - $text[8] = 'Colors'; - $text[9] = 'Horizontal slider sets transparency level'; - $text[10] = 'Background'; - $text[11] = 'Text'; - $text[12] = 'Title'; - $text[13] = 'Links'; - $text[14] = 'Color visible in the absence of an image'; - $text[15] = 'Background of blocks'; - $text[16] = 'Block border'; - $text[17] = 'Block corner rounding'; - $text[18] = 'Shadow on block edges'; - $text[19] = 'Block title background'; - $text[20] = 'Buttons'; - $text[21] = 'Title'; - $text[22] = 'Subtitle'; - $text[23] = 'Button'; - $text[24] = 'Block'; - $text[25] = 'Text formatting'; - $text[26] = 'Font'; - $text[27] = 'Style'; - $text[28] = 'Character case'; - $text[29] = 'Size'; - $text[30] = 'Reference size for the site. The font sizes of the banner, menu and footer are proportional to this size'; - $text[31] = 'Title formatting'; - $siteWidths = $module::$siteWidths_en; - $radius = $module::$radius_en; - $shadows = $module::$shadows_en; - $blockShadows = $module::$blockShadows_en; - $fontWeights = $module::$fontWeights_en; - $textTransforms = $module::$textTransforms_en; - break; -} -?> - +include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); +// Passage de la langue d'administration à Tinymce +/* +?> + +'; +echo ''; +echo ''; +*/ +echo template::formOpen('themeFooterForm'); +echo template::formOpen('themeSiteForm'); ?>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.