16 if (!isset($this->config)) {
19 foreach($this->config as $set) {
20 if (in_array($thispage, $set,
true)) {
29 foreach($this->config as $set) {
30 if (in_array($thispage, $set,
true)) {
39 $info = array(
'info' =>
'',
'translator' =>
$translator,
'thispage' => $thispage);
51 $text .=
'<ul class="tabset_tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">';
52 foreach ($this->pages as $pageid => $page) {
53 if (isset($tabset) && !in_array($pageid, $tabset,
true)) {
57 if (isset($page[
'text'])) {
58 $name = $page[
'text'];
60 if (isset($page[
'shorttext'])) {
61 $name = $page[
'shorttext'];
63 if (!isset($page[
'href'])) {
64 $text .=
'<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' .
$t->t(
$name) .
'</a></li>';
65 }
else if($pageid === $thispage ) {
66 $text .=
'<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' .
$t->t(
$name) .
'</a></li>';
68 $text .=
'<li class="ui-state-default ui-corner-top"><a href="' . $page[
'href'] .
'">' .
$t->t(
$name) .
'</a></li>';
73 if (!empty($logininfo)) {
74 $text .=
'<p class="logininfo" style="text-align: right; margin: 0px">' . $logininfo .
'</p>';
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
__construct($pages, $config=null)
getLoginInfo($translator, $thispage)
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.