fix for eventcalendar xhtml validation

The EventCalendar 3.0.1 plugin for WordPress was failing XHTML validation because of incorrect nesting of tags, so I took a look and fixed it. Here’s the patch:

--- eventcalendar3_1.php 2005-08-16 17:01:42.003399602 -0400
+++ eventcalendar3.php 2005-08-16 16:58:27.088002867 -0400
@@ -616,10 +616,11 @@
$pad=7-$col;
if($pad>1)
echo "<td colspan='$pad' class='pad' style='vertical-align:bottom'>"
- . "<a href='http://blog.firetree.net/?ec3_version=$ec3->version'"
- . " title='Event Calendar $ec3->version'"
+ . "<div class='ec3_ec'"
. ($ec3->hide_logo? " style='display:none'>": ">")
- . "<div class='ec3_ec'> </div></a></td>";
+ . "><a href='http://blog.firetree.net/?ec3_version=$ec3->version'"
+ . " title='Event Calendar $ec3->version'>"
+ . " </a></div></td>";
elseif($pad)
echo "<td colspan='$pad' class='pad'> </td>";

You can test the XHTML on my page to see it in action.

One thought on “fix for eventcalendar xhtml validation

  1. Pingback: The MikeCam » Blog Archive » matt and the mikecam save the world

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>