diff --git a/layouts/joomla/system/message.php b/layouts/joomla/system/message.php index 460a215a80055..cca4581cc4924 100644 --- a/layouts/joomla/system/message.php +++ b/layouts/joomla/system/message.php @@ -13,7 +13,8 @@ use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; -$msgList = $displayData['msgList']; +$msgList = $displayData['msgList']; +$msgOutput = ''; $alert = [ CMSApplication::MSG_EMERGENCY => 'danger', @@ -43,25 +44,22 @@ ->useStyle('webcomponent.joomla-alert') ->useScript('webcomponent.joomla-alert'); +if (is_array($msgList) && !empty($msgList)) : + foreach ($msgList as $type => $msgs) : + $msgOutput .= ''; + if (!empty($msgs)) : + $msgOutput .= '
'; + $msgOutput .= ''; + $msgOutput .= '' . Text::_($type) . ''; + $msgOutput .= '
'; + $msgOutput .= '
'; + foreach ($msgs as $msg) : + $msgOutput .= '
' . $msg . '
'; + endforeach; + $msgOutput .= '
'; + endif; + $msgOutput .= '
'; + endforeach; +endif; ?> -
-
- - $msgs) : ?> - - -
- - -
-
- -
- -
- -
- - -
-
+