From fef59eb19e03b43f38eeaaff4f9d15d8db910c44 Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Fri, 12 Oct 2018 17:23:00 +0200 Subject: [PATCH] Attributes --- src/WPDesk/Notice/Notice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WPDesk/Notice/Notice.php b/src/WPDesk/Notice/Notice.php index 839ce0b..14bdaaa 100644 --- a/src/WPDesk/Notice/Notice.php +++ b/src/WPDesk/Notice/Notice.php @@ -184,7 +184,7 @@ class Notice $notice_class .= ' is-dismissible'; } if (isset($this->attributes['class'])) { - $notice_class .= $this->attributes['class']; + $notice_class .= ' ' . $this->attributes['class']; } return $notice_class; } @@ -210,7 +210,7 @@ class Notice */ public function showNotice() { - echo sprintf('<div %1$s><p>%2$s</p></div>', $this->getAttributesAsString(), $this->noticeContent); + echo sprintf('<div %1$s>%2$s</div>', $this->getAttributesAsString(), $this->noticeContent); } } -- GitLab