Created
September 21, 2012 14:36
-
-
Save EclipseGc/3761831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function layout_get_layout(Request $request) { | |
global $theme; | |
if ($theme == 'bartik' && arg(0) != 'user') { | |
$conf = array( | |
'regions' => array( | |
'content' => array( | |
'plugin.core.block.bartik.main_content' => array(), | |
), | |
'help' => array( | |
'plugin.core.block.bartik.help_text' => array(), | |
), | |
'sidebar_first' => array( | |
'plugin.core.block.bartik.search_form' => array(), | |
'plugin.core.block.bartik.user_login' => array(), | |
'plugin.core.block.bartik.user_online' => array(), | |
'plugin.core.block.bartik.custom_01' => array(), | |
), | |
'sidebar_second' => array( | |
'plugin.core.block.bartik.user_menu' => array(), | |
), | |
'footer' => array( | |
'plugin.core.block.bartik.powered_by' => array(), | |
), | |
) | |
); | |
$conf['regions']['sidebar_first']['user_online_block'] = array( | |
'subject' => t("Who else is online"), | |
'seconds_online' => 450, | |
'max_list_count' => 5, | |
); | |
return layout_manager()->createInstance('default_layout:bartik__bartik', $conf); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment