diff options
| author | Christopher Guindon | 2017-08-28 18:58:44 +0000 |
|---|---|---|
| committer | Christopher Guindon | 2017-08-31 16:56:55 +0000 |
| commit | e90361e384a77358beec773b59692558277c0d19 (patch) | |
| tree | 5ebb1e8bd6cd8fd88f53fd4f5e88031d08559aa8 | |
| parent | 899b52d07214abd0933348b85ef0eb1f501b5883 (diff) | |
| download | org-e90361e384a77358beec773b59692558277c0d19.tar.gz org-e90361e384a77358beec773b59692558277c0d19.tar.xz org-e90361e384a77358beec773b59692558277c0d19.zip | |
Bug 521084 - Add epl-2.0 to the website
Fix issues with the layout and only include content from <body>.
Change-Id: I8b12c600fc0fa01c6804a9d332ffcebae1296b88
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
| -rw-r--r-- | documents/epl-2.0/index.php | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/documents/epl-2.0/index.php b/documents/epl-2.0/index.php index 036c310b..5bc7fda6 100644 --- a/documents/epl-2.0/index.php +++ b/documents/epl-2.0/index.php @@ -1,9 +1,9 @@ <?php /************************************************************************** * Copyright (c) 2017 Eclipse Foundation and others. - * - * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License 2.0 which accompanies + * + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License 2.0 which accompanies * this distribution, and is available at http://eclipse.org/legal/epl-2.0 **************************************************************************/ $common = dirname(__FILE__) . "/../../../eclipse.org-common"; @@ -22,17 +22,31 @@ include("$root/_projectCommon.php"); $pageTitle ="Eclipse Public License 2.0"; $pageAuthor = "Wayne Beaton"; +// Fetch EPL-2.0.html content from <body></body> +$DOMDocument = new DOMDocument; +$DOMDocument->loadHTMLFile("EPL-2.0.html"); +$body = $DOMDocument->getElementsByTagName('body')->item(0); +$epl = ""; +foreach ($body->childNodes as $childNode) { + $epl .= $DOMDocument->saveHTML($childNode); +} ob_start(); ?> <div id="maincontent"> - - <div id="midcolumn"> -<?php include "EPL-2.0.html"; ?> -</div> + <div id="midcolumn"> + <?php print $epl; ?> + </div> </div> - +<style type="text/css"> + #midcolumn h2{ + font-size:18px; + } + #midcolumn ul, + #midcolumn ol{ + list-style-type:none; + } +</style> <?php $html = ob_get_contents(); ob_end_clean(); $App->generatePage($theme, $Menu, $Nav , $pageAuthor, $pageKeywords, $pageTitle, $html); -?>
\ No newline at end of file |
