[EventCalendar] validation problem

Vicki Frei vkaryl at findsouthernutah.com
Mon Jan 8 23:39:23 UTC 2007


Hello - I'm using Event Calendar 3 on a site I just migrated to WP.  The
plugin is easy to use and quite functional.  While trying to validate
the site, I kept getting errors relating to the table structure of the
Next/Previous nav section.

Tracked it down to a missing </td> in template-functions.php, about line
83, in this hunk of code:

/** Echos the event calendar navigation controls. */
function ec3_get_calendar_nav($date,$num_months)
{
   global $ec3;
   echo "<table class='nav'><tbody><tr>\n";

   // Previous
   $prev=$date->prev_month();
   echo "\t<td id='prev'><a id='ec3_prev' href='" . $prev->month_link()
. "'"
      . '>&laquo;&nbsp;' . $prev->month_abbrev() . "</a></td>\n";

   echo "\t<td><img id='ec3_spinner' style='display:none' src='"
      . $ec3->myfiles . "/ec_load.gif' alt='spinner' />\n";

Fixed to look like this:

/** Echos the event calendar navigation controls. */
function ec3_get_calendar_nav($date,$num_months)
{
   global $ec3;
   echo "<table class='nav'><tbody><tr>\n";

   // Previous
   $prev=$date->prev_month();
   echo "\t<td id='prev'><a id='ec3_prev' href='" . $prev->month_link()
. "'"
      . '>&laquo;&nbsp;' . $prev->month_abbrev() . "</a></td>\n";

   echo "\t<td><img id='ec3_spinner' style='display:none' src='"
      . $ec3->myfiles . "/ec_load.gif' alt='spinner' /></td>\n";

Thanks for a great plugin!

V




More information about the EventCalendar mailing list