[EventCalendar] Problem with ec3_the_schedule / start and
end-date is equal, but time is not - missing space
Alex Tingle
alex at firetree.net
Wed Dec 6 08:41:34 UTC 2006
Hi Torsten,
On 6 Dec 2006, at 01:44, Torsten Landsiedel wrote:
> Hello Alex!
>
> I am using this call in my template for showing the event date and
> time:
> <?php ec3_the_schedule('%s ', '%1$s %3$s %2$s', '<b>%s</b>'); ?>
>
> I have to use this space after the %s, because if I have an event
> on one day for which I have set a start time and end time there is
> no space between the date and the time! So I have to use this
> little workaround.
>
> Look here for an example:
> http://www.lag-film-sh.de/cms/2006/10/25/videofilmfest-2006-2/
>
> EC3 uses the same format for the time and the date. So how I can
> achieve this:
> "25. November 2006 - 19:30 bis 22:30"
>
> With this call:
> <?php ec3_the_schedule('%s - ', '%1$s %3$s %2$s', '<b>%s</b>'); ?>
> there are problem if I have a just one day-event:
> "1. November 2006 -"
>
> Maybe it is better to use more parameters. One for the date-
> formatting and one for the time-formatting?
> For example: date_single, date_range, time_single, time_range, wrapper
>
> Or has anyone an idea on how to solve my "problem"?
Yes, the parameters to ec3_the_schedule() are not very well thought
out. Sorry about that.
I use this... ec3_get_schedule('%s; ',"%1\$s %3\$s %2\$s. ",'[ %s] ')
Your alternative is to write your own version of the function. Just
take my version and change it to do what you want.
-Alex
More information about the EventCalendar
mailing list