'; if ($this->controller) { $root = null; if ($this->controller->pid) { $root = Person::getInstance($this->controller->pid); } else if ($this->controller->famid) { $fam = Family::getInstance($this->controller->famid); if ($fam) $root = $fam->getHusband(); if (!$root) $root = $fam->getWife(); } if ($root!=null) { $this->controller = new IndividualController(); $this->controller->indi=$root; $this->controller->pid=$root->getXref(); $this->setController($this->controller); $out .= $this->getTabContent(); } } $out .= ''; return $out; } // Implement WT_Module_Sidebar public function getSidebarAjaxContent() { return ""; } public function getLinkUrl(&$person) { } // TODO: These functions aren't really part of the WT_Module_Tab interface, as // this module no longer provides a tab. public function hasTabContent() { return true; } public function getTabContent() { $out = ''; ob_start(); // ----------------------------------------------------------------------------- // Function Family Nav for PHPGedView - called by individual_ctrl.php // ----------------------------------------------------------------------------- // function family_nav() { // ------------------------------------------------------------------------------ global $edit, $tabno, $mediacnt, $GEDCOM, $pid; $edit=$edit; global $show_full, $tabno; $show_full="1"; // ===================================================================== echo WT_JS_START; echo 'function familyNavLoad(url) { window.location = url+"&tab="+jQuery("#tabs li:eq("+jQuery("#tabs").tabs("option", "selected")+") a").attr("title"); return false; } '; echo WT_JS_END; // Start Family Nav Table ---------------------------- echo "