14 if (!isset($this->config))
return NULL;
15 foreach($this->config AS $set) {
16 if (in_array($thispage, $set,
true)) {
25 foreach($this->config AS $set) {
26 if (in_array($thispage, $set,
true)) {
45 $text .=
'<ul class="tabset_tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">';
46 foreach($this->pages AS $pageid => $page) {
48 if (isset($tabset) && !in_array($pageid, $tabset, TRUE))
continue;
50 if (isset($page[
'text']))
$name = $page[
'text'];
51 if (isset($page[
'shorttext']))
$name = $page[
'shorttext'];
53 if (!isset($page[
'href'])) {
54 $text .=
'<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' .
$t->t(
$name) .
'</a></li>';
55 }
else if($pageid === $thispage ) {
56 $text .=
'<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' .
$t->t(
$name) .
'</a></li>';
58 $text .=
'<li class="ui-state-default ui-corner-top"><a href="' . $page[
'href'] .
'">' .
$t->t(
$name) .
'</a></li>';
63 if (!empty($logininfo)) {
64 $text .=
'<p class="logininfo" style="text-align: right; margin: 0px">' . $logininfo .
'</p>';
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Create styles array
The data for the language used.
__construct($pages, $config=NULL)
getLoginInfo($translator, $thispage)
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.