This is very minor since most sites have side bars. There's a $layout variable initially set from phptemplate.engine inside phptemplate_page().
It's set for indicating the layout based on the presence of side block regions. Garland and a handful of other themes use this for setting classes and changing layouts.
If no sidebars are present, the variable will not be set.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | phptemplate_7.patch | 992 bytes | drumm |
| #2 | layout_var1.patch | 721 bytes | dvessel |
| layout_var.patch | 508 bytes | dvessel |
Comments
Comment #1
drummInstead, we could initialize the variable to 'none' above
and avoid having an if statement.
Comment #2
dvessel commentedDone.
Comment #3
drummRerolled from Drupal's root directory and changing nearby comment style.
Comment #4
dries commentedCommitted to CVS HEAD.
Comment #5
drummCommitted to 5
Comment #6
(not verified) commented