Simple plugin that adds classes to the `body_class` output upon activation, including a range of date related classes.
= What are the "Current Date" classes? The "Current Date" classes are a collection of classes dynamically created classes relevant to the date the reader lands on the site. These classes would include on December 1, 2012 at 5:00pm (GMT-5) the following:
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.
As the specifically named file 'bnsbc-calendar.php' is not included with the standard plugin package it will survive any automatic updates via the WordPress Administration Panels.
After changing the sample file to 'bnsbc-calendar.php' simple find the date you want to add the class to and amend that line.
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:
NB: Remember to use "safe" characters for class names; and, add a single preceding space to eliminate the risk of classes running together.
Requires: 3.0 or higher
Compatible up to: 3.6
Last Updated: 2013-4-9
Downloads: 424
Got something to say? Need help?