addExternalJavascript(WT_JQUERY_COLORBOX_URL) ->addExternalJavascript(WT_JQUERY_WHEELZOOM_URL) ->addInlineJavascript('activate_colorbox();') ->addInlineJavascript('jQuery.extend(jQuery.colorbox.settings, {width:"85%", height:"85%", transition:"none", slideshowStart:"'. WT_I18N::translate('Play').'", slideshowStop:"'. WT_I18N::translate('Stop').'"})') ->addInlineJavascript(' jQuery.extend(jQuery.colorbox.settings, { title: function(){ var img_title = jQuery(this).data("title"); return img_title; } }); '); echo '', '', '', '', '', '', 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 ''; // 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 ''; } // 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 '
';