Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php46
1 files changed, 22 insertions, 24 deletions
diff --git a/index.php b/index.php
index add8457..f19a7e2 100644
--- a/index.php
+++ b/index.php
@@ -1,36 +1,34 @@
<?php
-/*******************************************************************************
- * Copyright(c) 2015 Eclipse Foundation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://eclipse.org/legal/epl-v10.html
+/**
+ * Copyright (c) 2015, 2018 Eclipse Foundation and others.
+ *
+ * This program and the accompanying materials are made
+ * available under the terms of the Eclipse Public License 2.0
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
- * Nathan Gervais (Eclipse Foundation) - Initial implementation
- * Eric Poirier (Eclipse Foundation)
- *******************************************************************************/
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
-require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
+ * Nathan Gervais (Eclipse Foundation) - Initial implementation
+ * Eric Poirier (Eclipse Foundation)
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ */
+require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
$App = new App();
-$Nav = new Nav();
-$Menu = new Menu();
-include($App->getProjectCommon()); // All on the same line to unclutter the user's desktop'
+$Theme = $App->getThemeClass();
+include ($App->getProjectCommon());
-// Begin: page-specific settings. Change these.
-$page = "Highlights";
-$pageTitle = "Eclipse.org - Kepler Simultaneous Release : " . $page;
-$pageKeywords = "eclipse kepler, release, simultaneous, release train, kepler";
-$pageAuthor = "Christopher Guindon";
+$page = "Highlights";
+$pageTitle = "Eclipse.org - Kepler Simultaneous Release : " . $page;
+$Theme->setPageTitle($pageTitle);
+$Theme->setPageKeywords("eclipse kepler, release, simultaneous, release train, kepler");
+$Theme->setPageAuthor("Christopher Guindon");
-// Place your html content in a file called content/en_pagename.php
ob_start();
-include("content/en_" . $App->getScriptName());
+include ("content/en_" . $App->getScriptName());
$html = ob_get_clean();
-# Generate the web page
$App->AddExtraHtmlHeader('<link type="text/css" href="/kepler/css/styles.css" rel="stylesheet"/>');
-$App->generatePage("solstice", $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html); \ No newline at end of file
+$Theme->setHtml($html);
+$Theme->generatePage(); \ No newline at end of file

Back to the top