[EventCalendar] Returning current view in calendar
Alex Tingle
alex at firetree.net
Mon Apr 9 21:05:56 UTC 2007
Hi Jay,
Look at function ec3_filter_posts_where() in eventcalendar3.php. There
is a global object called $ec3 - all of the parameters are member
variables.
You might also need to look at the WP global $wp_query.
-Alex
--
On Mon, 9 Apr 2007 09:38:31 -0500
"Jay Packer" <toxostoma at hotmail.com> wrote:
> Hi, I'm trying to implement the event calendar in Wordpress which I'm using
> as a CMS (not just a standard blog).
>
>
>
> I'm trying to figure out how to write a little PHP code that can tell me
> where I am (what dates I'm viewing) within the calendar.
>
>
>
> In pseudocode, I'm essentially wanting to do this:
>
>
>
> if (we're looking at an entire month) {
>
> print 'Calendar - Events in April 2007'
>
> } else if (we're looking at a specific day) {
>
> print 'Calendar - Events on April 3, 2007
>
> } else {
>
> print 'Calendar - Upcoming Events
>
> }
>
>
>
> There are probably other things I'll want to do with this besides just
> printing out the date, but first I've got to know how to figure out where I
> am. I thought about analyze the query string that gets pass through to the
> calendar, but it didn't seem to be consistent and I wasn't sure about the
> best way to achieve this.
>
>
>
> Can anyone provide any insight?
>
>
>
> Thanks.
>
>
>
> Jay
>
>
>
>
>
>
>
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
More information about the EventCalendar
mailing list