PluginProbe
Boxzilla – WordPress Popup Builder / 3.2.21
Boxzilla – WordPress Popup Builder v3.2.21
3.4.11 3.4.10 3.4.9 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 trunk 3.0 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 All 72 releases
← All changes | src/admin/class-notices.php +4 -3 3.13.2.21 View file →
@@ -3,8 +3,9 @@
3 3 namespace Boxzilla\Admin;
4 4
5 5 class Notices {
6 6
7 +
7 8 /**
8 9 * @var array
9 10 */
10 11 protected $notices = array();
@@ -24,9 +25,9 @@
24 25 */
25 26 public function add( $message, $type = 'updated' ) {
26 27 $this->notices[] = array(
27 28 'message' => $message,
28 - 'type' => $type,
29 + 'type' => $type,
29 30 );
30 31
31 32 return $this;
32 33 }
@@ -34,9 +35,9 @@
34 35 /**
35 36 * Output the registered notices
36 37 */
37 38 public function show() {
38 - foreach( $this->notices as $notice ) {
39 + foreach ( $this->notices as $notice ) {
39 40 echo sprintf( '<div class="notice notice-%s"><p>%s</p></div>', $notice['type'], $notice['message'] );
40 41 }
41 42 }
42 -}
43 +}