<?php
/*
 * @package    ECLCDEK shipping plugin СДЭК to RadicalMart
 * @subpackage    ECLCDEK
 * @version    1.0.1
 * @author Econsult Lab.
 * @copyright  Copyright (c) 2025 Econsult Lab. All rights reserved.
 * @license    GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
 * @link       https://econsultlab.ru
 */

use Joomla\CMS\Factory;

defined('_JEXEC') or die;

extract($displayData);

/**
 * Layout variables
 * -----------------
 *
 * @var  string   $msg_type     Тип сообщения (primary,success,warning,danger).
 * @var  string   $msg_text     Текст сообщения.
 *
 */

if(!in_array($msg_type,['primary','success','warning','danger']))
	$msg_type = 'primary';

if(!empty($msg_text)):
?>
<div class="alert alert-<?php echo $msg_type; ?>">
    <?php echo $msg_text; ?>
</div>
<?php endif; ?>
