forked from ZwiiCMS-Team/ZwiiCMS
Suppression de l'option de traduction en mode connecté
This commit is contained in:
parent
21abb228da
commit
2adca800ec
@ -709,6 +709,9 @@ if ($this->getData(['core', 'dataVersion']) < 11200) {
|
|||||||
$this->setData(['locale', 'cookies', 'cookieCheckboxGaText', 'Autorisation des cookies Google Analytics']);
|
$this->setData(['locale', 'cookies', 'cookieCheckboxGaText', 'Autorisation des cookies Google Analytics']);
|
||||||
$this->setData(['locale', 'cookies', 'cookiesButtonText', 'J\'ai compris']);
|
$this->setData(['locale', 'cookies', 'cookiesButtonText', 'J\'ai compris']);
|
||||||
|
|
||||||
|
// Supppression de l'option de traduction en mode connecté
|
||||||
|
$this->serData(['config','i18n', 'admin', false]);
|
||||||
|
|
||||||
// Mise à jour
|
// Mise à jour
|
||||||
$this->setData(['core', 'dataVersion', 11200]);
|
$this->setData(['core', 'dataVersion', 11200]);
|
||||||
}
|
}
|
||||||
|
@ -514,7 +514,7 @@ class config extends common {
|
|||||||
'scriptGoogle' => $this->getData(['config', 'i18n', 'scriptGoogle']),
|
'scriptGoogle' => $this->getData(['config', 'i18n', 'scriptGoogle']),
|
||||||
'showCredits' => $this->getData(['config', 'i18n', 'showCredits']),
|
'showCredits' => $this->getData(['config', 'i18n', 'showCredits']),
|
||||||
'autoDetect' => $this->getData(['config', 'i18n', 'autoDetect']),
|
'autoDetect' => $this->getData(['config', 'i18n', 'autoDetect']),
|
||||||
'admin' => $this->getData(['config', 'i18n', 'admin']),
|
//'admin' => $this->getData(['config', 'i18n', 'admin']),
|
||||||
'fr' => $this->getData(['config', 'i18n', 'fr']),
|
'fr' => $this->getData(['config', 'i18n', 'fr']),
|
||||||
'de' => $this->getData(['config', 'i18n', 'de']),
|
'de' => $this->getData(['config', 'i18n', 'de']),
|
||||||
'en' => $this->getData(['config', 'i18n', 'en']),
|
'en' => $this->getData(['config', 'i18n', 'en']),
|
||||||
|
@ -130,7 +130,7 @@ class translate extends common {
|
|||||||
'scriptGoogle' => $script,
|
'scriptGoogle' => $script,
|
||||||
'showCredits' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false,
|
'showCredits' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false,
|
||||||
'autoDetect' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN) : false,
|
'autoDetect' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN) : false,
|
||||||
'admin' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAdmin', helper::FILTER_BOOLEAN) : false,
|
//'admin' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAdmin', helper::FILTER_BOOLEAN) : false,
|
||||||
'fr' => $this->getInput('translateFR'),
|
'fr' => $this->getInput('translateFR'),
|
||||||
'de' => $this->getInput('translateDE'),
|
'de' => $this->getInput('translateDE'),
|
||||||
'en' => $this->getInput('translateEN'),
|
'en' => $this->getInput('translateEN'),
|
||||||
|
@ -56,13 +56,6 @@
|
|||||||
'help' => 'Option recommandée pour le respect du droit d\'auteur'
|
'help' => 'Option recommandée pour le respect du droit d\'auteur'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
|
||||||
<?php echo template::checkbox('translateAdmin', true, 'Traduction en mode connecté', [
|
|
||||||
'checked' => $this->getData(['config','i18n', 'admin']),
|
|
||||||
'class' => 'translateGoogleScriptOption',
|
|
||||||
'help' => 'Traduit le site et l\'interface de ZwiiCMS quand un utilisateur est connecté'
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user