private function getUserMenuItem($item) { $url = $this->getMenuIdUrl($item->id); if ($item->type == 'url') { if ($item->link == 'sclogout') { $url = JRoute::_('index.php?option=com_users&task=user.logout&return=' . $this->getLoginRedirect('jlogout') . '&' . JSession::getFormToken() . '=1'); } if ($item->link == 'scconnect') { $params['image'] = 'icon.png'; $html = '<li class="connect">' . $item->title; $html .= JFBCFactory::getReconnectButtons($params); $html .= '</li>'; return $html; } } $target = $item->browserNav == 1 ? ' target="_blank" ' : ''; return '<li><a href="' . $url . '"' . $target . '>' . $item->title . '</a></li>'; }