3if(!array_key_exists(
'header', $this->
data)) {
 
    4        $this->
data[
'header'] = 
'selectidp';
 
    6$this->
data[
'header'] = $this->t($this->
data[
'header']);
 
    7$this->
data[
'jquery'] = array(
'core' => TRUE, 
'ui' => TRUE, 
'css' => TRUE);
 
    9$this->
data[
'head'] = 
'<link rel="stylesheet" media="screen" type="text/css" href="' . SimpleSAML\Module::getModuleUrl(
'discopower/style.css')  . 
'" />';
 
   11$this->
data[
'head'] .= 
'<script type="text/javascript" src="' . SimpleSAML\Module::getModuleUrl(
'discopower/js/jquery.livesearch.js')  . 
'"></script>';
 
   12$this->
data[
'head'] .= 
'<script type="text/javascript" src="' . SimpleSAML\Module::getModuleUrl(
'discopower/js/' . $this->
data[
'score'] . 
'.js')  . 
'"></script>';
 
   14$this->
data[
'head'] .= 
'<script type="text/javascript"> 
   16$(document).ready(function() { 
   17        $("#discotabs").tabs({ selected: ' . $this->
data[
'defaulttab'] . 
' }); ';
 
   21        $this->
data[
'head'] .= 
"\n" . 
'$("#query_' . 
$tab . 
'").liveUpdate("#list_' . 
$tab . 
'")' .
 
   22                ((
$i++ == 0) && (empty($this->
data[
'faventry'])) ? 
'.focus()' : 
'') .
 
   37if (!empty($this->
data[
'faventry'])) $this->
data[
'autofocus'] = 
'favouritesubmit';
 
   39$this->includeAtTemplateBase(
'includes/header.php');
 
   43        $basequerystring = 
'?' . 
 
   44                'entityID=' . urlencode(
$t->data[
'entityID']) . 
'&' . 
 
   45                'return=' . urlencode(
$t->data[
'return']) . 
'&' . 
 
   46                'returnIDParam=' . urlencode(
$t->data[
'returnIDParam']) . 
'&idpentityid=';
 
   48        $extra = ($favourite ? 
' favourite' : 
'');
 
   49        $html = 
'<a class="metaentry' . $extra . 
'" href="' . $basequerystring . urlencode(
$metadata[
'entityid']) . 
'">';
 
   55                $html .= 
'<img alt="Icon for identity provider" class="entryicon" src="' . htmlspecialchars($iconUrl) . 
'" />';
 
   71        if (isset(
$metadata[
'UIInfo'][
'DisplayName'])) {
 
   72                $displayName = 
$metadata[
'UIInfo'][
'DisplayName'];
 
   73                assert(is_array($displayName)); 
 
   74                if (!empty($displayName)) {
 
   75                        return $t->getTranslator()->getPreferredTranslation($displayName);
 
   79        if (array_key_exists(
'name', 
$metadata)) {
 
   81                        return $t->getTranslator()->getPreferredTranslation(
$metadata[
'name']);
 
   92if (!empty($this->
data[
'faventry'])) {
 
   95        echo(
'<div class="favourite">');
 
   96        echo($this->t(
'previous_auth'));
 
   97        echo(
' <strong>' . htmlspecialchars(
getTranslatedName($this, $this->
data[
'faventry'])) . 
'</strong>');
 
   99        <form id="idpselectform" method="get" action="' . $this->
data[
'urlpattern'] . 
'"> 
  100                <input type="hidden" name="entityID" value="' . htmlspecialchars($this->
data[
'entityID']) . 
'" /> 
  101                <input type="hidden" name="return" value="' . htmlspecialchars($this->
data[
'return']) . 
'" /> 
  102                <input type="hidden" name="returnIDParam" value="' . htmlspecialchars($this->
data[
'returnIDParam']) . 
'" /> 
  103                <input type="hidden" name="idpentityid" value="' . htmlspecialchars($this->
data[
'faventry'][
'entityid']) . 
'" /> 
  105                <input type="submit" name="formsubmit" id="favouritesubmit" value="' . $this->t(
'login_at') . 
' ' . htmlspecialchars(
getTranslatedName($this, $this->
data[
'faventry'])) . 
'" />  
  121    <ul 
class=
"tabset_tabs">     
 
  126                        if(!empty($this->
data[
'idplist'][$tab])) {
 
  127                                echo 
'<li><a href="#' . 
$tab . 
'"><span>' . $this->t($this->
data[
'tabNames'][$tab]) . 
'</span></a></li> ';
 
  142        echo 
'<div id="' . 
$tab . 
'">';
 
  146                echo(
'  <div class="inlinesearch">');
 
  147                echo(
'  <p>Incremental search...</p>');
 
  148                echo(
'  <form id="idpselectform" action="?" method="get"><input class="inlinesearchf" type="text" value="" name="query_' . 
$tab . 
'" id="query_' . 
$tab . 
'" /></form>');
 
  151                echo(
'  <div class="metalist" id="list_' . 
$tab  . 
'">');
 
  152                if (!empty($this->
data[
'preferredidp']) && array_key_exists($this->
data[
'preferredidp'], 
$slist)) {
 
  153                        $idpentry = 
$slist[$this->
data[
'preferredidp']];
 
  154                        echo (
showEntry($this, $idpentry, TRUE));
 
  157                foreach (
$slist AS $idpentry) {
 
  158                        if ($idpentry[
'entityid'] != $this->data[
'preferredidp']) {
 
  175<?
php $this->includeAtTemplateBase(
'includes/footer.php');
 
$metadata['__DYNAMIC:1__']
An exception for terminatinating execution or to throw for unit testing.
static resolveURL($url, $base=null)
Resolve a (possibly relative) URL relative to a given base URL.
getTranslatedName($t, $metadata)
showEntry($t, $metadata, $favourite=FALSE)
if(!empty($this->data['faventry'])) $tabs
if(!array_key_exists('header', $this->data)) $this data['header']