/** * Displays the page header * @param string The name of the page (will be showed in the page title) * @param string Optional help file name * @param string $page_header */ public static function display_header($tool_name = '', $help = null, $page_header = null) { return; $origin = api_get_origin(); $showHeader = true; if (isset($origin) && $origin == 'learnpath') { $showHeader = false; } self::$global_template = new Template($tool_name, $showHeader, $showHeader); // Fixing tools with any help it takes xxx part of main/xxx/index.php if (empty($help)) { $currentURL = api_get_self(); preg_match('/main\\/([^*\\/]+)/', $currentURL, $matches); $toolList = self::toolList(); if (!empty($matches)) { foreach ($matches as $match) { if (in_array($match, $toolList)) { $help = explode('_', $match); $help = array_map('ucfirst', $help); $help = implode('', $help); break; } } } } self::$global_template->setHelp($help); if (!empty(self::$preview_style)) { self::$global_template->preview_theme = self::$preview_style; self::$global_template->setCssFiles(); self::$global_template->set_js_files(); self::$global_template->setCssCustomFiles(); } if (!empty($page_header)) { self::$global_template->assign('header', $page_header); } echo self::$global_template->show_header_template(); }
dialog.dialog({ modal : true, width : 520, height : 400, }); }); //prevent the browser to follow the link return false; }); }); </script>'; $this_section = SECTION_SOCIAL; $interbreadcrumb[] = array('url' => 'groups.php', 'name' => get_lang('Groups')); $interbreadcrumb[] = array('url' => 'group_view.php?id=' . $group_id, 'name' => Security::remove_XSS($group_info['name'])); $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Discussions')); $social_left_content = SocialManager::show_social_menu('member_list', $group_id); $show_message = null; if (!empty($show_message)) { $social_right_content .= Display::return_message($show_message, 'confirmation'); } $social_right_content .= MessageManager::display_message_for_group($group_id, $topic_id, $is_member, $message_id); $social_menu_block = SocialManager::show_social_menu('member_list', $group_id); $tpl = new Template(null); $tpl->setHelp('Groups'); // Block Social Avatar SocialManager::setSocialUserBlock($tpl, $user_id, 'groups', $group_id); $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $tpl->assign('content', $content); $social_layout = $tpl->get_template('social/home.tpl'); $tpl->display($social_layout);