diff --git a/core/core.php b/core/core.php index 0a0b00b..7a4b85a 100644 --- a/core/core.php +++ b/core/core.php @@ -268,7 +268,7 @@ class common { if($this->user === []) { $this->user = $this->getData(['user', $this->getInput('DELTA_USER_ID')]); } - + /** * Discrimination humain robot pour shuntage des Captchas * Initialisation à 'bot' ou 'human' en fonction des données $_SERVER : à développer ! @@ -1085,7 +1085,7 @@ class common { $mail->Body = $layout; $mail->AltBody = strip_tags($content); if($file_name !== '') $mail->addAttachment( self::FILE_DIR.'uploads/'.$file_name); - + if($mail->send()) { return true; } @@ -1185,7 +1185,7 @@ class common { public function showCookies() { // Gestion des cookies intégrée - if ($this->getData(['config', 'cookieConsent']) === true ) + if ($this->getData(['config', 'cookieConsent']) === true ) { // Détermine si le bloc doit être affiché selon la validité du cookie // L'URL du serveur faut TRUE @@ -1612,15 +1612,15 @@ class common { // Met en forme les items du menu $itemsLeft = ''; $currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2); - ?> + ?> - getHierarchy() as $parentPageId => $childrenPageIds) { // Passer les entrées masquées // Propriétés de l'item $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; - + // Tableaux des pages parent et de toutes les pages utilisés par core.js.php pour régler la largeur minimale des onglets et la largeur des sous-menus if( $childrenPageIds !== [] ){ ?> @@ -1647,8 +1647,8 @@ class common { $heightLogo = 0; $widthLogo = 0; $fileLogo = './site/file/source/'. $this->getData(['page', $parentPageId, 'iconUrl']); - if ( ($this->getData(['page', $parentPageId, 'typeMenu']) === 'icon' - || $this->getData(['page', $parentPageId, 'typeMenu']) === 'icontitle' ) + if ( ($this->getData(['page', $parentPageId, 'typeMenu']) === 'icon' + || $this->getData(['page', $parentPageId, 'typeMenu']) === 'icontitle' ) && $this->getData(['page', $parentPageId, 'iconUrl']) != "" && file_exists( $fileLogo)) { $fontsize = $this->getData(['theme', 'text', 'fontSize']); @@ -1671,7 +1671,7 @@ class common { $widthLogo = 30; } } - + switch ($this->getData(['page', $parentPageId, 'typeMenu'])) { case '' : $itemsLeft .= $this->getData(['page', $parentPageId, 'shortTitle']); @@ -1797,7 +1797,7 @@ class common { $itemsRight .= '
  • ' . template::ico('logout') . '
  • '; } // Retourne les items du menu suivant l'alignement du contenu - + // Les drapeaux d'abord en petit écran echo '