Ah ha! (It works now)

I got around to cleaning up my SiteFrame class the other night. I use it every day and love it, but it was becoming more and more apparent to me that it needed some cleaning.

A few things didn’t work as they should and some of the instructions on use in the index.php page included in all of the downloadable versions of this plugin were slightly off.

I also used this as a moment to bring together the php4 & php5 versions. I would recommend using the php5 version, I like it better from a code/structural viewpoint, but I understand if you want or need to use the php4 version. Both end up outputting the same thing.

While I was mushing code around in there I…

  • made the Doctype output functions work a little more effectively
  • added the ability to specify a string that gets shoved into an onload=”” in the body tag (I’ve needed this on multiple occasions)
  • cleaned up code relating to changes in tag closing between html 4 and xhtml. (Now it’s determining the code closing using a function and not the same code rewritten multiple times…ick!)

Here’s those downloads in your choice of archive and version from the links here (same links as before):

Check them out. Let me know what you like, what you don’t, and what I could add.

 
Blog comments powered by Disqus