Index: page.tpl.php =================================================================== RCS file: /cvs/drupal/contributions/themes/lightfantastic/page.tpl.php,v retrieving revision 1.17 diff -u -p -r1.17 page.tpl.php --- page.tpl.php 3 Jun 2008 00:18:36 -0000 1.17 +++ page.tpl.php 19 Sep 2008 02:37:02 -0000 @@ -88,9 +88,9 @@
'. $title .''; endif; ?>
- '; endif; ?> + '; endif; ?> - + Index: style.css =================================================================== RCS file: /cvs/drupal/contributions/themes/lightfantastic/style.css,v retrieving revision 1.4 diff -u -p -r1.4 style.css --- style.css 3 Jun 2008 00:18:36 -0000 1.4 +++ style.css 19 Sep 2008 02:37:03 -0000 @@ -64,6 +64,10 @@ h6 { font-weight: bold; } +fieldset { + border: 1px solid #727D59; +} + code,kbd { font-size: 120%; } @@ -396,6 +400,10 @@ div#main ul,div#main ol { margin-left: 20px; } +div#autocomplete ul, div#autocomplete li { + margin: 0; +} + div#main dl dt { margin-top: 1em; font-family: Georgia, "Times New Roman", Times, serif; @@ -595,7 +603,7 @@ div.sidebar_right h2 { } div.sidebar_right ul { - margin: 10; + margin: 10px; padding: 0; list-style: none; } @@ -1021,6 +1029,10 @@ div#additionalThree-box { background: url(./assets/images/additional_bk.png) repeat-x left top; } +#additional a, #additional a:link { + color: #FFFFCC; +} + div.chunk-unknown { padding: 20px; } @@ -1152,10 +1164,6 @@ div.messages a { color: #133C40; } -div.messages a:hover { - color: #FC0; -} - div.messages ul,div.messages ul li { margin: 0; } Index: template.php =================================================================== RCS file: /cvs/drupal/contributions/themes/lightfantastic/template.php,v retrieving revision 1.13 diff -u -p -r1.13 template.php --- template.php 1 Jun 2008 04:13:46 -0000 1.13 +++ template.php 19 Sep 2008 02:37:03 -0000 @@ -3,23 +3,49 @@ /** * @file - * template.php for the Light Fantastic theme for Drupal 6. + * template.php for the Light Fantastic theme for Drupal 5. * * This file provides overrides and theme-specific functions for the Light - * Fantastic theme for Drupal 6 and higher. + * Fantastic theme for Drupal 5 and higher. */ +function lightfantastic_regions() { + return array( + 'navigation_left' => 'Left navigation', + 'navigation_right' => 'Right navigation', + 'sidebar_left' => 'Left sidebar', + 'sidebar_right' => 'Right sidebar', + 'top' => 'Top', + 'header' => 'Header', + 'banner' => 'Banner', + 'pre_content' => 'Before content', + 'content' => 'Content', + 'additional' => 'Additional', + 'bottom' => 'Bottom', + ); +} + +function _phptemplate_variables($hook, $vars) { + $func = "lightfantastic_preprocess_$hook"; + if (function_exists($func)) { + $func($vars); + } + return $vars; +} + /** * Override or insert variables into the page template. */ function lightfantastic_preprocess_page(&$vars) { - + global $language; + $vars['language'] = $language; + $vars['site_title'] = !empty($vars['site_name']) ? check_plain($vars['site_name']) : ''; $vars['ie6_styles'] = ''. "\n"; $vars['ie7_styles'] = ''. "\n"; $vars['primary_nav'] = isset($vars['primary_links']) ? theme('links', $vars['primary_links'], array('id' => 'main-menu')) : FALSE; $vars['tabs2'] = menu_secondary_local_tasks(); - + /** * Set width for the site and two sidebars: * This theme allows the site to have a fluid or fixed width layout. @@ -28,32 +54,34 @@ function lightfantastic_preprocess_page( * For any layout, Left and Right column widths could be set. * If fixed width, maximum and minimum widths would be ignored. */ - - $site_fixed_width = '960px'; // Width if fixed-width layout. Leave blank ('') for fluid layout. - $site_min_width = '760px'; // Minimum width if fluid layout. - $site_max_width = '960px'; // Maximum width if fluid layout. + + $site_fixed_width = ''; // Width if fixed-width layout. Leave blank ('') for fluid layout. + $site_min_width = '860px'; // Minimum width if fluid layout. + $site_max_width = '1200px'; // Maximum width if fluid layout. $left_sidebar_width = '240px'; // Width of left column. $right_sidebar_width = '240px'; // Width of right column. $secondary_nav = "left"; - + // Set page width. if ($site_fixed_width == "") { $site_fixed_width = (($site_max_width - $site_min_width) < 0 ) ? "960px" : "" ; } $site_width = ($site_fixed_width != "") ? "width: $site_fixed_width;" : "max-width: $site_max_width; min-width: $site_min_width;" ; - + if ($site_fixed_width == "") { $site_fixed_width = (($site_max_width - $site_min_width) < 0 ) ? "1" : "" ; } $is_fixed_width = ($site_fixed_width != "") ? "0" : "1" ; - + + $vars['front_page'] = base_path(); + // Secondary navigation position. $vars['secondary_nav'] = $secondary_nav == 'right' ? 'right' : 'left'; - + $style = ""; $style .= ''; - + if ($is_fixed_width) { // IE6 min-width, max-width expression. $style .= ' @@ -84,7 +112,7 @@ function lightfantastic_preprocess_page( '; } - + $vars['layout_style'] = $style; // Sets the body-tag class attribute. @@ -123,7 +151,7 @@ function lightfantastic_preprocess_page( default: $vars['additional_chunk'] = "chunk-unknown"; } - + // Get published block in 'banner' region and set 'banner_chunk' variable. switch (count(block_list('banner'))) { case 0: @@ -162,8 +190,8 @@ function lightfantastic_breadcrumb($brea /** * Allow themable wrapping of all comments. */ -function lightfantastic_comment_wrapper($content, $node) { - if (!$content || $node->type == 'forum') { +function lightfantastic_comment_wrapper($content, $type = NULL) { + if (!$content || $type == 'forum') { return '
'. $content .'
'; } else { @@ -202,4 +230,3 @@ function lightfantastic_node_submitted($ '!datetime' => format_date($node->created), )); } -