It is fairly difficult to explain without visuals, but for the sake of keeping things simple.. the php code posted is part of a template, I am converting the template to a CMS (believe that's the term) and want to keep it to just one echo per template in the CMS. I have all ideas I will need to create three seperate templates, I guess my only concern is how to write the php file to set it up to evaluate the templates and use the condition.
for( $x=0; $x < $itemnum; $x++ ) {
I'm looking for something like this to write to the php file.
-- condition {
-- evaluate echo_2 }
I will gladly continue to clearify with visuals, etc. if I'm not explaining myself well enough.