@@ 47-58 (lines=12) @@ | ||
44 | return el('div.alert.-success', ['class' => $classes], $message); |
|
45 | } |
|
46 | ||
47 | public function info($message, string $classes = ''): string |
|
48 | { |
|
49 | if (empty($message)) { |
|
50 | return ''; |
|
51 | } |
|
52 | ||
53 | return el( |
|
54 | 'div.alert.-info', |
|
55 | ['class' => $classes], |
|
56 | el('span.fa.fa-info-circle').' '.$message |
|
57 | ); |
|
58 | } |
|
59 | ||
60 | public function warning($message, string $classes = ''): string |
|
61 | { |
|
@@ 60-71 (lines=12) @@ | ||
57 | ); |
|
58 | } |
|
59 | ||
60 | public function warning($message, string $classes = ''): string |
|
61 | { |
|
62 | if (empty($message)) { |
|
63 | return ''; |
|
64 | } |
|
65 | ||
66 | return el( |
|
67 | 'div.alert.-warning', |
|
68 | ['class' => $classes], |
|
69 | el('span.fa.fa-exclamation-triangle').' '.$message |
|
70 | ); |
|
71 | } |
|
72 | ||
73 | public function avatar(User $user, string $classes = ''): string |
|
74 | { |