{"id":21855,"date":"2013-02-04T04:35:33","date_gmt":"2013-02-04T04:35:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/notifications\/"},"modified":"2014-06-04T22:15:54","modified_gmt":"2014-06-04T22:15:54","slug":"notifications","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/notifications\/","author":1130752,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.3","stable_tag":"1.1.3","tested":"3.9.40","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Notifications","header_author":"Chris Reynolds","header_description":"","assets_banners_color":"ffffff","last_updated":"2014-06-04 22:15:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=AWM2TG3D4HYQ6","header_plugin_uri":"http:\/\/museumthemes.com\/notifications\/","header_author_uri":"http:\/\/jazzsequence.com","rating":5,"author_block_rating":0,"active_installs":30,"downloads":4126,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"Please update your themes to support the new `tha_body_top` action!":""},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"663010","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.1.1","1.1.2","1.1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"663009","resolution":"1","location":"assets"},"screenshot-10.png":{"filename":"screenshot-10.png","revision":"663009","resolution":"10","location":"assets"},"screenshot-11.png":{"filename":"screenshot-11.png","revision":"663009","resolution":"11","location":"assets"},"screenshot-12.png":{"filename":"screenshot-12.png","revision":"663009","resolution":"12","location":"assets"},"screenshot-13.png":{"filename":"screenshot-13.png","revision":"663009","resolution":"13","location":"assets"},"screenshot-14.png":{"filename":"screenshot-14.png","revision":"663009","resolution":"14","location":"assets"},"screenshot-15.png":{"filename":"screenshot-15.png","revision":"663009","resolution":"15","location":"assets"},"screenshot-16.png":{"filename":"screenshot-16.png","revision":"663009","resolution":"16","location":"assets"},"screenshot-17.png":{"filename":"screenshot-17.png","revision":"663009","resolution":"17","location":"assets"},"screenshot-18.png":{"filename":"screenshot-18.png","revision":"663009","resolution":"18","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"663009","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"663009","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"663009","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"663009","resolution":"5","location":"assets"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"663009","resolution":"6","location":"assets"},"screenshot-7.png":{"filename":"screenshot-7.png","revision":"663009","resolution":"7","location":"assets"},"screenshot-8.png":{"filename":"screenshot-8.png","revision":"663009","resolution":"8","location":"assets"},"screenshot-9.png":{"filename":"screenshot-9.png","revision":"663009","resolution":"9","location":"assets"}},"screenshots":{"1":"<p>Default style<\/p>","2":"<p>Something cool<\/p>","3":"<p>Metallic<\/p>","4":"<p>Any color, as long as it's gray<\/p>","5":"<p>A real hot one<\/p>","6":"<p>Getting warmer<\/p>","7":"<p>Lemon<\/p>","8":"<p>Orange<\/p>","9":"<p>Plain Jane<\/p>","10":"<p>Press'd!<\/p>","11":"<p>Another admin bar<\/p>","12":"<p>Tax Return<\/p>","13":"<p>Bright idea<\/p>","14":"<p>Alert!<\/p>","15":"<p>Something bad<\/p>","16":"<p>You should know\u2026<\/p>","17":"<p>Success!!<\/p>","18":"<p>No styles<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[80736],"plugin_business_model":[],"class_list":["post-21855","plugin","type-plugin","status-publish","hentry","plugin_contributors-jazzs3quence","plugin_committers-jazzs3quence"],"banners":{"banner":"https:\/\/ps.w.org\/notifications\/assets\/banner-772x250.png?rev=663010","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/notifications_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-1.png?rev=663009","caption":"<p>Default style<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-2.png?rev=663009","caption":"<p>Something cool<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-3.png?rev=663009","caption":"<p>Metallic<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-4.png?rev=663009","caption":"<p>Any color, as long as it's gray<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-5.png?rev=663009","caption":"<p>A real hot one<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-6.png?rev=663009","caption":"<p>Getting warmer<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-7.png?rev=663009","caption":"<p>Lemon<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-8.png?rev=663009","caption":"<p>Orange<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-9.png?rev=663009","caption":"<p>Plain Jane<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-10.png?rev=663009","caption":"<p>Press'd!<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-11.png?rev=663009","caption":"<p>Another admin bar<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-12.png?rev=663009","caption":"<p>Tax Return<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-13.png?rev=663009","caption":"<p>Bright idea<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-14.png?rev=663009","caption":"<p>Alert!<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-15.png?rev=663009","caption":"<p>Something bad<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-16.png?rev=663009","caption":"<p>You should know\u2026<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-17.png?rev=663009","caption":"<p>Success!!<\/p>"},{"src":"https:\/\/ps.w.org\/notifications\/assets\/screenshot-18.png?rev=663009","caption":"<p>No styles<\/p>"}],"raw_content":"<!--section=description-->\n<p>How many times have you needed to display a notice across your site? Too many, if you ask me. I wrote this plugin because many of the notification bar plugins out there leave much to be desired. Either there are too many options or not enough or not the ones that I want. Plus, it's not easy to create a notice -- you have to go to some crazy screen and set options unique to that plugin.<\/p>\n\n<p>This plugin uses custom post types, so notifications are set up like mini-posts that we all know and love. Multiple controls, as well as a built-in filter, enable developers and casual users alike to easily customize the notification bar to your heart's content.<\/p>\n\n<p><strong>Update:<\/strong> This plugin now supports the <a href=\"https:\/\/github.com\/zamoose\/themehookalliance\">Theme Hook Alliance<\/a> <code>tha_body_top<\/code> action. If you are using the <code>body_open<\/code> action in your child theme, please change this to <code>tha_body_top<\/code>, e.g.<\/p>\n\n<pre><code>do_action( 'tha_body_top' );\n<\/code><\/pre>\n\n<h4>Usage<\/h4>\n\n<p>Notifications looks for the <code>body_open<\/code> hook. This hook  was first <a href=\"http:\/\/core.trac.wordpress.org\/ticket\/12563#comment:10\">proposed on Trac<\/a> by <a href=\"https:\/\/twitter.com\/nacin\">Andrew Nacin<\/a> as a way to hook into an action that fires immediately after the <code>&lt;body&gt;<\/code> tag in the code.<\/p>\n\n<p>Want to filter the output to customize how the notification gets displayed? Use the <code>notf_notification_filter<\/code> filter in your plugin or theme, like this:<\/p>\n\n<pre><code>     function my_test_filter( $output ) {\n        $output = '&lt;span class=\"whoops-i-did-it-again\" style=\"color: red;\"&gt;'.notf_message().'&lt;\/span&gt;';\n        return $output;\n     }\n     add_filter( 'notf_notification_filter', 'my_test_filter' );\n<\/code><\/pre>\n\n<p><strong>Important:<\/strong> Use the <code>notf_message<\/code> function in your filter to return the actual notification.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin via FTP or the plugin uploader to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li><p>If your theme does not natively support the <code>tha_body_top<\/code> hook, open your <code>header.php<\/code> and add the following immediately after the <code>&lt;body&gt;<\/code> tag:<\/p>\n\n<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Checks for messages before trying to output them (thanks Daron Spence!)<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Updates support for <a href=\"https:\/\/github.com\/zamoose\/themehookalliance\">Theme Hook Alliance<\/a> action hook instead of arbitrary, theme-specific hooks.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>fixes validation _doing_it_wrong()<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>added sticky option, to stick the notification to the top of the page, rather than scrolling with the page.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>removes menu order (can conflict with other post types with same menu order)<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>first public release<\/li>\n<\/ul>","raw_excerpt":"Easy, customizable notifications for your WordPress site","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=21855"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jazzs3quence"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21855"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21855"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21855"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21855"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21855"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}