diff --git a/doc/index.php b/doc/index.php
index 711413f0cd..6b60720cb6 100644
--- a/doc/index.php
+++ b/doc/index.php
@@ -249,46 +249,26 @@ echo '
';
-function top() {
- echo "
";
- echo '
-
-
-
-
- |
-
-
- '.sprintf(tra("Open-source software for volunteer computing")).'
-
- |
-
- ';
- google_search_form("http://boinc.berkeley.edu");
- language_form();
- echo "
- |
-
- ";
- echo "
";
-}
-
function left() {
+ echo '
';
show_participate();
show_science();
show_software();
show_boinc();
show_participant();
//show_nsf();
+ echo '
';
}
function right() {
+ echo '
';
show_news_items();
+ echo '
';
}
-grid('top', 'left', 'right');
+page_head("BOINC", null, true);
+
+grid(null, 'left', 'right');
page_tail(true, true);
-echo '
-';
?>
diff --git a/doc/project.inc b/doc/project.inc
new file mode 100644
index 0000000000..8b11e6b094
--- /dev/null
+++ b/doc/project.inc
@@ -0,0 +1,178 @@
+ ';
+ navbar_start($brand, $fixed, false);
+ // instead of PROJECT you can use an or other HTML
+
+ if ($user) {
+ navbar_item(tra("Your account"), $prefix."home.php");
+ }
+
+ navbar_menu(tra("Community"), array(
+ array(tra("Message boards"), $prefix."forum_index.php"),
+ array(tra("User search"), $prefix."user_search.php"),
+ ));
+ navbar_menu(tra("Site"), array(
+ array(tra("Site search"), $prefix."site_search.php"),
+ array(tra("Languages"), $prefix."language_select.php")
+ ));
+
+ // add your own menu here if you want
+
+ navbar_right($user);
+ navbar_end(true);
+}
+
+function project_banner($title, $prefix, $is_main) {
+ if ($is_main) {
+ echo '
+
+
+
+
+
+
+
+
+ '.sprintf(tra("Open-source software for volunteer computing")).'
+
+
+
+ ';
+ google_search_form("http://boinc.berkeley.edu");
+ language_form();
+ echo '
+
+
+
+ ';
+ echo "
";
+ } else {
+ navbar(secure_url_base(), get_logged_in_user(false), false);
+ if ($title) {
+ echo "$title
\n";
+ }
+ }
+}
+
+//$fixed_navbar = false;
+function project_banner_old($title) {
+ echo "
+
+ $title
+
+ ";
+}
+
+function project_footer($show_return, $show_date, $prefix) {
+ $y = date("Y ");
+ echo "
+
+
+ Copyright © $y University of California.
+ Permission is granted to copy, distribute and/or modify this document
+ under the terms of the GNU Free Documentation License,
+ Version 1.2 or any later version published by the Free Software Foundation.
+