Skip to content

Commit

Permalink
Add dismiss style and padding; See: wpsharks/comment-mail#193
Browse files Browse the repository at this point in the history
  • Loading branch information
kristineds committed Mar 16, 2016
1 parent 8e92ff9 commit 6c43f43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/includes/classes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,9 @@ public function allAdminNotices()
}
if ($_args['markup']) { // Only display non-empty notices.
if ($_args['persistent']) { // Need [dismiss] link?
$_dismiss_style = 'clear: both;'.
'padding-right: 38px;'.
'position: relative;';
$_dismiss_url = $this->utils_url->dismissNotice($_key);
$_dismiss = '<a href="'.esc_attr($_dismiss_url).'">'.
' <button type="button" class="notice-dismiss">'.
Expand All @@ -2276,7 +2279,7 @@ public function allAdminNotices()
$_classes .= ' updated'; // Green informational notice
}
$_full_markup = // Put together the full markup; including other pieces.
'<div class="notice '.esc_attr($_classes).'" style="clear: both; padding-right: 38px; position: relative;">'.// clear:both needed to fix StCR options page clash; see http://bit.ly/1V83vQl
'<div class="notice '.esc_attr($_classes).'" style="padding-bottom: 10px; '.esc_attr($_dismiss_style).'">'.// clear:both needed to fix StCR options page clash; see http://bit.ly/1V83vQl
' '.$this->utils_string->pWrap($_args['markup'], $_dismiss).
'</div>';

Expand Down

0 comments on commit 6c43f43

Please sign in to comment.