Infra 2065 - Add download link to neon
Change-Id: I7115cce06d56e23945019a7c637877feccfd93de
Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/content/en_index.php b/content/en_index.php
index 73677d6..f8fb5df 100644
--- a/content/en_index.php
+++ b/content/en_index.php
@@ -9,6 +9,9 @@
* Contributors:
* Eric Poirier (Eclipse Foundation) - Initial implementation
*******************************************************************************/
+
+// Get only the 64 bit links
+$links = $EclipseInstaller->getInstallerLinks('64bit');
?>
<div class="neon-container">
@@ -18,9 +21,10 @@
<h1 class="neon-header-h1">
<span class="neon-title">n<span class="blink-one">e</span>o<span class="blink-two">n</span></span><br>
</h1>
- <h2 class="white">Coming June 22</h2>
- <!-- <p><a class="btn btn-neon btn-download btn-white-text" href="https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/RC1/eclipse-inst-mac64.tar.gz&mirror_id=1135">Download</a></p> -->
- <!-- <p><a href="/downloads/index-packages.php" class="other-packages-link">Other Package Downloads</a></p> -->
+ <?php foreach ($links['links'] as $link): ?>
+ <p><a class="btn btn-neon btn-download btn-white-text" href="<?php print $link; ?>">Download</a></p>
+ <?php endforeach;?>
+ <p><a href="/downloads/index-packages.php" class="other-packages-link">Other Package Downloads</a></p>
</div>
</div>
@@ -135,17 +139,16 @@
<div class="row">
<div class="col-sm-12 neon-news-item">
<h2 class="news-h3">Press Release</h3>
- <span class="social-news-date">2016/05/20</span>
- <h4 class="social-h4"><a href="/downloads/index-developer.php">Download Eclipse Neon (4.6) RC1</a></h4>
+
+ <span class="social-news-date">2016/06/22</span>
+ <h4 class="social-h4"><a href="/org/press-release/20160622_neon.php">Eclipse Neon Release Train Now Available</a></h4>
+
</div>
<div class="col-sm-12 neon-news-item">
<h2 class="news-h3">News</h3>
- <span class="social-news-date">2016/06/13</span>
- <h4 class="social-h4"><a href="/org/press-release/20160613_neon.php">Neon Release Page</a></h4>
-
- <span class="social-news-date">2016/06/09</span>
- <h4 class="social-h4"><a href="/community/webinars">The Eclipse Neon Webinar Series is scheduled to commence on June 15</a></h4>
+ <span class="social-news-date">2016/06/22</span>
+ <h4 class="social-h4"><a href="https://www.infoq.com/news/2016/06/eclipse-neon">Eclipse Foundation Releases Neon</a></h4>
</div>
</div>
diff --git a/index.php b/index.php
index 5b886cf..58982a4 100644
--- a/index.php
+++ b/index.php
@@ -11,9 +11,12 @@
* Eric Poirier (Eclipse Foundation)
*******************************************************************************/
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
+ require_once(realpath(dirname(__FILE__) . "/../eclipse.org-common/system/app.class.php"));
+ require_once(realpath(dirname(__FILE__) . "/../eclipse.org-common/classes/downloads/eclipseInstaller.php"));
$App = New App();
+ $EclipseInstaller = new EclipseInstaller('neon/R');
+ $EclipseInstaller->setInstallerLayout('layout_a');
#redirect the user if he already saw the luna landing page
$uri = explode("/", $_SERVER['REQUEST_URI']);