Initial home page setup
diff --git a/_projectCommon.php b/_projectCommon.php
index ccb6831..e18dceb 100755
--- a/_projectCommon.php
+++ b/_projectCommon.php
@@ -1,23 +1,5 @@
<?php
-
- # Set the theme for your project's web pages.
- # See the Committer Tools "How Do I" for list of themes
- # https://dev.eclipse.org/committers/
- # Optional: defaults to system theme
- $theme = "";
-
- # Define your project-wide Nav bars here.
- # Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
- # these are optional
- #$Nav->addNavSeparator("Project Home", "/smila");
- #$Nav->addCustomNav("Downloads", "downloads.php", "_self", 2);
- #$Nav->addCustomNav("Installation", "install.php", "_self", 2);
- #$Nav->addCustomNav("FAQ", "faq.php", "_self", 2);
-
- require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php");
+ require_once($_SERVER['DOCUMENT_ROOT'] . "common/project-info.class.php");
$projectInfo = new ProjectInfo("rt.smila");
$projectInfo->generate_common_nav( $Nav );
-
-
-
?>
diff --git a/common/project-info.class.php b/common/project-info.class.php
new file mode 100644
index 0000000..df83ebf
--- /dev/null
+++ b/common/project-info.class.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (http://www.eclipse.org/legal/epl-v10.html).
+ * ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+ *
+ * This is the custom version of /projects/common/project-info.class.php that
+ * works as we think it should.
+ */
+require_once($_SERVER['DOCUMENT_ROOT'] ."/eclipse.org-common/classes/projects/projectInfoData.class.php");
+
+class ProjectInfo {
+ private $info;
+ private $projectkey;
+ function ProjectInfo($key) {
+ $this->projectkey = $key;
+ $this->info = new ProjectInfoData($this->projectkey);
+ }
+
+ /**
+ * Generate the common left menu navigation menu
+ */
+ function generate_common_nav( $thenav, $users = NULL, $integrators = NULL, $contributors = NULL ) {
+ global $Nav;
+ $Nav->setLinkList( array() );
+ $Nav->addNavSeparator( $this->info->projectshortname, $this->info->projecturl );
+ $Nav->addCustomNav( "About This Project",
+ "/projects/project_summary.php?projectid=" . $this->projectkey, "", 1 );
+
+ $Nav->addCustomNav("Users", htmlspecialchars($this->info->gettingstartedurl), "", 1);
+ $Nav->addCustomNav("Getting Started", htmlspecialchars($this->info->gettingstartedurl), "", 2);
+ $Nav->addCustomNav("Downloads", htmlspecialchars($this->info->downloadsurl), "", 2);
+ $Nav->addCustomNav("Documentation", "http://wiki.eclipse.org/SMILA", "", 2);
+ $Nav->addCustomNav("Newsgroup", "newsgroup.php", "", 2);
+ $Nav->addCustomNav("Bugs", "bugs.php", "", 2);
+ if( !empty($users) ) {
+ $users($Nav);
+ }
+ $Nav->addCustomNav("Integrators", htmlspecialchars($this->info->integratorsurl), "", 1);
+ $Nav->addCustomNav("Plan", htmlspecialchars($this->info->projectplanurl), "", 2);
+ if( !empty($integrators) ) {
+ $integrators($Nav);
+ }
+ $Nav->addCustomNav("Contributors", htmlspecialchars($this->info->contributingurl), "", 1);
+ $Nav->addCustomNav("Contributing", htmlspecialchars($this->info->contributingurl), "", 2);
+ $Nav->addCustomNav("Mailing Lists", "mailinglists.php", "", 2);
+ if( !empty($contributors) ) {
+ $contributors($Nav);
+ }
+ }
+}
+?>
\ No newline at end of file