Add variable checks to node.tpl.php
incrn8 - October 27, 2009 - 00:14
| Project: | Omega |
| Version: | 6.x-1.0-alpha4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | himerus |
| Status: | closed |
| Issue tags: | alpha5 |
Jump to:
Description
Some wrapper HTML for variables in node.tpl.php always appear, even if the variable is empty. I added in some checks to hide the wrapper HTML if the variables are empty. Patch is against alpha4.
| Attachment | Size |
|---|---|
| omega-node.tpl_.patch | 739 bytes |

#1
Good call on this one.
I am for the first time playing with the node.tpl.php in a sub-theme I'm working on, and noticed this stuff too tonight. I will commit this along with another issue I just posted where the preprocess_node was not being called properly from some of the original code from the Studio theme being used to implement the preprocess functionality.
#2
will be released in alpha5
#3
Automatically closed -- issue fixed for 2 weeks with no activity.