Przeglądaj źródła

SE_Layout: add alert

Piotr Labudda 10 lat temu
rodzic
commit
84dbd16a38
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      SE/se-lib/SE_Layout.php

+ 8 - 0
SE/se-lib/SE_Layout.php

@@ -74,4 +74,12 @@ class SE_Layout {
 		}
 	}
 
+	public static function alert($alertType, $msg) {
+		?>
+<div class="alert alert-<?php echo $alertType; ?>">
+	<?php echo $msg; ?>
+</div>
+		<?php
+	}
+
 }