blob: 0921dac39a92cae357dcce4aa4a113f7cb759ca1 [file] [log] [blame]
<?php
/**
* Copyright (c) 2013, 2018 Eclipse Foundation.
*
* 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 ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
$App = new App();
$Theme = $App->getThemeClass();
include ("_projectCommon.php");
$pageTitle = "Compare Eclipse Packages";
$Theme->setPageTitle($pageTitle);
$Theme->setPageKeywords('eclipse,download,downloads,mirror,project,plug-ins,plugins,java,ide,swt,refactoring,free java ide,tools,platform,open source,development environment,development,ide');
$Theme->setPageAuthor('Eclipse Foundation, Inc.');
// CONFIGURATION
$page = 'compare';
require_once ($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/controller.compare.php");
$Downloads = new CompareController($App);
// We will need to be updated on June 28, 2017.
if ($App->getHTTPParameter('release') == 'photon') {
$Downloads->setPrefixPackage('developer');
$Downloads->setRelease('photon');
}
else {
$Downloads->setPrefixPackage('release');
$Downloads->setRelease('oxygen');
}
require_once ($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/view.tpl.php");
// Custom theme variables
$variables = array();
$variables['main_container_classes'] = 'container-full';
$App->setThemeVariables($variables);
$App->AddExtraHtmlHeader('<link href="/downloads/assets/public/stylesheets/packages.min.css" media="screen" rel="stylesheet" type="text/css"/>');
$App->AddExtraHtmlHeader('<link href="/downloads/assets/public/stylesheets/compare.min.css" media="screen" rel="stylesheet" type="text/css"/>');
$App->AddExtraJSFooter('<script type="text/javascript" src="/downloads/assets/public/javascript/compare.min.js"></script>');
$Theme->setHtml($html);
$Theme->generatePage();