Drupal 6.x port for "Golden Hour" Theme

rmurphy00 - September 10, 2008 - 23:24
Project:Golden Hour
Version:5.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Hey,

Are there any plans to port this beautiful theme to Drupal 6.x?

-ray murphy

#1

jwolf - October 1, 2008 - 02:54

I have no plans to port Golden Hour to D6.
If you (or anyone) submit an update / patch for D6 I will review it and post a D6 version.

#2

jwolf - October 17, 2008 - 09:32
Status:active» won't fix

#3

rfay - February 17, 2009 - 13:06
Status:won't fix» needs review

Here is a patch to take Golden_hour from 2.2 to Drupal6. It works OK in my environment, and I've deployed a subtheme of it in production.

I've attached both a patch against 2.2 and a full version of the module.

Thanks for creating this in the first place! It has served me well.
-Randy

Update 2/17/09: See revised patch later in this thread

AttachmentSize
golden_hour2.2_to_d6.patch 4.86 KB
golden_hour_d6.tgz 86.06 KB

#4

andzs - February 12, 2009 - 13:20

I tried out theme from golden_hour_d6.tgz archive. In my Drupal 6 setup clicking on menu and Read More Links throws an error "warning: preg_match() expects parameter 2 to be string, array given in C:\xampplite\htdocs\includes\bootstrap.inc on line 761."

#5

rfay - February 14, 2009 - 17:52

@andzs - I'll be happy to work on your problem, but I don't completely understand it yet, and was not able to re-create it based on what i understood.

Are you saying that when you click on the "read more" link in a teaser list, that you get the error you saw? You say "clicking on menu and read more links", but I can't figure out your path.

Please post with more details about your issue. You may also contact me directly by email here.

#6

rfay - February 17, 2009 - 13:04

Here is the revised version of Golden Hour for Drupal 6 with the problem reported by andzs fixed. It was just a silly porting issue with the l() function.

AttachmentSize
golden_hour_d6.r2.tgz 86.07 KB

#7

andzs - February 17, 2009 - 13:24
Status:needs review» reviewed & tested by the community

Problem fixed.

#8

peterx - February 24, 2009 - 10:33

I tested the revised version at http://d-theme.com/golden_hour. There is one thing to fix to achieve XHTML 1.0 Strict validation.
The following line contains a style attribute and the default style sheet language is not specified. The best approach is to put this width into a class and use the class in this line.
<div id="content" style="width: 72%;">

There is also a weird backtick at the end of the description in the .info file.

style.css produced the following validation errors.
199 Parse Error ----------node styles----------*/ .node { margin:0; padding:0; }
253 Parse Error ----------page styles----------*/ .page { margin:0; padding:0; }

icons.css produced the following validation error.
35 .comment .title Value Error : background-position middle is not a background-position value : 3px middle

With these items fixed, the theme will pass WCAG AA and some other tests.

#9

rfay - March 30, 2009 - 03:04

This version of golden_hour validates as XHTML 1.0 Strict, and the CSS validates also. Let's get this committed!

AttachmentSize
golden_hour.v3-validates.tgz 85.48 KB

#10

jwolf - April 19, 2009 - 08:18
Status:reviewed & tested by the community» needs work

@rfay - I looked over your update and here are some issues that need addressing:

  • Drupal 6 themes now specify regions w/in the theme's .info file. You still have regions defined in template.php
  • function golden_hour_get_primaryContent_width is totally unnecessary - this can be achieved with body classes & CSS
  • function golden_hour_links will probably break certain modules like the Services Links module
  • function golden_hour_menu_links is not needed anymore
  • Icons can not be packaged with theme - the icons are not GPL and should be removed from the Drupal CVS repo
  • What is contentpage.tpl.php ?
  • What is <div id="forsimplemenu"></div> ?
 
 

Drupal is a registered trademark of Dries Buytaert.