Closed (fixed)
Project:
HTML5 Base
Component:
template.php
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2010 at 02:45 UTC
Updated:
15 Oct 2010 at 03:50 UTC
Jump to comment: Most recent file
The default settings value was looking for html_* and the default values are set with html5_*
I also change some of the defaults. I don't think modernizr should be enabled by default as it's not packages with the theme.
Patched attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | settings.patch | 6.46 KB | ericduran |
| #1 | settings.patch | 3.72 KB | ericduran |
Comments
Comment #1
ericduran commenteduploading patch.
Comment #2
ericduran commentedUpdated patch.
This patch adds a proper link to the Modernizr website and it also removes all the ":" from the t function as I don't think that should be included in the translation.
Comment #3
ericduran commentedI just tought of a couple of things.
- We would probably want to add some kind of check when selecting to use Modernizr, and maybe more helpful instruction for setting it up correctly.
- If we're not packaging it up in the theme also think we should have it be included in Libraries and /sites/all/themes/html5_base/js/.
- Also I just notice the instruction are static and they shouldn't be, in some cases the themes might live in sites/defaults/themes or any number of directories. (this can be fixed by using libraries, or by just using a different set of instructions.)
Comment #4
ericduran commentedchanging status after my post.
Comment #5
alanburke commentedWe could use hook_requirements to check for the js file,
if this were a module.
I already posted some drush integration in #915884: Drush Integration to download Modernizr js,
and that had to live in the HTML5 tools module.
Comment #6
ericduran commentedhmmm, I can't really create a patch right now but we can implement the check on the checkbox using an element validate callback function for the use modernizr checkbox. Then it can error out if the use modernizr checkbox is check and the file isn't included, we can also provided a link in the error message.
Comment #7
mason@thecodingdesigner.com commented@ericduran: I just committed these changes and a few more to the theme-settings.php and .info files. I'm curious to see what we can to to make modernizr work as a default setting. Not sure I follow how you outline it to work tho. Care to elaborate or write a patch?
Comment #8
mason@thecodingdesigner.com commentedComment #9
ericduran commented@canaryMason, Yea, I was just rambling before lol. But I'll write a patch to validate if Modernizr is available before enabling the option.
But that's actually a separate issue and this issue can be consider fixed. :)