{"id":16320,"date":"2012-01-06T01:07:54","date_gmt":"2012-01-06T01:07:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/bns-body-classes\/"},"modified":"2016-04-10T17:51:52","modified_gmt":"2016-04-10T17:51:52","slug":"bns-body-classes","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/bns-body-classes\/","author":914362,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9","stable_tag":"0.9","tested":"4.5.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"BNS Body Classes","header_author":"Edward Caissie","header_description":"","assets_banners_color":"","last_updated":"2016-04-10 17:51:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/buynowshop.com\/","header_plugin_uri":"http:\/\/buynowshop.com\/plugins\/bns-body-classes\/","header_author_uri":"http:\/\/edwardcaissie.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3502,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Please stay current with your WordPress installation, your active theme, and your plugins.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.2.1","0.2.2","0.3","0.4","0.5","0.5.1","0.5.2","0.6","0.7","0.7.1","0.8","0.9"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2858,356,13422,13421,13423],"plugin_category":[40],"plugin_contributors":[80960],"plugin_business_model":[],"class_list":["post-16320","plugin","type-plugin","status-publish","hentry","plugin_tags-body","plugin_tags-css","plugin_tags-holidays","plugin_tags-plugin-only","plugin_tags-seasonal","plugin_category-calendar-and-events","plugin_contributors-cais","plugin_committers-cais"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bns-body-classes.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Simple plugin that adds classes to the <code>body_class<\/code> output upon activation, including: a full list of date related classes; a few holiday classes; and, a generic sample full calendar extension.<\/p>\n\n<h4>Copyright 2012-2015  Edward Caissie  (email : edward.caissie@gmail.com)<\/h4>\n\n<p>This program is free software; you can redistribute it and\/or modify\n  it under the terms of the GNU General Public License version 2,\n  as published by the Free Software Foundation.<\/p>\n\n<p>You may NOT assume that you can use any other version of the GPL.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\n  but WITHOUT ANY WARRANTY; without even the implied warranty of\n  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  GNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\n  along with this program; if not, write to the Free Software\n  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<\/p>\n\n<p>The license for this software can also likely be found here:\n  http:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Go to the \"Plugins\" menu in the Administration Panels (\"dashboard\").<\/li>\n<li>Click the 'Add New' link.<\/li>\n<li>Click the \"Upload\" link.<\/li>\n<li>Browse for the bns-body-classes.zip file on your computer; upload; and, install accordingly.<\/li>\n<li>Activate.<\/li>\n<\/ol>\n\n<p>-- or -<\/p>\n\n<ol>\n<li>Go to the \"Plugins\" menu in the Administration Panels (\"dashboard\").<\/li>\n<li>Click the 'Add New' link.<\/li>\n<li>Search for BNS Body Classes.<\/li>\n<li>Install.<\/li>\n<li>Activate.<\/li>\n<\/ol>\n\n<p>Please read this article for further assistance: http:\/\/wpfirstaid.com\/2009\/12\/plugin-installation\/<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>What are the \"Current Date\" classes?<\/dt>\n<dd><p>The \"Current Date\" classes are a collection of classes dynamically created classes relevant to the date the reader lands\non the site. These classes would include on December 1, 2012 at 5:00pm (GMT-5) the following:<\/p>\n\n<ul>\n<li>year-2012<\/li>\n<li>leap-year<\/li>\n<li>month-12<\/li>\n<li>month-dec<\/li>\n<li>month-december<\/li>\n<li>day-01<\/li>\n<li>day-sat<\/li>\n<li>day-saturday<\/li>\n<li>hour-22<\/li>\n<li>hour-10pm<\/li>\n<\/ul><\/dd>\n<dt>How do I activate the calendar extension?<\/dt>\n<dd><p>Included with the package is the file named 'bnsbc-calendar-sample.php'; simply rename this file to 'bnsbc-calendar.php', then edit it to add your own date-specific classes.<\/p>\n\n<p>As the specifically named file 'bnsbc-calendar.php' is not included with the standard plugin package it should survive any automatic updates via the WordPress Administration Panels.\nJust in case, it is recommended to keep a backup of your custom calendar in case it is lost from your site for whatever reason.<\/p>\n\n<p>This file should also be saved under \/wp-content\/bns-customs\/ as the safest update location.<\/p><\/dd>\n<dt>How do I add a new class in the calendar extension?<\/dt>\n<dd><p>After changing the sample file to 'bnsbc-calendar.php' simple find the date you want to add the class to and amend that line.<\/p>\n\n<p>For example, to add a class for the Ides of March you would edit the March 15 entry and add an appropriate class such as:<\/p>\n\n<ul>\n<li>near line 138: if ( '15' == date( 'd' ) ) { $dates .= ''; } would change to if ( '15' == date( 'd' ) ) { $dates .= ' ides-of-march'; }<\/li>\n<\/ul>\n\n<p>NB: Remember to use \"safe\" characters for class names; and, add a single preceding space to eliminate the risk of classes running together.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9<\/h4>\n\n<ul>\n<li>Released November 2015<\/li>\n<li>Updates to compatible WordPress version<\/li>\n<li>Updates to include 2016 calendars<\/li>\n<li>Removal of 2014 Calendars<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Released December 2014<\/li>\n<li>Added paths to <code>\/bns-content\/<\/code> for customizations<\/li>\n<li>Added update safe location for custom calendars<\/li>\n<li>Changed Text Domain from <code>bns-bc<\/code> to <code>bns-body-classes<\/code><\/li>\n<li>Removed 2013 calendars and references<\/li>\n<li>Updated <code>readme.txt<\/code> to reference update safe location\/folder<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Released May 2014<\/li>\n<li>Update version compatibility<\/li>\n<li>Update copyright years<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Released December 2013<\/li>\n<li>Code Reformatting to be more consistent with WordPress Coding Standards (see https:\/\/gist.github.com\/Cais\/8023722)<\/li>\n<li>Updated <code>readme.txt<\/code> FAQ with a reminder to keep a back-up of any custom 'bnsbc-calendar.php' file(s)<\/li>\n<li>Added 2015 Calendars and updated Muslim 2014 calendar<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Released July 2013<\/li>\n<li>Added Muslim calendars for 2013 and 2014<\/li>\n<li>Added conditional check to only add if there are actual dates being recognized<\/li>\n<li>Refactored option function calls into their own function to prepare for future options<\/li>\n<\/ul>\n\n<h4>0.5.2<\/h4>\n\n<ul>\n<li>Released April 2013<\/li>\n<li>Added $classes parameter in calendars to be able to append new date classes<\/li>\n<\/ul>\n\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Released April 2013<\/li>\n<li>Fixed wrong function being called by action hook<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Released April 2013<\/li>\n<li>Added additional related tags to header block<\/li>\n<li>Added Christian Calendars for the years 2013 and 2014<\/li>\n<li>Added Jewish Calendars for the years 2013 and 2014<\/li>\n<li>Code formatting and code block termination comments<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Released December 2012<\/li>\n<li>Added conditional check on <code>option_classes<\/code><\/li>\n<li>Added generic (sample) calendar extension<\/li>\n<li>Added more common dates: Valentine's Day, St. Patrick's Day, April Fool's Day, Halloween, Remembrance Day<\/li>\n<li>i18n updates<\/li>\n<li>Prepared for extension plugins<\/li>\n<li>Refactored options to more appropriate naming conventions<\/li>\n<li>Updated descriptions and FAQ to reflect new features<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Released December 2012<\/li>\n<li>Add \"Current Date\" classes<\/li>\n<li>Add \"Holidays\" classes (Christmas and New Years)<\/li>\n<li>Refactored main plugin file to OOP code format<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Tested compatible with WordPress 3.4<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Corrected issue with initial empty array being fed to the <code>implode<\/code> function<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Add options page to include custom classes<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release - January 2012<\/li>\n<\/ul>","raw_excerpt":"Simple plugin that adds classes to the body_class output upon activation, including a range of date related classes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16320"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cais"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16320"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16320"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16320"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16320"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16320"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}