Steve,
Thank you very much for these additions. This is definitely a step in the right direction.
Let me explain what I’m trying to accomplish. Since there’s no option in the admin to specify which months are to be displayed on the website, I can use css to hide the months I don’t need:
div.wp-availability-month {
display: none;
}
div.wp-availability-month.month-previous,
div.wp-availability-month.month-current,
div.wp-availability-month.month-next {
display: block;
}
Now that I’ve gotten around to actually implementing it (it works great, thank you yet again!), it has occured to me that it makes much more sense (in my particular use case) to display just the current month and several months ahead (what’s the point of showing past months?).
Perhaps you could add month-next-1 (for the month after the next one) and month-next-2 (and maybe so forth)? Perhaps you could come up with a better naming convention.
Ideally I’d expect this to be configurable through the plugin settings, as right now I’m just hiding unneeded div’s via css, but they’re still in the code; on the other hand, this is such a lightweight plugin with no bloat, and that’s good. Just a little bit more flexibility would make it perfect, imo.
While we’re at it, I have a question. It’s November now, and I have a suspicion that when it’s December soon, only one month will be displayed (as it’s the only one remaining for this year), requiring me to switch to year 2013 to be able to see availability for Jan 2012. Is that so?
I am trying to find a way to display availability for a period a few months ahead, so that, say, 3-4 concurrent months are displayed at all times — the current one plus a a few more.
That is to say, in December I would like to be able to show December 2012, Jan 2013, Feb 2013, and maybe March 2013.
Again, thank you very, very much.