CVS edit link for robbdavis

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.

CommentFileSizeAuthor
#15 html5theme.zip99.3 KBrobbdavis
#1 html5theme.zip130.57 KBrobbdavis

Comments

robbdavis’s picture

StatusFileSize
new130.57 KB

This 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.

robbdavis’s picture

Status: Postponed (maintainer needs more info) » Needs review
avpaderno’s picture

Status: Needs review » Needs work
Issue tags: +Theme review

Hello, 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?

robbdavis’s picture

HTML5 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/

robbdavis’s picture

Whoops... forgot that html would be edited out. The main menu is encased in --nav-- tags instead of --div id="nav"/-- tags.

avpaderno’s picture

The 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.

robbdavis’s picture

Thanks for pointing that out.

I hard coded the doc type into page.tpl.php as follows :

<!DOCTYPE html>
<html lang="en-GB">

This passed validation with no problems:
http://validator.w3.org/check?uri=http%3A%2F%2Fhtml5theme.robbdavis.com%2F

avpaderno’s picture

Status: Needs work » Needs review
robbdavis’s picture

So what happens now? Do we just wait until someone reviews this?

robbdavis’s picture

Nudge.

ipwa’s picture

Code review with coder module set on normal:

email-validator.php
Line -1: Include the CVS keyword $Id$ in each file. This should be in the format // $Id$ or // $Id$ <a href="http://drupal.org/coding-standards">Drupal Docs</a>
Line -1: @file block missing <a href="http://drupal.org/node/1354#files">Drupal Docs</a>
Line 43: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 45: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 54: missing space after comma
Line 55: missing space after comma
Line 59: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 61: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 66: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 71: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 75: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 89: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 103: missing space after comma
Line 104: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 107: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 118: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 123: missing space after comma
Line 126: missing space after comma
Line 127: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 128: else statements should begin on a new line
Line 131: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 136: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 140: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 144: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 148: the final ?> should be omitted from all code files
Line 158: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
Line 159: else statements should begin on a new line
Line 160: Use uppercase for PHP constants, e.g. NULL, TRUE, FALSE
block.tpl.php & node.tpl.php & template.php
Line -1: Include the CVS keyword $Id$ in each file. This should be in the format // $Id$ or // $Id$ (<a href="http://drupal.org/coding-standards">Drupal Docs</a>)
Line -1: @file block missing (<a href="http://drupal.org/node/1354#files">Drupal Docs</a>)
page.tpl.php
Line -1: Include the CVS keyword $Id$ in each file. This should be in the format // $Id$ or // $Id$ (<a href="http://drupal.org/coding-standards">Drupal Docs</a>)
Line -1: @file block missing (<a href="http://drupal.org/node/1354#files">Drupal Docs</a>)
Line 39: missing space after comma

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.

avpaderno’s picture

Status: Needs review » Needs work
ipwa’s picture

By the way "Line -1: @file block missing" I don't think is applicable because I rarely see this on a contrib theme.

robbdavis’s picture

Thanks for the review... I'll finally get to work on this today and will repost the files ASAP.

robbdavis’s picture

Status: Needs work » Needs review
StatusFileSize
new99.3 KB

I 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.

sreynen’s picture

Status: Needs review » Needs work

As 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."

avpaderno’s picture

As reported in Drupal Contributions Repository - Terms of services

All content submitted to the repository is automatically assumed to be licensed
under the GNU/GPL. Any content that is not licensed under the GNU/GPL should
not be added to the repository and when found it will be removed by the owner.

robbdavis’s picture

Thanks 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.

robbdavis’s picture

Status: Needs work » Needs review

Hi! 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"?

avpaderno’s picture

Status: Needs review » Needs work

This license is compatible with the GNU so it should not be a problem bundling it with the theme.

As reported from the requirements and http://drupal.org/node/539608, license compatible with GPL License are not accepted in drupal.org.

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.

I would suggest to make a note about that in the README.txt file, to avoid somebody report that once the project is created.

avpaderno’s picture

Status: Needs work » Closed (won't fix)

I am closing this issue due to lack of replies.

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes

Please 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:

This project is not covered by Drupal’s security advisory policy.