Allowing the $attribute array for static and label elements.
Fixing PHP warning.
Fixing agenda view.