blob: ccf675f1fc62d47d5af041aa6d01ae81c47f0eb1 [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'
#*****************************************************************************
#
# template.php
#
# Author: Denis Roy
# Date: 2005-06-16
#
# Description: Type your page comments here - these are not sent to the browser
#
#
#****************************************************************************
#
# Begin: page-specific settings. Change these.
$pageTitle = "Eclipse Community";
$pageKeywords = "eclipse resources, courses, books, events, plug-ins";
$pageAuthor = "susan iwai";
# Add page-specific Nav bars here
# Format is Link text, link URL (can be http://www.someothersite.com/), target (_self, _blank), level (1, 2 or 3)
# $Nav->addNavSeparator("My Page Links", "downloads.php");
# $Nav->addCustomNav("My Link", "mypage.php", "_self", 1);
# $Nav->addCustomNav("Google", "http://www.google.com/", "_blank", 1);
# End: page-specific settings
#
// This file is linked to from lots of different places.
// Use absolute paths to make sure that we can actually test
// that the file renders properly (i.e. testing using) "/index.php",
// and "/home/index.php" both work.
$root = $_SERVER['DOCUMENT_ROOT'];
//include ('scripts/whatsnew.php');
//$whatsnew = rss_to_html('whatsnew');
# Paste your HTML content between the EOHTML markers!
function chunks ($image, $url, $urlText, $text) {
?>
<div class="item">
<div class="image">
<img src="<?=$image;?>" align="top">
</div>
<div class="text">
<h2><? if ($url != "") { ?><a href="<?=$url;?>"> <? } ?><?=$urlText;?> <?if ($url != "") { ?></a> <? } ?></h2>
<?=$text;?>
</div>
</div>
<?
}
ob_start();
?>
<link rel="stylesheet" type="text/css" href="layout.css" media="screen" />
<h1>Welcome to the Eclipse Community Page</h1>
<div id="midcolumn">
<? chunks("http://dev.eclipse.org/huge_icons/apps/office-calendar.png", "events/" , "Events", "Check out a conference or gathering near you.");?>
<? chunks("http://dev.eclipse.org/huge_icons/mimetypes/x-office-presentation.png", "/resources" , "Resources", '<a href="/resources/?type=book">Books</a>, <a href="/resources/?type=course">Online Courses</a>, <a href="http://live.eclipse.org">Webinars</a>, and <a href="http://www.eclipse.org/resources/?sort=date&category=Tutorial">Tutorials</a>');?>
<? chunks("http://dev.eclipse.org/huge_icons/status/audio-volume-medium.png", "http://wiki.eclipse.org/Evangelism", "Evangelism", "Evangelism Resources, <a href=\"http://wiki.eclipse.org/Campus\">Eclipse on Campus</a>"); ?>
<? chunks("http://dev.eclipse.org/huge_icons/actions/mail-forward.png", "http://wiki.eclipse.org/index.php/Development_Resources", "Project Resources", '<a href="/mail/">Mailing Lists</a>, <a href="/forums">Forums</a>, <a href="http://wiki.eclipse.org">Project Wikis</a>');?>
<? chunks("http://dev.eclipse.org/huge_icons/apps/preferences-system-network-proxy.png", "portals.php", "Portals", "Check out the many community sites and blogs around the web."); ?>
<? chunks("http://dev.eclipse.org/huge_icons/categories/applications-development.png", "http://marketplace.eclipse.org/taxonomy/term/34/title" , "Training & Consulting", "Consulting, development, and training services");?>
<? chunks("http://dev.eclipse.org/huge_icons/apps/preferences-desktop-remote-desktop.png", "http://marketplace.eclipse.org", "Plugins", "Check out the many Eclipse-based plugins."); ?>
<? chunks("http://dev.eclipse.org/huge_icons/apps/preferences-system-windows.png", "/resources/?sort=date&category=RCP&type=study", "RCP Catalog", "Open Source, and Commercial Rich Client Platform applications."); ?>
<div style="clear:both"/>
</div>
<?
$html = ob_get_clean();
$html = mb_convert_encoding($html, "HTML-ENTITIES", "auto");
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>