blob: 58982a439c474b59cca74cc3c8eaa30ebdf05aad [file] [log] [blame]
* Copyright (c) 2014, 2016 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
* Contributors:
* Christopher Guindon (Eclipse Foundation) - Initial implementation
* Eric Poirier (Eclipse Foundation)
require_once(realpath(dirname(__FILE__) . "/../"));
require_once(realpath(dirname(__FILE__) . "/../"));
$App = New App();
$EclipseInstaller = new EclipseInstaller('neon/R');
#redirect the user if he already saw the luna landing page
$uri = explode("/", $_SERVER['REQUEST_URI']);
if (strtolower($uri[1]) != 'neon') {
if (!isset($_COOKIE['eclipse_neon'])){
setcookie('eclipse_neon', 'eclipse_neon', time()+3600*24*365, "/");
else {
header('Location: /home/index.php', TRUE, 302);
$Theme = $App->getThemeClass($theme);
$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");
// Custom theme variables
$variables = array();
$variables['main_container_classes'] = 'container-full breadcrumbs-offset footer-offset';
// CFA Link - Big orange button in header
// Place your html content in a file called content/en_pagename.php
include("content/en_" . $App->getScriptName());
$html = ob_get_clean();
$Theme->setExtraHeaders("<link href=',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"/>');