forked from ZwiiCMS-Team/ZwiiCMS
[9.2.15] Popup notification + modif
This commit is contained in:
parent
b9039fe685
commit
37f69c3fcb
@ -1527,40 +1527,40 @@ class core extends common {
|
|||||||
'metaDescription' => $this->getData(['config', 'metaDescription'])
|
'metaDescription' => $this->getData(['config', 'metaDescription'])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
// Traitement de la popup hors connexion.
|
||||||
if( $this->output['targetLity'] &&
|
if( $this->output['targetLity'] &&
|
||||||
$this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
|
$this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
|
||||||
) {
|
) {
|
||||||
require 'core/layout/popup.php';
|
$this->output['display'] = self::DISPLAY_LAYOUT_POPUP;
|
||||||
} else {
|
|
||||||
switch($this->output['display']) {
|
|
||||||
// Layout vide
|
|
||||||
case self::DISPLAY_LAYOUT_BLANK:
|
|
||||||
require 'core/layout/blank.php';
|
|
||||||
break;
|
|
||||||
// Affichage en JSON
|
|
||||||
case self::DISPLAY_JSON:
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
echo json_encode($this->output['content']);
|
|
||||||
break;
|
|
||||||
// Layout alléger
|
|
||||||
case self::DISPLAY_LAYOUT_LIGHT:
|
|
||||||
require 'core/layout/light.php';
|
|
||||||
break;
|
|
||||||
// Layout principal
|
|
||||||
case self::DISPLAY_LAYOUT_MAIN:
|
|
||||||
require 'core/layout/main.php';
|
|
||||||
break;
|
|
||||||
// Layout poup lity
|
|
||||||
case self::DISPLAY_LAYOUT_POPUP:
|
|
||||||
|
|
||||||
break;
|
|
||||||
// Layout brut
|
|
||||||
case self::DISPLAY_RAW:
|
|
||||||
echo $this->output['content'];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch($this->output['display']) {
|
||||||
|
// Layout vide
|
||||||
|
case self::DISPLAY_LAYOUT_BLANK:
|
||||||
|
require 'core/layout/blank.php';
|
||||||
|
break;
|
||||||
|
// Affichage en JSON
|
||||||
|
case self::DISPLAY_JSON:
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
echo json_encode($this->output['content']);
|
||||||
|
break;
|
||||||
|
// Layout alléger
|
||||||
|
case self::DISPLAY_LAYOUT_LIGHT:
|
||||||
|
require 'core/layout/light.php';
|
||||||
|
break;
|
||||||
|
// Layout principal
|
||||||
|
case self::DISPLAY_LAYOUT_MAIN:
|
||||||
|
require 'core/layout/main.php';
|
||||||
|
break;
|
||||||
|
// Layout poup lity
|
||||||
|
case self::DISPLAY_LAYOUT_POPUP:
|
||||||
|
require 'core/layout/popup.php';
|
||||||
|
break;
|
||||||
|
// Layout brut
|
||||||
|
case self::DISPLAY_RAW:
|
||||||
|
echo $this->output['content'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
include('site/data/head.inc.html');
|
include('site/data/head.inc.html');
|
||||||
}?>
|
}?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<?php $layout->showNotification(); ?>
|
||||||
<!-- Corps de page -->
|
<!-- Corps de page -->
|
||||||
<section>
|
<section>
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user