You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
752B

  1. <?php
  2. namespace common\helpers;
  3. class AdminLTE
  4. {
  5. public static function smallBox(
  6. string $title,
  7. string $description,
  8. string $backgroundColor,
  9. string $icon,
  10. string $footerLinkUrl = null,
  11. string $footerLinkLabel = 'Voir',
  12. string $footerLinkIcon = 'arrow-circle-right'
  13. )
  14. {
  15. return \Yii::$app->getView()->renderFile('@backend/views/_include/small_box.php', [
  16. 'title' => $title,
  17. 'description' => $description,
  18. 'backgroundColor' => $backgroundColor,
  19. 'icon' => $icon,
  20. 'footerLinkUrl' => $footerLinkUrl,
  21. 'footerLinkLabel' => $footerLinkLabel,
  22. 'footerLinkIcon' => $footerLinkIcon
  23. ]);
  24. }
  25. }