Index: themes/fb_fbml/fb_fbml.info =================================================================== --- themes/fb_fbml/fb_fbml.info +++ themes/fb_fbml/fb_fbml.info (6.x working copy) @@ -1,4 +0,0 @@ +name = fb_fbml +description = for fb module. +core = 6.x +engine = phptemplate Index: themes/fb_fbml/template.php =================================================================== --- themes/fb_fbml/template.php (revision 1.8) +++ themes/fb_fbml/template.php (6.x working copy) @@ -1,23 +1,21 @@ "; } + // Change 'Home' in breadcrumbs + $crumbs = drupal_get_breadcrumb(); + if (count($crumbs) && strpos($crumbs[0], t('Home'))) { + $crumbs[0] = l(t($fb_app->title), ''); + $vars['breadcrumb'] = theme('breadcrumb', $crumbs); + } + // Style page differently depending on which sidebars are present. // Approach copied from Zen theme. // allows advanced theming based on context (home page, node of certain type, etc.) @@ -45,31 +50,12 @@ } $vars['body_classes'] = implode(' ', $body_classes); - - //var_dump($vars); - if (function_exists('fb_canvas_process')) { - fb_canvas_process($vars); - } - //var_dump($fb_app,$vars); -} - -function fb_fbml_breadcrumb($breadcrumb) { - // Change 'Home' in breadcrumbs - if (!empty($breadcrumb)) { - global $fb_app; - if (count($breadcrumb) && strpos($breadcrumb[0], t('Home'))) { - $breadcrumb[0] = l(t($fb_app->title), ''); - $breadcrumb = theme('breadcrumb', $breadcrumb); - } - } -} -function fb_fbml_preprocess_node(&$vars) { - global $fb_app, $user; - - if ($vars['teaser']) { - $vars['template_file'] = 'node-teaser'; } + else if ($hook == 'node') { + if ($vars['teaser']) { + $vars['template_file'] = 'node-teaser'; + } // TODO: could move this to phptemplate engine. if (count($vars['about'])) @@ -88,54 +74,52 @@ $vars['picture'] = '