Closed (fixed)
Project:
HTML5 Base
Component:
Markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2010 at 21:33 UTC
Updated:
19 Oct 2010 at 03:20 UTC
Jump to comment: Most recent file
Modernizr.js does the work of the HTML5 shiv for IE, so we only need it if the user doesn't use Modernizr.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | shiv-only-when-needed-2.patch | 734 bytes | alanburke |
| shiv-only-when-needed.patch | 730 bytes | alanburke |
Comments
Comment #1
alanburke commentedClarified title
Comment #2
ericduran commentedWe should use phptemplate if statements style.
So instead of
it should be
Comment #3
alanburke commentedHmm, Coding standards say otherwise?
http://drupal.org/coding-standards#controlstruct
Patch with other style attached anyway :-)
Comment #4
tim.plunkettericduran is right, phptemplate does generally use the alternate syntax.
alanburke raises a good point about the documentation. The coding standards are for straight PHP files, and I don't know if the phptemplate differences are documented.
Comment #5
ericduran commentedYeah, the coding standard are for the modules/php files.
Phptemplate files usually use the alternate syntax. I swear I've seen this documented before but I did a quick search and couldn't find anything. But yes the alternate syntax is the correct way for template files. This is excluding the template.php file as that's an actual php file.
Comment #6
mason@thecodingdesigner.com commentedAs much as I prefer the standar php if syntax, all the themes I've worked on or inherited use the alternate syntax.
I've committed the change.
Comment #7
alanburke commentedComment #8
alanburke commentedCommit credits.
Any chance of including names on commit credits?
I suspect certifiedtorock examines these for usernames when calculating it's ratings.
Comment #9
mason@thecodingdesigner.com commentedI certainly don't mind doing that. Do you know if I have to do anything special? Or just credit folks in the commit message?
Comment #10
tim.plunkettThere are instructions here.
Comment #11
mason@thecodingdesigner.com commentedthanks, Tim