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
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.

AttachmentSize
omega-node.tpl_.patch739 bytes

#1

himerus - October 29, 2009 - 05:06

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

himerus - October 29, 2009 - 16:59
Assigned to:Anonymous» himerus
Status:needs review» fixed

will be released in alpha5

#3

System Message - November 12, 2009 - 17:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.