/** * @param WP_Notice $notice * * @return string * @author Panagiotis Vagenas <*****@*****.**> * @since TODO ${VERSION} */ public function formatOutput(WP_Notice $notice) { $unqId = uniqid(preg_replace('/[^a-z0-9A-Z]/', '', $notice->getId())); $out = "\n\t\t<div style=\"position: relative;\" class=\"{$notice->getType()}\">\n\t\t\t<h4 style=\"margin-top: 4px; margin-bottom: 0;\">{$notice->getTitle()}</h4>\n\t\t\t<p>\n\t\t\t\t{$notice->getContent()}\n\t\t\t\t{$notice->getId()}\n\t\t\t\t<a id=\"{$unqId}\" href=\"#\" style=\"font-size: 150%; position: absolute; right: 5px; top: -5px; text-decoration: none;\">×</a>\n\t\t\t</p>\n\t\t</div>\n\t\t"; $out .= $this->dismissibleScript($notice, $unqId); return $out; }
/** * @param WP_Notice $notice * * @return string * @author Panagiotis Vagenas <*****@*****.**> * @since 2.0.0 */ public function formatOutput(WP_Notice $notice) { $out = "\n\t\t<div style=\"position: relative;\" class=\"{$notice->getType()}\">\n\t\t\t<h4 style=\"margin-top: 4px; margin-bottom: 0;\">{$notice->getTitle()}</h4>\n\t\t\t<p>\n\t\t\t\t{$notice->getContent()}\n\t\t\t</p>\n\t\t</div>\n\t\t"; return $out; }