// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA use WT\Auth; if (!defined('WT_WEBTREES')) { header('HTTP/1.0 403 Forbidden'); exit; } // This theme uses the jQuery “colorbox” plugin to display images $this->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 '<!DOCTYPE html>', '<html ', WT_I18N::html_markup(), '>', '<head>', '<meta charset="UTF-8">', '<meta http-equiv="X-UA-Compatible" content="IE=edge">', header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL), '<title>', WT_Filter::escapeHtml($title), '</title>', '<link rel="icon" href="', WT_CSS_URL, 'favicon.png" type="image/png">', '<link rel="stylesheet" type="text/css" href="', WT_THEME_URL, 'jquery-ui-1.10.3/jquery-ui-1.10.3.custom.css">', '<link rel="stylesheet" type="text/css" href="', WT_CSS_URL, 'style.css">', '<!--[if IE]>', '<link type="text/css" rel="stylesheet" href="', WT_CSS_URL, 'msie.css">', '<![endif]-->'; echo '</head>', '<body id="body">'; if ($view != 'simple') { // Use "simple" headers for popup windows global $WT_IMAGES; echo '<div id="clouds-container">', '<div id="header">', '<div class="header" >', '<span class="title" dir="auto">', WT_TREE_TITLE, '</span>', '<div class="hsearch">', '<form style="display:inline;" action="search.php" method="post">', '<input type="hidden" name="action" value="general">', '<input type="hidden" name="ged" value="', WT_GEDCOM, '">', '<input type="hidden" name="topsearch" value="yes">', '<input type="search" name="query" size="15" placeholder="', WT_I18N::translate('Search'), '">', '<input class="search-icon" type="image" src="', $WT_IMAGES['search'], '" alt="', WT_I18N::translate('Search'), '" title="', WT_I18N::translate('Search'), '">', '</form>', '</div>', '</div>', '</div>'; ?> <!-- end header section --> <!-- begin menu section --> <?php $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 '<div id="topMenu">', '<ul id="main-menu">';
exit; } global $WT_IMAGES; // This theme uses the jQuery “colorbox” plugin to display images $this->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') . '", title: function() { var img_title = jQuery(this).data("title"); return img_title; } } );'); ?> <!DOCTYPE html> <html <?php echo WT_I18N::html_markup(); ?> > <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <?php echo header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL); ?> <title><?php echo WT_Filter::escapeHtml($title); ?> </title> <link rel="icon" href="<?php echo WT_CSS_URL; ?> favicon.png" type="image/png"> <link rel="stylesheet" type="text/css" href="<?php echo WT_THEME_URL; ?> jquery-ui-1.10.3/jquery-ui-1.10.3.custom.css"> <link rel="stylesheet" type="text/css" href="<?php echo WT_CSS_URL;
/** * Header content * * @return string * @author Jared Lang **/ function header_($tabs = 2) { opengraph_setup(); remove_action('wp_head', 'adjacent_posts_rel_link_wp_head'); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'rel_canonical'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'rsd_link'); ob_start(); print header_meta() . "\n"; wp_head(); print header_links() . "\n"; print header_title() . "\n"; return indent(ob_get_clean(), $tabs); }