Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d118691d
Commit
d118691d
authored
Jun 05, 2007
by
Donal McMullan
Browse files
New ssopeers block on side panel
parent
12efa1b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/mahara.php
View file @
d118691d
...
...
@@ -64,6 +64,7 @@ $string['tags'] = 'Tags';
$string
[
'tagsdesc'
]
=
'Enter comma separated tags for this item'
;
$string
[
'selfsearch'
]
=
'Search My Portfolio'
;
$string
[
'ssopeers'
]
=
'SSO Peers'
;
// Quota strings
$string
[
'quota'
]
=
'Quota'
;
...
...
htdocs/lib/web.php
View file @
d118691d
...
...
@@ -53,7 +53,7 @@ defined('INTERNAL') || die();
//smarty(array('js/tablerenderer.js', 'artefact/file/js/filebrowser.js'))
function
&
smarty
(
$javascript
=
array
(),
$headers
=
array
(),
$pagestrings
=
array
(),
$extraconfig
=
array
())
{
global
$USER
,
$SESSION
;
global
$USER
,
$SESSION
,
$CFG
;
$SIDEBLOCKS
=
array
();
require_once
(
get_config
(
'libroot'
)
.
'smarty/Smarty.class.php'
);
...
...
@@ -288,6 +288,14 @@ EOF;
);
}
require_once
(
$CFG
->
docroot
.
'/auth/xmlrpc/lib.php'
);
if
(
$ssopeers
=
get_service_providers
(
$USER
->
authinstance
))
{
$SIDEBLOCKS
[]
=
array
(
'name'
=>
'ssopeers'
,
'weight'
=>
1
,
'data'
=>
$ssopeers
,
);
}
if
(
isset
(
$extraconfig
[
'sideblocks'
])
&&
is_array
(
$extraconfig
[
'sideblocks'
]))
{
foreach
(
$extraconfig
[
'sideblocks'
]
as
$sideblock
)
{
...
...
htdocs/theme/default/templates/sideblocks/ssopeers.tpl
0 → 100644
View file @
d118691d
<h3>
{
str
tag
=
"ssopeers"
}{
contextualhelp
plugintype
=
'core'
pluginname
=
'core'
section
=
'ssopeers'
}
</h3>
{
if
$data
}
<ul
id=
"sitemenu"
>
{
foreach
from
=
$data
item
=
peer
}
<li
class=
"
{
cycle
values
=
r0
,
r1
}
"
><a
href=
"/auth/xmlrpc/jump.php?wr=
{
$peer.wwwroot
|
escape
}
&ins=
{
$peer.instance
|
escape
}
"
>
{
$peer.name
}
</a></li>
{/
foreach
}
</ul>
{/
if
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment