summaryrefslogtreecommitdiff
path: root/themes/colors/toplinks.php
diff options
context:
space:
mode:
authorRob Peters <makitso@gmail.com>2010-07-10 14:16:34 +0000
committerRob Peters <makitso@gmail.com>2010-07-10 14:16:34 +0000
commit101cb458a7e5094746ce5ab0a243f92d0710787e (patch)
tree9544e462843054fa876fe809baa0202a77c2cf78 /themes/colors/toplinks.php
parentd2f3bca9950dd37ffa13d5167ca48e5adb6e6757 (diff)
downloadwebtrees-101cb458a7e5094746ce5ab0a243f92d0710787e.tar.gz
webtrees-101cb458a7e5094746ce5ab0a243f92d0710787e.tar.bz2
webtrees-101cb458a7e5094746ce5ab0a243f92d0710787e.zip
Consolidate toplinks into header script
Diffstat (limited to 'themes/colors/toplinks.php')
-rw-r--r--themes/colors/toplinks.php126
1 files changed, 0 insertions, 126 deletions
diff --git a/themes/colors/toplinks.php b/themes/colors/toplinks.php
deleted file mode 100644
index 81aa1c27db..0000000000
--- a/themes/colors/toplinks.php
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php
-/**
- * Toplinks for Colors theme
- *
- * webtrees: Web based Family History software
- * Copyright (C) 2010 webtrees development team.
- *
- * Derived from PhpGedView
- * Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * @package webtrees
- * @subpackage Themes
- * @version $Id$
- */
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-$menubar = new MenuBar();
-
-echo '<table id="toplinks">',
- '<tr>',
- '<td class="toplinks_left">',
- '<table align="', $TEXT_DIRECTION=="ltr"?"left":"right", '">',
- '<tr>';
- $menu = $menubar->getGedcomMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getMyPageMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getChartsMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getListsMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getCalendarMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getReportsMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getSearchMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menu = $menubar->getOptionalMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- $menus = $menubar->getModuleMenus();
- foreach($menus as $m=>$menu) {
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
- }
- $menu = $menubar->getHelpMenu();
- if($menu->link != "") {
- echo "<td>";
- $menu->addLabel("", "none");
- $menu->printMenu();
- echo "</td>";
- }
-
-echo '</tr>',
- '</table>',
- '</td>';
- if(empty($SEARCH_SPIDER)) {
- echo '<td class="toplinks_right">',
- '<div align="', $TEXT_DIRECTION=="ltr"?"left":"right", '">',
- 'color_theme_dropdown()',
- '</div>',
- '</td>';
- }
-echo '<tr>',
- '</table>';