| <?php | |
| /** | |
| * Copyright (c) 2021 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 | |
| * Zhou Fang (Eclipse Foundation) | |
| * | |
| * SPDX-License-Identifier: EPL-2.0 | |
| */ | |
| require_once (realpath(dirname(__FILE__) . "/../../eclipse.org-common/system/app.class.php")); | |
| require_once ($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/friends/payment.class.php"); | |
| $App = new App(); | |
| $Paypal = new Paypal(); | |
| $testmode = $Paypal->_get_debug_mode(); | |
| include ($App->getProjectCommon()); | |
| // Validate with PDT | |
| $Paypal->paypal_confirm_pdt(); | |
| $pageTitle = 'Eclipse IDE 20th Anniversary'; | |
| ob_start(); | |
| ?> | |
| <div class="jumbotron featured-jumbotron margin-bottom-0"> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-24"> | |
| <h1 class="jumbotron-title">Celebrate 20 Years of the <br> Eclipse IDE</h1> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <?php | |
| $extra_header_html = ob_get_clean(); | |
| // Place your html content in a file called content/en_pagename.php | |
| ob_start(); | |
| include ("content/en_index.php"); | |
| // Infra 2200 - After a successful download on the Downloads page, | |
| // page (en_index.php) is being printed and the CSS and JS are needed. | |
| $html = ob_get_clean(); | |
| $variables = array(); | |
| $variables['btn_cfa']['text'] = 'Download'; | |
| $variables['btn_cfa']['href'] = '/downloads/packages/installer'; | |
| $variables['btn_cfa']['class'] = 'btn btn-huge btn-primary'; | |
| $App->AddExtraJSFooter('<script type="text/javascript" src="/donate/assets/public/javascript/scripts.min.js?1501"></script>'); | |
| $Theme->setHtml($html); | |
| $Theme->setThemeVariables($variables); | |
| $Theme->setThemeVariables(array('hide_breadcrumbs' => TRUE, 'main_container_classes' => 'container-full')); | |
| $Theme->setPageTitle($pageTitle); | |
| $Theme->setPageKeywords("eclipse ide, anniversary, 20 years"); | |
| $Theme->setExtraHeaderHtml($extra_header_html); | |
| $Theme->setExtraHeaderHtml('<link rel="stylesheet" type="text/css" href="/donate/assets/public/stylesheets/improve.min.css" media="screen" />'); | |
| $Theme->setExtraHeaders('<link href="/eclipseide/20anniversary/style.css?v=1" media="screen" rel="stylesheet" type="text/css"/>'); | |
| $Theme->setAttributes('header-wrapper', 'header-eclipseide'); | |
| $Theme->generatePage(); |