Go to the source code of this file.
◆ portal_hook_htmlinject()
portal_hook_htmlinject |
( |
& |
$hookinfo | ) |
|
Hook to inject HTML content into all pages...
- Parameters
-
Definition at line 8 of file hook_htmlinject.php.
8 {
10 assert(array_key_exists(
'pre',
$hookinfo));
11 assert(array_key_exists(
'post',
$hookinfo));
12 assert(array_key_exists(
'page',
$hookinfo));
13
14 $links = array(
'links' => array());
16
18
22 }
23
24 $pagesets = $portalConfig->getValue('pagesets', array(
25 array('frontpage_welcome', 'frontpage_config', 'frontpage_auth', 'frontpage_federation'),
26 ));
29
30 if (!$portal->isPortalized(
$hookinfo[
'page']))
return;
31
32
34
35
36 $hookinfo[
'pre'][] =
'<div id="portalmenu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">' .
38 '<div id="portalcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">';
39
40
42
43}
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static getOptionalConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
References $allLinks, $hookinfo, $links, SimpleSAML\Module\callHooks(), and SimpleSAML_Configuration\getOptionalConfig().