blob: 2cc51e54d7f262e961f7d97c253f56ca1ba1ca0a [file] [log] [blame]
<?php
/**
* Copyright (c) 2014, 2016, 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:
* Christopher Guindon (Eclipse Foundation) - Initial implementation
* Eric Poirier (Eclipse Foundation)
*
* SPDX-License-Identifier: EPL-2.0
*/
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(
'hide_breadcrumbs' => TRUE
));
// @todo: There seems to be a bug with the Breadcrumbs.
// The download links does not get added automatically if $pageTitle
// is not set.
$pageTitle = 'Eclipse Neon';
$Theme->setPageAuthor('Eclipse Foundation');
$Theme->setPageKeywords("eclipse neon, release, simultaneous, release train, neon");
$Theme->setPageTitle($pageTitle);
// Custom theme variables
$variables = array();
$variables['main_container_classes'] = 'container-full breadcrumbs-offset footer-offset';
$App->setThemeVariables($variables);
// Place your html content in a file called content/en_pagename.php
ob_start();
include ("content/en_" . $App->getScriptName());
$html = ob_get_clean();
$Theme->setHtml($html);
$Theme->setExtraHeaders("<link href='https://fonts.googleapis.com/css?family=Lato:400,700,300' rel='stylesheet' type='text/css'>");
$Theme->setExtraHeaders('<link href="/neon/assets/public/stylesheets/neon.min.css" media="screen" rel="stylesheet" type="text/css"/>');
$Theme->generatePage();