Commit d118691d authored by Donal McMullan's avatar Donal McMullan
Browse files

New ssopeers block on side panel

parent 12efa1b3
......@@ -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';
......
......@@ -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) {
......
<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}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment