The attached patch updates SpreadFirefox to be compatible with Drupal 5 beta 1.
The list of changes are
- page.tpl.php
- Replace the theme('stylesheet_import') method with a more verbose - but working - method
- Replace module_exist with module_exists
- Use the theme('links') method to print the primary and secondary links
- style.css
- Add a definition for .main-content .node .info .taxonomy to display in-line (see node.tpl.php)
- Update the .form-item label definitions to have a hidden bottom border by default - this removes the flicker when a label is hovered over
- node.tpl.php
- Replace the span class="taxonomy" with div class="taxonomy". Having a UL inside a SPAN is not allowed, while having a UL inside a DIV is!
- nav.css
- Update various line-heights from 0.1 to 0.1em
- Append spacing after an expanded menu item -- by default the background of the sub-menu over writes part of the icon to the left. The addition of the spacing stops this. A better solution would be to have a transparent background
More work needs to be done on the administration pages to remove superfluous borders -- nothing serious.
Paddy.
| Comment | File | Size | Author |
|---|---|---|---|
| sfx_drupal5.patch | 3.93 KB | paddy_deburca |
Comments
Comment #1
paddy_deburca commentedI am not too happy with the new theme('links') method of returning the primary and secondary menus. The 'active' class is only added to the hyperlink and not the list item. This means that we can only customise the hyperlink when that part of the web site is being viewed.
The solution is to use preg_replace to replace all occurances of 'menu-1-2-3-active' with 'menu-1-2-3 active'.
The new code in template.php could be
The new css could be
This highlights the active menu item for all those compliant browsers.
Any thoughts?
Paddy.
Comment #2
Mad Maks commentedis not exactly right: it has to be
then the layout will stay the same
Comment #3
Mad Maks commentedthe cvs is updated to 5.0. as far as i can see there are no changes in the layout. please test and comment.
Comment #4
Mad Maks commentedComment #5
(not verified) commented