data['idplist'] AS $tab => $slist) { if (!empty($this->data['preferredidp']) && array_key_exists($this->data['preferredidp'], $slist)) $faventry = $slist[$this->data['preferredidp']]; } if(!array_key_exists('header', $this->data)) { $this->data['header'] = 'selectidp'; } $this->data['header'] = $this->t($this->data['header']); $this->data['jquery'] = array('version' => '1.6', 'core' => TRUE, 'ui' => TRUE, 'css' => TRUE); $this->data['head'] = ''; $this->data['head'] .= ''; $this->data['head'] .= ''; $this->data['head'] .= ''; if (!empty($faventry)) $this->data['autofocus'] = 'favouritesubmit'; $this->includeAtTemplateBase('includes/header.php'); // foreach ($this->data['idplist'] AS $slist) { // foreach ($slist AS $idpentry) { // if (isset($idpentry['name'])) // $this->includeInlineTranslation('idpname_' . $idpentry['entityid'], $idpentry['name']); // if (isset($idpentry['description'])) // $this->includeInlineTranslation('idpdesc_' . $idpentry['entityid'], $idpentry['description']); // } // } // function showEntry($t, $metadata, $favourite = FALSE) { $basequerystring = '?' . 'entityID=' . urlencode($t->data['entityID']) . '&' . 'return=' . urlencode($t->data['return']) . '&' . 'returnIDParam=' . urlencode($t->data['returnIDParam']) . '&idpentityid='; $extra = ($favourite ? ' favourite' : ''); $html = ''; $html .= '' . htmlspecialchars(getTranslatedName($t, $metadata)) . ''; #print_r($metadata['scopes']); // if (!empty($idpentry['description'])) { // $html .= '

' . htmlspecialchars($t->t('idpdesc_' . $metadata['entityid'])) . '
'; // } if(array_key_exists('icon', $metadata) && $metadata['icon'] !== NULL) { $iconUrl = SimpleSAML_Utilities::resolveURL($metadata['icon']); $html .= 'Icon for identity provider'; } // $html .= '

'; $html .= '
'; return $html; } ?> translation. if (!empty($displayName)) { return $t->getTranslation($displayName); } } if (array_key_exists('name', $metadata)) { if (is_array($metadata['name'])) { return $t->getTranslation($metadata['name']); } else { return $metadata['name']; } } return $metadata['entityid']; } if (!empty($faventry)) { echo('
'); echo($this->t('previous_auth')); echo(' ' . htmlspecialchars(getTranslatedName($this, $faventry)) . ''); echo('
'); echo('
'); } ?>
data['idplist'] AS $tab => $slist) { echo '
'; if (!empty($slist)) { // echo 'Favourite :: ' . $this->data['preferredidp']; // echo '
';
		// print_r($slist); exit;

		echo('	
'); echo('

Incremental search...

'); echo('
'); echo('
'); echo('
'); if (!empty($this->data['preferredidp']) && array_key_exists($this->data['preferredidp'], $slist)) { $idpentry = $slist[$this->data['preferredidp']]; echo (showEntry($this, $idpentry, TRUE)); } foreach ($slist AS $idpentry) { if ($idpentry['entityid'] != $this->data['preferredidp']) { echo (showEntry($this, $idpentry)); } } echo('
'); } echo '
'; } ?>
includeAtTemplateBase('includes/footer.php'); ?>