[geeklog-devel] The Mysterious Case of the Double Blocks (was 1.5.1 - what's left to do?)

Michael Jervis mjervis at gmail.com
Sat Aug 16 15:33:37 EDT 2008


>>Changed the templates to left-blockheader and right-blockheader and
>>changed COM_getBlockTemplate to look and see if there is a
>>$side_[template] and if so switch to it?
>
> Why move the $side to the front in the filename?

Because then you can do $side . '_' . $template instead of messing
around trimming and appending .thtml and checking for trailing
left/rights.

> Keep in mind that this function is also used for blocks that are not on
> either side, e.g. the system messages. Maybe there's also a more generic
> use for the new parameter (so that it shouldn't be called "side")?

I had considered support for centre actually (but not center ;-)) so
yeah position might be more correct.

Mike



More information about the geeklog-devel mailing list