<script type="text/javascript">
  $.alert(
  {
    title: '<?= $this -> alert['title'];?>',
    icon: 'fa fa-exclamation',
    content: '<?= $this -> alert['message'];?>',
    closeIcon: true,
    closeIconClass: 'fa fa-close',
    typeAnimated: true,
    animation: 'opacity',
    <? if ( $this -> alert['autoclose'] ):?>
      autoClose: 'confirm|<?= $this -> alert['autoclose'] * 1000;?>',
    <? endif;?>
    columnClass: 'large',
    theme: 'modern',
    buttons: 
    {
      confirm: 
      {
        text: '<?= \S::lang( 'zamknij' );?>',
        btnClass: 'btn-blue',
        keys: ['enter'],
        action: function() {}
      }
    }
  });
</script>