',
'',
'',
'', WT_Filter::escapeHtml($title), '',
header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL),
'',
'',
'',
'';
if (stristr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
echo '';
echo '';
} elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || stristr($_SERVER['HTTP_USER_AGENT'], 'Trident')) {
// This is needed for all versions of IE, so we cannot use conditional comments.
echo '';
}
echo
'',
'';
if ($view!='simple') { // Use "simple" headers for popup windows
echo
// Top row left
'
';
}
$menu=WT_MenuBar::getFavoritesMenu();
if ($menu) {
echo $menu->getMenuAsList();
}
$menu=WT_MenuBar::getLanguageMenu();
if ($menu) {
echo $menu->getMenuAsList();
}
$menu=WT_MenuBar::getThemeMenu();
if ($menu) {
echo $menu->getMenuAsList();
$allow_color_dropdown=true;
} else {
$allow_color_dropdown=false;
}
if ($allow_color_dropdown) {
echo color_theme_dropdown();
}
global $WT_IMAGES;
echo
'
',
'',
'
',
'
',
'
';
// Second Row menu and palette selection
// Menu
$menu_items=array(
WT_MenuBar::getGedcomMenu(),
WT_MenuBar::getMyPageMenu(),
WT_MenuBar::getChartsMenu(),
WT_MenuBar::getListsMenu(),
WT_MenuBar::getCalendarMenu(),
WT_MenuBar::getReportsMenu(),
WT_MenuBar::getSearchMenu(),
);
foreach (WT_MenuBar::getModuleMenus() as $menu) {
$menu_items[]=$menu;
}
// Print the menu bar
echo
'
';
foreach ($menu_items as $menu) {
if ($menu) {
echo getMenuAsCustomList($menu);
}
}
unset($menu_items, $menu);
echo
'
';
}
// Remove list from home when only 1 gedcom
$this->addInlineJavaScript(
'if (jQuery("#menu-tree ul li").length == 2) jQuery("#menu-tree ul li:last-child").remove();'
);
echo
$javascript,
WT_FlashMessages::getHtmlMessages(), // Feedback from asynchronous actions
'