Skip to content
Snippets Groups Projects
Commit 6ad4ec62 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Use new jquery

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1382 44740490-163a-0410-bde0-09ae8108e29a
parent a0a7036d
No related branches found
No related tags found
No related merge requests found
......@@ -27,13 +27,13 @@ function portal_hook_htmlinject(&$hookinfo) {
#print_r($portal->getMenu($hookinfo['page'])); exit;
// Include jquery UI CSS files in header.
$hookinfo['jquery']['css'] = 1;
$hookinfo['jquery']['css'] = TRUE;
$hookinfo['jquery']['version'] = '1.6';
// Header
$hookinfo['pre'][0] = '
<div id="portalmenu">
' . $portal->getMenu($hookinfo['page']) . '
<div id="portalcontent" class="ui-tabs-panel" style="display: block;">';
$hookinfo['pre'][0] = '<div id="portalmenu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">' .
$portal->getMenu($hookinfo['page']) .
'<div id="portalcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">';
// Footer
$hookinfo['post'][0] = '</div></div>';
......
......@@ -50,11 +50,8 @@ class sspmod_portal_Portal {
$text = '';
if (!empty($logininfo)) {
$text .= '<p class="logininfo" style="float: right">' . $logininfo . '</p>';
}
$text .= '<ul class="ui-tabs-nav">';
$text .= '<ul class="tabset_tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">';
foreach($this->pages AS $pageid => $page) {
if (isset($tabset) && !in_array($pageid, $tabset, TRUE)) continue;
......@@ -66,15 +63,19 @@ class sspmod_portal_Portal {
if (isset($page['shorttext'])) $name = $page['shorttext'];
if (!isset($page['href'])) {
$text .= '<li class="ui-tabs-selected"><a href="#">' . $t->t($name) . '</a></li>';
$text .= '<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' . $t->t($name) . '</a></li>';
} else if($pageid === $thispage ) {
$text .= '<li class="ui-tabs-selected"><a href="#">' . $t->t($name) . '</a></li>';
$text .= '<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#">' . $t->t($name) . '</a></li>';
} else {
$text .= '<li><a href="' . $page['href'] . '">' . $t->t($name) . '</a></li>';
$text .= '<li class="ui-state-default ui-corner-top"><a href="' . $page['href'] . '">' . $t->t($name) . '</a></li>';
}
}
$text .= '</ul>';
if (!empty($logininfo)) {
$text .= '<p class="logininfo" style="text-align: right; margin: 0px">' . $logininfo . '</p>';
}
return $text;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment