blob: 50532743d9899b3dd881c9a60cdfda541bda4442 [file] [log] [blame]
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
/*******************************************************************************
* Copyright (c) 2009-2010 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)
* Nathan Gervais (Eclipse Foundation)
*
*******************************************************************************/
#
# Begin: page-specific settings. Change these.
$pageTitle = "Eclipse.org - Kelper Simultaneous Release : Projects";
$pageKeywords = "eclipse kepler, release, simultaneous, release train, kepler";
$pageAuthor = "Christopher Guindon";
$projects = array();
$projects[] = array('url' => '#', 'title' => 'Lorem ipsum dolor sit amet', 'version' => '3.3.0');
$projects[] = array('url' => '#', 'title' => 'Fusce feugiat', 'version' => '1.3.0');
$projects[] = array('url' => '#', 'title' => 'Erat', 'version' => '4.2.0, 3.8.0');
$projects[] = array('url' => '#', 'title' => 'Etiam ut elementum metus', 'version' => '3.4.0');
# Paste your HTML content between the EOHTML markers!
ob_start();
?>
<div id="fullcolumn" class="kepler subpage projects">
<div id="page-left">
<div class="page-container">
<h2 id="h2_projects">Projects</h2>
<ul id="ul_legend" class="no_bullets">
<li class="new">new</li>
<li class="info">info</li>
</ul>
<?php
//require_once('includes/test-project.php');
for ($i = 1; $i <= 36; $i++) {
$r = rand(0, 3);
$img = "";
$img .= (rand(0, 1) == 1) ? '<a href="' . $projects[$r]['url'] . '"><img src="images/legend_new.png" /></a>' : '';
$img .= (rand(0, 1) == 1) ? '<a href="' . $projects[$r]['url'] . '"><img src="images/legend_info.png" /></a>' : '';
print '<dl><dt><a href="' . $projects[$r]['url'] . '">' . $projects[$r]['title'] . '</a> ' . $img . '</dt><dd>' . $projects[$r]['version'] . '</dd></dl>';
}
?>
</div>
</div>
<div id="page-right">
<div class="page-container">
<?php
//require_once('includes/test-project.php');
for ($i = 1; $i <= 36; $i++) {
$r = rand(0, 3);
$img = "";
$img .= (rand(0, 1) == 1) ? '<a href="' . $projects[$r]['url'] . '"><img src="images/legend_new.png" /></a>' : '';
$img .= (rand(0, 1) == 1) ? '<a href="' . $projects[$r]['url'] . '"><img src="images/legend_info.png" /></a>' : '';
print '<dl><dt><a href="' . $projects[$r]['url'] . '">' . $projects[$r]['title'] . '</a> ' . $img . '</dt><dd>' . $projects[$r]['version'] . '</dd></dl>';
}
?>
</div>
</div>
<ul id="page-nav" class="no_bullets">
<li class="page-nav-1" id="page-nav-highlights"><a href="/kepler/friends.php">Highlights</a></li>
<li class="page-nav-2" id="page-nav-kepler"><a href="/kepler/">Kepler</a></li>
</ul>
<div class="preload">
<img src="images/nav_highlights_ov.png" alt="Highlights"/>
<img src="images/nav_kepler_ov.png" alt="Kepler"/>
</div>
</div>
<?
$html = ob_get_clean();
# Generate the web page
$App->Promotion = TRUE;
//$App->AddExtraHtmlHeader('<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>');
//$App->AddExtraHtmlHeader('<script type="text/javascript" src="/juno/scripts/smooth-add.js"></script>');
$App->AddExtraHtmlHeader('<link href="http://fonts.googleapis.com/css?family=EB+Garamond" rel="stylesheet" type="text/css">');
$App->AddExtraHtmlHeader('<link type="text/css" href="/kepler/css/styles.min.css" rel="stylesheet"/>');
$App->AddExtraHtmlHeader('<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/home/content/ie7_nova.css" media="screen"/><![endif]-->');
$App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html);
?>