Formats the schedule for the current post. Returns the HTML fragment as a string. If you want to echo the result directly onto the page, then just call ec3_the_schedule()
.
Parameters
$format_single (OPTIONAL)
DEFAULT='<tr><td colspan=”3″>%s</td></tr>’
Events that only a start time (no duration) are generated using this template. %s
is a placeholder for the time.
$format_range (OPTIONAL)
DEFAULT='<tr><td class=”ec3_start”>%1$s</td>’
. ‘<td class=”ec3_to”>%3$s</td><td class=”ec3_end”>%2$s</td></tr>’
Events that have a start and end time are generated using this template. %1$s
is a placeholder for the start, and %2$s
is a placeholder for the end time. %3$s
is a placeholder for the word “to”, which may be translated if you are using a localised version of EventCalendar.
$format_wrapper (OPTIONAL)
DEFAULT='<table class=”ec3_schedule”>%s</table>’
A template for the whole result. The default generates a table, but you may prefer to have it generate a div, or leave it blank. %s
is a placeholder.
Example
This code is used to generate a plain text schedule, useful for RSS feeds.
ec3_get_schedule('%s; ','%1$s %3$s %2$s. ','[ %s] ');
[ October 21, 2006; 12:00 pm to 2:00 pm. 2:00 pm to 4:00 pm. ]