Affichage crédits

This commit is contained in:
Fred Tempez 2020-11-24 13:59:25 +01:00
parent 51361afc12
commit 9dcc5a28a6

View File

@ -2157,8 +2157,8 @@ class core extends common {
// Librairie googtrans ajouté dynamiquement
if ( $this->getData(['config','translate','activated']) === true
AND ( $this->getData(['config','translate','admin']) === true
OR $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
OR ( $this->getData(['config','translate','admin']) === true
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
)
)
{
@ -2300,14 +2300,24 @@ class layout extends common {
}
echo $this->core->output['content'];
if ( substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) !== 'fr'
if ( (
( $this->getData(['config','translate','activated']) === true
AND substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) !== 'fr'
)
OR ( isset($_COOKIES['ZWII_USER_I18N'])
AND array_key_exists($_COOKIES['ZWII_USER_I18N'],$this->i18nList
AND $_COOKIES['ZWII_USER_I18N'] !== 'fr' )
)
)
AND $this->getData(['config','translate','showCredits']) === true
AND $this->getData(['config','translate','activated']) === true )
)
{
echo '<div id="googTransLogo"><a href="//policies.google.com/terms#toc-content" data-lity><img src="core/module/translate/ressource/googtrans.png" /></a></div>';
}
}
/**
* Affiche le contenu de la barre gauche
*