1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/skin/developer/alert.tpl
2014-01-13 18:20:44 +07:00

40 lines
1.5 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Уведомления
*
* @param string $sAlertTitle Заголовок
* @param string $sAlertStyle Стиль уведомления (error, info и т.д.), по умолчанию - success
* @param string $sAlertAttributes Дополнительные атрибуты основного блока
* @param string $sAlertClasses Дополнительные классы
* @param boolean $bAlertVisible Показывать или нет уведомление, по умолчанию - true
* @param boolean $bAlertClose Показывать или нет кнопку закрытия, по умолчанию - false
* @param mixed $mAlerts Массив либо строка с текстом уведомления
*
* @styles <framework>/css/alerts.css
*}
<div class="alert alert-{if $sAlertStyle}{$sAlertStyle}{else}success{/if} js-alert {$sAlertClasses}"
{if isset($bAlertVisible) && $bAlertVisible == false}style="display: none"{/if}
{$sAlertAttributes}>
{if $sAlertTitle}
<h4 class="alert--title">{$sAlertTitle}</h4>
{/if}
{if $bAlertClose}
<div class="alert--close" data-type="alert-close">×</div>
{/if}
<div class="alert--body">
{block name='alert_body'}
{if is_array($mAlerts)}
<ul class="alert--list">
{foreach $mAlerts as $aAlert}
<li class="alert--list--item">{if $aAlert.title}<strong>{$aAlert.title}</strong>:{/if} {$aAlert.msg}</li>
{/foreach}
</ul>
{else}
{$mAlerts}
{/if}
{/block}
</div>
</div>