[Bug 537677] Fix download links on Neon landing page
Change-Id: I1029592631237dff7622c2681ba895b75e8475d2
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
diff --git a/content/en_index.php b/content/en_index.php
index 79b9a99..2238a99 100644
--- a/content/en_index.php
+++ b/content/en_index.php
@@ -25,8 +25,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>
- <p><a class="btn btn-neon btn-download btn-white-text" href="https://www.eclipse.org/downloads/packages/release/neon/3">Download</a></p>
- <p><a href="/downloads/eclipse-packages" 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/packages" class="other-packages-link">Other Package Downloads</a></p>
</div>
</div>
diff --git a/index.php b/index.php
index d074f5b..2cc51e5 100644
--- a/index.php
+++ b/index.php
@@ -14,8 +14,13 @@
*/
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/R3');
+$EclipseInstaller->setInstallerLayout('layout_a');
+$links = $EclipseInstaller->getInstallerLinks('64bit');
+
$Theme = $App->getThemeClass();
$App->setThemeVariables(array(