Title doesn't (seem to) appear

mikemee - January 9, 2004 - 07:46
Project:Polder
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In switching between Marvin and Polder themes, I noticed that the detailed title disappears with Polder. I think the relevant code from polder.inc is:

<?php
// Return formatted title string:
function polder_format_title($title = "") {
  if (
$title) $output = variable_get("site_name", "drupal" . " - " . $title);
  else
$output .= variable_get("site_name", "drupal") . " - " . variable_get("site_slogan", "");

  return
$output;
}
?>

Perhaps the if line was intended to be:

<?php
 
if ($title) $output = variable_get("site_name", "drupal") . " - " . $title;
?>

Seems to work anyway :-)

I actually changed it to put the title first with:

<?php
 
if ($title) $output = $title . " - " . variable_get("site_name", "drupal");
?>

but that's just personal preference.

Btw, I LOVE this theme. It was close to what I wanted originally. Its been easy to modify, and I love the integration with styles. thanks!

#1

alexandreracine - January 14, 2007 - 06:36
Version:4.3.x-1.x-dev» HEAD
Status:active» closed

1- Polder module does not exist anymore...
2- Too old, was for drupal 4.3.

Closing.

 
 

Drupal is a registered trademark of Dries Buytaert.