var $id;
var $link;
var $text;
+ var $linkedwhenselected;
/// A constructor just because I like constructors
- function tabobject ($id, $link='', $text='', $title='') {
+ function tabobject ($id, $link='', $text='', $title='', $linkedwhenselected=false) {
$this->id = $id;
$this->link = $link;
$this->text = $text;
$this->title = $title ? $title : $text;
+ $this->linkedwhenselected = $linkedwhenselected;
}
$cstr = '';
/// The text and anchor for this tab
- if ($inactive || $activetwo || $selected) {
+ if ($inactive || $activetwo || ($selected && !$this->linkedwhenselected)) {
$astr .= $this->text;
} else {
$astr .= '<a href="'.$this->link.'" title="'.$this->title.'">'.$this->text.'</a>';