diff --git a/src/classes/page.php b/src/classes/page.php index 8bd164c5..120d4e3c 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -37,6 +37,11 @@ class Page $containerClasses[] = 'info icon'; $iconClasses[] = 'info circle'; break; + + case 'success': + $containerClasses[] = 'success icon'; + $iconClasses[] = 'check circle'; + break; } $containerClass = implode(' ', $containerClasses); @@ -77,6 +82,11 @@ class Page return self::message($content, $header, 'info'); } + public static function success(string $content, string $header = ''): string + { + return self::message($content, $header, 'success'); + } + /** * Non-Static */ diff --git a/src/pages/login-as.php b/src/pages/login-as.php index 2fb3e2b5..72b4516b 100644 --- a/src/pages/login-as.php +++ b/src/pages/login-as.php @@ -32,8 +32,12 @@ $page->navigation();