Working on a porting a few open/free html themes to drupal and wanted to share them with the community.
First theme ported is this one: http://html5theme.robbdavis.com/. I'll probably work on a few more in the coming weeks as I work on improving my theming skills.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | html5theme.zip | 99.3 KB | robbdavis |
| #1 | html5theme.zip | 130.57 KB | robbdavis |
Comments
Comment #1
robbdavis commentedThis is a port of the following theme: http://www.csstemplatesfree.org/templates/HTML5CSS3/index.html#
The only functionality I haven't added is the drop down menus. I will likely add these sometime in the next few weeks.
Comment #2
robbdavis commentedComment #3
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module/theme; for modules it should include also a comparison with the existing solutions, while for themes a screenshot is also required.
Does the theme output HTML 5 tags?
Comment #4
robbdavis commentedHTML5 is a two column pure css theme that is probably best for blogs.
It uses HTML 5 and CSS3. For example, the main menu is encased in -nav- tags instead of -div id="nav"- tags. This makes so much more sense and makes it much easier to find elements in the code.
The theme also embeds the "Chunkfive" font using @fontface in the css.
Theme will look best in safari, chrome, or firefox.
This theme was originally developed by http://jayj.dk/a-free-html5-and-css3-theme/
You can view a demo of the ported to drupal theme here: http://html5theme.robbdavis.com/
Comment #5
robbdavis commentedWhoops... forgot that html would be edited out. The main menu is encased in --nav-- tags instead of --div id="nav"/-- tags.
Comment #6
avpadernoThe theme doesn't pass the W3C validation. That is the result of the validation when set the document type to HTML5; if I let the validator detect the documentation type, I get this result.
The difference is that Drupal output is XHTML 1.0 transitional, which is not compatible with HTML 5.
Comment #7
robbdavis commentedThanks for pointing that out.
I hard coded the doc type into page.tpl.php as follows :
This passed validation with no problems:
http://validator.w3.org/check?uri=http%3A%2F%2Fhtml5theme.robbdavis.com%2F
Comment #8
avpadernoComment #9
robbdavis commentedSo what happens now? Do we just wait until someone reviews this?
Comment #10
robbdavis commentedNudge.
Comment #11
ipwa commentedCode review with coder module set on normal:
I think most of that should be quick to fix, but in all fairness there's some themes in contrib that don't follow strict Drupal coding standards, so I would approve this application, would love to see this theme in contrib.
Comment #12
avpadernoComment #13
ipwa commentedBy the way "Line -1: @file block missing" I don't think is applicable because I rarely see this on a contrib theme.
Comment #14
robbdavis commentedThanks for the review... I'll finally get to work on this today and will repost the files ASAP.
Comment #15
robbdavis commentedI have re-uploaded the files with the following changes:
-removed email-validator.php
-added $Id: to all files
I did not add the @file block per ipwa's comment above. I also checked the garland core theme and it did not have any @file blocks.
Everything seems to be in order and working well.
Let me know if there are any more changes that are required.
Thanks,
Robb.
Comment #16
sreynen commentedAs much as I'd love to see more HTML5 in Drupal, this has some issues...
I'm not sure, but I don't think you can include that font on Drupal's CVS, since it has a non-GPL license. You could include instructions to download it, but I suspect that may be too much work for most people wanting to use a contrib theme. I'd suggest either finding a suitable replacement already on a hosted font service (e.g. Google), or finding a reliable host and pointing to that by URL.
The images and stylesheet appear to come from here, which has an informal "use this for whatever projects you want" kind of release, but no formal license, and an explicit statement of "You're not allowed to upload the theme elsewhere for download" which uploading to Drupal.org seems to violate. I'm not sure if this counts as a 3rd party "library" or if it presents legal or GPL-compatibility issues for hosting on Drupal.org but it seems questionable enough to figure it out before approving this application.
Also, assuming the licensing issues can be dealt with (though I'm not very confident they can), you'll probably need to come up with a new name for this, as there's already a module named "HTML5" and naming conflicts can happen between modules and themes. While "html5" may seem somewhat descriptive right now, you might consider that it will some day be only slightly less vague than naming the theme "theme."
Comment #17
avpadernoAs reported in Drupal Contributions Repository - Terms of services
Comment #18
robbdavis commentedThanks for the feed back re: the licensing and theme name.
I will try to contact the original creator and see if he will license it under gpl and allow it to be ported to a drupal theme and hosted on the drupal server. If he does not agree, then I guess this theme is dead. If he does agree, I will replace the font with something from googles font service. I will also change the name to HT-five or something.
Comment #19
robbdavis commentedHi! Sorry for the delay in getting back to this... I blame summer.
So the original developer of this theme has agreed in writing (well, technically in typing) to allow it to be released on drupal with a GNU license. This is the correspondence:
Hello Robb,
I'm totally fine with that (:
I'm actually working a bit on a update to the theme, but I'm on holiday right now, so it'll take some weeks before that's done. It's just some small HTML and CSS improvements, so you properly won't wait on that.
Sincerely,
Jesper
http://jayj.dk
On Tue 20/07/10 20:51 , Robb wrote:
> Fra: Robb
> Emne: Besked på Jayj.dk
>
> Besked:
> Hi Jay,
>
> I recently ported your html5 theme for use on the Drupal content
> management system. I would like to share this theme with the Drupal
> community and make it available for download from www.drupal.org [1].
>
> You would get all credit and be listed as the originator of this theme.
> The download page would link back to your website. I would maintain this
> theme for Drupal so it would require nothing from you other than your
> permission.
>
> Would it be OK to share your theme in this way? If yes, I would add a GPL
> (http://en.wikipedia.org/wiki/GNU_General_Public_License) [2] file as this
> is a requirement for sharing on Drupal.
>
> Thanks again for making this theme available and please let me know your
> thoughts about sharing it on Drupal.
>
> Sincerely,
>
> Robb Davis
So, that's cool. There are so many free good free themes out there and this makes me wonder how many could be ported to drupal with a GNU license if we just asked?
Regarding the Chunkfive font. This is a free font released under the Open Font License. This license is compatible with the GNU so it should not be a problem bundling it with the theme. Indeed, with @fontface in CSS destined to become way more common, bundling a font with a theme is also going to be common place. This is a problem if we adhere to a strict (and unnecessary) GNU only policy because most free fonts will never be licensed using GNU. If a font is released using GNU then any document the font is used in must also be released under GNU.
Finally, I don't really care what the name of this theme is but it would be good to keep it close to the orginal how about "html5-theme"?
Comment #20
avpadernoAs reported from the requirements and http://drupal.org/node/539608, license compatible with GPL License are not accepted in drupal.org.
I would suggest to make a note about that in the README.txt file, to avoid somebody report that once the project is created.
Comment #21
avpadernoI am closing this issue due to lack of replies.
Comment #22
avpadernoPlease read the following links as this is very important information about CVS applications.
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for these applications. Please read Migrating from CVS Applications to (Git) Full Project Applications and Applying for permission to opt into security advisory coverage on how this affects and benefits you and the application process. In short, every user has now the permissions necessary to create new projects, but they need to apply for opt into security advisory coverage. Without applying, the projects will have a warning on projects that says: