public function getBlock($block_id, $template = true, $cfg = null) { $id = $this->getName() . $block_id; $class = $this->getName() . '_block'; $title = $this->getTitle(); $menu = WT_MenuBar::getThemeMenu(); if ($menu) { $content = '<div class="center theme_form">' . WT_MenuBar::getThemeMenu() . '</div><br>'; if ($template) { require WT_THEME_DIR . 'templates/block_main_temp.php'; } else { return $content; } } else { return ''; } }
echo WT_MenuBar::getChartsMenu(); ?> <?php echo WT_MenuBar::getListsMenu(); ?> <?php echo WT_MenuBar::getCalendarMenu(); ?> <?php echo WT_MenuBar::getReportsMenu(); ?> <?php echo WT_MenuBar::getSearchMenu(); ?> <?php echo implode('', WT_MenuBar::getModuleMenus()); ?> </ul> </div> </div> <?php } ?> <?php echo $javascript; ?> <?php echo WT_FlashMessages::getHtmlMessages(); ?> <div id="content">
echo '<li>', login_link(), '</li> '; } $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(); } echo '<li><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="20" placeholder="', WT_I18N::translate('Search'), '">', '</form></li></ul></div>'; $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">'; foreach ($menu_items as $menu) { if ($menu) { echo $menu->getMenuAsList(); } } unset($menu_items, $menu); echo '</ul>', '</div>', '</div>'; // <div id="header"> } echo $javascript, WT_FlashMessages::getHtmlMessages(), '<div id="content">';
foreach ($menu_items as $menu) { if ($menu) { echo getMenuAsCustomList($menu); } } echo '</ul>'; echo '<div id="menu-right">', '<ul class="makeMenu">'; if (WT_USER_ID) { echo '<li><a href="edituser.php" class="link">', WT_Filter::escapeHtml(Auth::user()->getRealName()), '</a></li><li>', logout_link(), '</li>'; if (WT_USER_CAN_ACCEPT && exists_pending_change()) { echo ' <li><a href="#" onclick="window.open(\'edit_changes.php\',\'_blank\', chan_window_specs); return false;" style="color:red;">', WT_I18N::translate('Pending changes'), '</a></li>'; } } else { echo '<li>', login_link(), '</li>'; } $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(); } echo '</ul>', '</div>', '</div>', '</div>'; // <div id="clouds-container"> } echo $javascript, WT_FlashMessages::getHtmlMessages(), '<div id="content">';
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:"75%", height:"75%", 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">', '<meta name="robots" content="noindex,nofollow">', '<title>', htmlspecialchars($title), '</title>', '<link rel="icon" href="', WT_CSS_URL, 'favicon.png" type="image/png">', '<link rel="stylesheet" href="', WT_THEME_URL, 'jquery-ui-1.10.3/jquery-ui-1.10.3.custom.css" type="text/css">', '<link rel="stylesheet" href="', WT_CSS_URL, 'style.css" type="text/css">', '<!--[if IE]>', '<link type="text/css" rel="stylesheet" href="', WT_CSS_URL, 'msie.css">', '<![endif]-->'; echo $javascript, '</head>', '<body id="body">', '<div id="admin_head" class="ui-widget-content">', '<i class="icon-webtrees"></i>', '<div id="title"><a href="admin.php">', WT_I18N::translate('Administration'), '</a></div>', '<div id="links">', '<a href="index.php">', WT_I18N::translate('My page'), '</a> | ', logout_link(), '<span> | </span>', '<ul class="langmenu">'; $language_menu = WT_MenuBar::getLanguageMenu(); if ($language_menu) { echo $language_menu->getMenuAsList(); } echo '</ul>'; if (WT_USER_CAN_ACCEPT && exists_pending_change()) { echo ' | <li><a href="#" onclick="window.open(\'edit_changes.php\',\'_blank\', chan_window_specs); return false;" style="color:red;">', WT_I18N::translate('Pending changes'), '</a></li>'; } echo '</div>', '<div id="info">', WT_WEBTREES, ' ', WT_VERSION, '<br>', WT_I18N::translate('Server time'), ' — ', format_timestamp(WT_SERVER_TIMESTAMP), '<br>', WT_I18N::translate('Client time'), ' — ', format_timestamp(WT_CLIENT_TIMESTAMP), '<br>', WT_I18N::translate('UTC'), ' — ', format_timestamp(WT_TIMESTAMP), '</div>', '</div>', '<div id="admin_menu" class="ui-widget-content">', '<ul>', '<li><a ', WT_SCRIPT_NAME == 'admin.php' ? 'class="current" ' : '', 'href="admin.php">', WT_I18N::translate('Administration'), '</a></li>'; if (Auth::isAdmin()) { echo '<li><ul>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_config.php' ? 'class="current" ' : '', 'href="admin_site_config.php">', WT_I18N::translate('Site configuration'), '</a></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_logs.php' ? 'class="current" ' : '', 'href="admin_site_logs.php">', WT_I18N::translate('Logs'), '</a></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_readme.php' ? 'class="current" ' : '', 'href="admin_site_readme.php">', WT_I18N::translate('README documentation'), '</a></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_info.php' ? 'class="current" ' : '', 'href="admin_site_info.php">', WT_I18N::translate('PHP information'), '</a></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_access.php' ? 'class="current" ' : '', 'href="admin_site_access.php">', WT_I18N::translate('Site access rules'), '</a></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_site_clean.php' ? 'class="current" ' : '', 'href="admin_site_clean.php">', WT_I18N::translate('Clean up data folder'), '</a></li>', '</ul></li>', '<li><a ', WT_SCRIPT_NAME == 'admin_trees_manage.php' ? 'class="current" ' : '', 'href="admin_trees_manage.php">', WT_I18N::translate('Family trees'), '</a></li>'; } else { echo '<li>', WT_I18N::translate('Family trees'), '</li>'; } echo '<li><ul>'; //-- gedcom list