| <?php |
| /******************************************************************************* |
| * Copyright (c) 2013 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 |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christopher Guindon (Eclipse Foundation)- initial API and implementation |
| *******************************************************************************/ |
| |
| //if name of the file requested is the same as the current file, the script will exit directly. |
| if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();} |
| ob_start(); |
| $active = ' class="active"'; |
| ?> |
| |
| <div class="toolbar-menu breadcrumbs-offset"> |
| <div class="container"> |
| <div class="row"> |
| <div class="col-md-24"> |
| <ol class="breadcrumb"> |
| <li><a href="/downloads/eclipse-packages"<?php if($page == 'download') print $active; ?>>Packages</a></li> |
| <li><a href="/downloads/index-developer.php"<?php if($page == 'developer') print $active; ?>>Developer Builds</a></li> |
| <!-- <li><a href="/downloads/installer.php"<?php if($page == 'installer') print $active; ?>>Eclipse Installer</a></li>--> |
| </ol> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="download-container"> |
| <div class="container"> |
| <div id="page-<?php print $page?>" class="<?php if (isset($page) && ($page != 'compare')) { print 'col-md-18'; }else{ print 'col-md-24';};?>"> |
| <?php |
| if (isset($page) && $page == 'projects') { |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.projects.php"); |
| } |
| else if(isset($page) && $page == 'compare') { |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.compare.php"); |
| } |
| else if(isset($page) && $page == 'mac_gatekeeper') { |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.mac_gatekeeper.php"); |
| } |
| else if(isset($page) && $page == 'installer_instructions') { |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.installer_instructions.php"); |
| } |
| else if(isset($page) && $page == 'installer' && class_exists('EclipseInstaller')) { |
| print $EclipseInstaller->output(); |
| print '<p class="text-center"><a class="btn btn-primary" href="/downloads/installer-instructions.php">6 Steps to Install Eclipse</a></p>'; |
| } |
| else{ |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.downloads.php"); |
| } |
| ?> |
| </div> |
| <div class="col-md-6"> |
| <?php |
| if (isset($page) && ($page != 'compare')) { |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/downloads/downloads/views/view.sidebar.php"); |
| } |
| ?> |
| </div> |
| </div> |
| </div> |
| |
| <?php |
| $html = ob_get_clean(); |