1
Hi All,
I am in the process of trying to get my site to validate as xhtml transitional, I think my theme is fine but I am having trouble with the extcal_block_minical.html template.
When i run the validator I get a lot of end tag for 'a' omitted errors but when I look at the source of the page using firebug I can see that table cells with events (the date is a link) are fine and the closing </a> does not appear to be missing.
I think the problem stems from this piece of code:
<a href="<{$xoops_url}>/modules/extcal/day.php?year=<{$weeks.weekInfo.year}>&month=<{$weeks.weekInfo.month}>&day=<{$day.number}>"><{/if}><{$day.number}>
<{if $day.isEvent}></a>
and more specifically the smarty tag <{if $day.isEvent}>, by the looks of it the code is saying if the day is an event then close the a tag, looking at the rest of the code I cant seem to work out what the smarty tag does, however removing it and the closing if or putting the tag after the closing </a> seems to break the layout of the table and strethches the table cells.
It seems as if the smarty tag is causing the closing </a> to not show to the validator but I can see it in the source code. Take a look for yourself at
www.whitlawburncrc.org.uk run the homepage through the markup validator.
Does anyone know of a solution to fix this problem or know what that smarty tag is for and a way to remove it without breaking the entire layout?
Thanks