Now one can set the title attribute for a tab separately from its text

This commit is contained in:
gustav_delius
2006-02-09 13:38:04 +00:00
parent 27998b9e2f
commit e7cb8f3e7a
+3 -2
View File
@@ -4539,10 +4539,11 @@ class tabobject {
var $text;
/// A constructor just because I like constructors
function tabobject ($id, $link='', $text='') {
function tabobject ($id, $link='', $text='', $title='') {
$this->id = $id;
$this->link = $link;
$this->text = $text;
$this->title = $title ? $title : $text;
}
@@ -4557,7 +4558,7 @@ class tabobject {
if ($inactive || $activetwo || $selected) {
$astr .= $this->text;
} else {
$astr .= '<a href="'.$this->link.'" title="'.$this->text.'">'.$this->text.'</a>';
$astr .= '<a href="'.$this->link.'" title="'.$this->title.'">'.$this->text.'</a>';
}
/// There's an IE bug with background images in <a> tags