1 | <?php |
||
13 | class Stencil_Feedback { |
||
14 | /** |
||
15 | * Admin notice queue |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | private static $notices = array(); |
||
20 | |||
21 | /** |
||
22 | * Display a notification |
||
23 | * |
||
24 | * @param string $type Type of message. |
||
25 | * @param string $message Message to show. |
||
26 | */ |
||
27 | public static function notification( $type, $message ) { |
||
34 | |||
35 | /** |
||
36 | * Display a notification on the site |
||
37 | * |
||
38 | * Using trigger_error so developers see this message but visitors don't. |
||
39 | * If the server has been configured properly ofcourse.. |
||
40 | * |
||
41 | * @param string $type Type of notification. |
||
42 | * @param string $message Message to show. |
||
43 | */ |
||
44 | private static function site_notification( $type, $message ) { |
||
67 | |||
68 | /** |
||
69 | * Display a notification on the CMS |
||
70 | * |
||
71 | * @param string $type Type of mesesage. |
||
72 | * @param string $message Message to show. |
||
73 | */ |
||
74 | private static function admin_notification( $type, $message ) { |
||
84 | |||
85 | /** |
||
86 | * Display queued notices |
||
87 | */ |
||
88 | public static function show_admin_notices() { |
||
94 | } |
||
95 |