Need help outputting data (while making it easy to skin)
I'm curious how you guys code your scripts/programs so it is easy to skin down the line? I was making a script today but I realized the way I was outputting all my code was an absolutely horrible way since I'm hoping to release this for free (or paid) if it ever gets to that point.
I'm a huge fan of the way wordpress does it, but I couldn't seem to get it working like how they have it such as:
// have customized output code
I couldn't do that, because I wasn't sure what the_post() should be outputting, and how I pass the variable in the while statement so I can list all the info (like if I output an array from the_post() and just use $aArrayVar['row']), but I couldn't get that to work either.
I'm mostly curious if anyone here has a script they release for free or for a fee, and wouldn't mind sending me an example page of code or two so I can see how it is done (OOP would be best since that's what I plan on coding it with).