flashmessage.php 941 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <?php $corrects = Yii::$service->page->message->getCorrects(); ?>
  11. <?php $errors = Yii::$service->page->message->getErrors(); ?>
  12. <?php if((is_array($corrects) && !empty($corrects)) || (is_array($errors) && !empty($errors) )): ?>
  13. <div class="fecshop_message">
  14. <?php if(is_array($corrects) && !empty($corrects)): ?>
  15. <?php foreach($corrects as $one): ?>
  16. <div class="correct-msg">
  17. <div><?= Yii::$service->page->translate->__($one); ?></div>
  18. </div>
  19. <?php endforeach; ?>
  20. <?php endif; ?>
  21. <?php if(is_array($errors) && !empty($errors)): ?>
  22. <?php foreach($errors as $one): ?>
  23. <div class="error-msg">
  24. <div><?= Yii::$service->page->translate->__($one); ?></div>
  25. </div>
  26. <?php endforeach; ?>
  27. <?php endif; ?>
  28. </div>
  29. <?php endif; ?>