I noticed Tao uses too little of these functions. According to http://drupal.org/node/254940#html-class-variable and http://drupal.org/node/254940#html-attributes-variable, we should ensure that these variables are printed correctly within all overridden template files.
They are always defined, since they get at least an empty string from template_process, so no need to check if variable exists. They should be printed directly next to what precedes it in the template, with no leading space.
As a bonus, I tried to set keep any coding styles within template.php and the tpl.php files. This means html will always output " (doublequotes) around attributes and have as little ; (semicolon) in php snippets as possible.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | tao-fix-block-ideas.patch | 1.17 KB | haydeniv |
| #5 | 1422958-05-tao-use-chasses-and-attributes-flattening.patch | 12.33 KB | haydeniv |
Comments
Comment #1
barrapontoComment #2
barrapontoComment #3
haydeniv commentedHi barraponto, this does not apply anymore. Can you re-roll. I'd really like to get a stable release of Tao out soon.
Thanks!
Comment #4
haydeniv commentedHere is a re-roll with a couple extra double quotes that were missed and leaving in the end of line semi-colons.
Comment #5
haydeniv commentedSmall fix for undefined variable in fieldset template.
Comment #6
haydeniv commentedCommitted: 13581aa
Comment #8
rolando.alevelbeyond commentedthis just messed up the whole block naming system.. after this change (i think it was this change) blocks no longer have individual IDs, so there's no way to target them with CSS which is probably a must have for any coder out there..
i reverted the object.tpl to a old version i had of tao and it worked perfectly..
Comment #9
rolando.alevelbeyond commentedi reviewed the patch.. the issue with my installation (drupal 7.26 and no other modules except admin menu) is that "$vars['hook']" is coming out empty.. so all my blocks are set as "-title" so obviously can't do anything with that.. not sure why $vars['hook'] is coming out empty..
Comment #10
haydeniv commentedTry this patch and see if it fixes your problem.
Comment #11
haydeniv commentedI just committed this (8e9ddbb) to the -dev version in case you have problems with applying patches.
Please test the latest -dev version and let me know if it resolves the problem. Thanks!
Comment #12
haydeniv commented