Your IP : 216.73.216.140


Current Path : /home/eolienneia/www/templates/yootheme/html/layouts/joomla/system/
Upload File :
Current File : /home/eolienneia/www/templates/yootheme/html/layouts/joomla/system/message.php

<?php

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use YOOtheme\Path;

if (Path::get(__FILE__) !== $file = Path::get('~theme/html/layouts/joomla/system/message.php')) {
    return include $file;
}

if (version_compare(JVERSION, '4.0', '>')) {
    return include JPATH_ROOT . '/layouts/joomla/system/message.php';
}

$alert = [
    'message' => 'uk-alert-success',
    'warning' => 'uk-alert-warning',
    'error' => 'uk-alert-danger',
    'notice' => '',
    'info' => '',
];

$msgList = $displayData['msgList'];
$msgAttr = json_encode($msgList);

?>
<div id="system-message-container" data-messages="<?= htmlspecialchars($msgAttr) ?>">
<?php if (is_array($msgList) && !empty($msgList)) : ?>
    <?php foreach ($msgList as $type => $msgs) : ?>
    <div class="uk-alert <?= $alert[$type] ?>" uk-alert>

        <a href="#" class="uk-alert-close uk-close" uk-close></a>

        <?php if (!empty($msgs)) : ?>

            <h3><?= Text::_($type) ?></h3>

            <?php foreach ($msgs as $msg) : ?>
            <p><?= $msg ?></p>
            <?php endforeach ?>

        <?php endif ?>

    </div>
    <?php endforeach ?>
<?php endif ?>
</div>