_alert.php 904 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project.
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. use yii\bootstrap\Alert;
  11. /**
  12. * @var dektrium\user\Module $module
  13. */
  14. ?>
  15. <?php /*if ($module->enableFlashMessages): ?>
  16. <div class="row">
  17. <div class="col-xs-12">
  18. <?php foreach (Yii::$app->session->getAllFlashes() as $type => $message): ?>
  19. <?php if (in_array($type, ['success', 'danger', 'warning', 'info'])): ?>
  20. <?= Alert::widget([
  21. 'options' => ['class' => 'alert-dismissible alert-' . $type],
  22. 'body' => $message
  23. ]) ?>
  24. <?php endif ?>
  25. <?php endforeach ?>
  26. </div>
  27. </div>
  28. <?php endif */?>