blob: c21f5863d6422004ed4f5e8cb0824770a3c67901 [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(); # All on the same line to unclutter the user's desktop'
#*****************************************************************************
#
# index.php
#
# Author: Nathan Gervais
# Date: 2009-01-12
#
# Description: Eclipse.org Homepage Nova
#
#
#****************************************************************************
#
# Begin: page-specific settings. Change these.
$pageTitle = "Eclipse - The Eclipse Foundation open source community website.";
$pageKeywords = "eclipse,project,plug-ins,plugins,java,ide,swt,refactoring,free java ide,tools,platform,open source,development environment,development,ide";
$pageAuthor = "Eclipse Foundation, Inc.";
$documentRoot = $_SERVER['DOCUMENT_ROOT'];
$promotion = $App->getHTTPParameter('promotion');
if ($promotion == true) {
$App->setPromotionPath('/home/promotions/promotion-test.php');
}
require_once ($documentRoot . "/home/scripts/newsfeeds.php");
require_once ($documentRoot . "/membership/promo/promos.php");
require_once ($documentRoot . "/home/scripts/labs.php");
$_adNo = null;
if(isset($_GET['adNo'])) {
$_adNo = $_GET['adNo'];
}
//$promo = chooseRandomPromo($_adNo, TRUE);
# End: page-specific settings
//$epicPlugins = @ rss_to_small_news_html("/home/data/httpd/writable/community/pluginfeed.rss", 7);
$marketplacePlugins = @ rss_to_small_news_html("/home/data/httpd/writable/community/marketplace.rss", 5);
//$marketplacePlugins = @ rss_to_small_news_html($documentRoot . "/community/news/marketplace.rss", 7);
$eclipseLiveFeed = @ rss_to_small_news_html("/home/data/httpd/writable/community/eclipselive.rss", 5);
//$labsFeed = @ labsFeed($documentRoot . '/updated.rss');
$labsFeed = @ labsFeed('/home/data/httpd/writable/community/labs/updated.rss', 5);
//$eclipseLiveFeed = @ rss_to_small_news_html($documentRoot . "/home/content/eclipselive.rss", 7);
//$epicPlugins = @ rss_to_small_news_html($documentRoot . "/community/news/pluginfeed.rss", 7);
$announcements = @ rss_to_news_html($documentRoot . "/community/news/2005newsarchive.rss", "", 5, TRUE, '/community/news/eclipsenews.php');
$communitynews = @ rss_to_news_html($documentRoot . "/community/news/2005inthenewsarchive.rss", "news", 5, TRUE, '/community/news/eclipseinthenews.php');
ob_start();
?>
<div id="blockBuster">
<div id="bbContent">
<ul>
<li><a href="/10years/"><img src="/home/content/10years/images/slide1.png"/></a></li>
<li><a href="/10birthday/"><img src="/home/content/10years/images/slide2.png"/></a></li>
<li><div class="slide3">
<p>
<a href="http://www.eclipsecon.org/europe2011/">Join us as we kick off the celebration at EclipseCon Europe</a>
</p>
</li>
<?php /*<li><a href=""><img src="/home/content/10years/images/slide4.png"/></a></li>
*/?>
<li><a href="http://wiki.eclipse.org/Eclipse_DemoCamps_November_2011"><img src="/home/content/10years/images/slide5.png"/></a></li>
</ul>
</div>
<div id="bbNav">
<div id="buttonHolder">
<a id="downloadButton" href="/downloads/"><img src="/home/images/download.png" alt="Download Eclipse"/></a>
</div>
<div style="float:right; margin-top: 34px;"><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/Eclipse/259655700571&layout=button_count&show_faces=false&width=90&action=like' style='border: medium none; overflow: hidden; width: 90px; height: 22px;' frameborder='0' scrolling='no'></iframe></div>
<ul class="noImage">
<li><a href="http://marketplace.eclipse.org"><img src="/home/images/bullet.png" alt="Plugins"/>Plugins</a></li>
<li><a href="/contribute/"><img src="/home/images/bullet.png" alt="Contribute"/>Contribute</a></li>
<li class="bottom"><a href="/documentation/"><img src="/home/images/bullet.png" alt="Documentation"/>Documentation</a></li>
<li class="bottom"><a href="https://bugs.eclipse.org/bugs/"><img src="/home/images/bullet.png" alt="Eclipse Bugzilla"/>Report a Bug</a></li>
</ul>
</div>
</div>
<div id="fullcolumn">
<div id="midcolumn">
<h3><a class="rss" href="http://feeds.feedburner.com/eclipse/fnews"><img align="right" src="/images/rss2.gif" alt="RSS Feed"/></a><a href="/community/news/eclipsenews.php">Announcements</a></h3>
<?=$announcements;?>
<h3><a class="rss" href="/home/eclipseinthenews.rss"><img align="right" src="/images/rss2.gif" alt="RSS Feed"/></a><a href="/community/news/eclipseinthenews.php">Community News</a></h3>
<?=$communitynews;?>
<div style="width:100%;text-align:center;">
<script type="text/javascript"><!--
google_ad_client = "pub-6797025590085056";
/* 728x90, created 4/17/09 */
google_ad_slot = "9174493316";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div id="rightcolumn">
<div class="sideitem">
<div class="modal noBG">
<?php if (isset($_GET['frog'])) { ?>
<div style="text-align: center;"><img src="/home/images/froglogic.gif"/></div>
<?} else {?>
<?=$promo;?>
<?php }?>
</div>
</div>
<div class="sideitem">
<h6><a class="rss" href="http://feeds.feedburner.com/EclipseMarketplace"><img align="right" src="/images/rss2.gif" alt="RSS Feed"/></a><a href="http://marketplace.eclipse.org">Eclipse Marketplace</a></h6>
<div class="modal epicFeed">
<?=$marketplacePlugins;?>
</div>
</div>
<div class="more">
<div class="moreButton">
<a href="http://marketplace.eclipse.org">View All Plugins</a>
</div>
</div>
<div class="sideitem">
<h6><a class="rss" href="http://feeds.feedburner.com/eclipselive"><img align="right" src="/images/rss2.gif" alt="RSS Feed"/></a><a href="http://live.eclipse.org">Eclipse Live</a></h6>
<div class="modal liveFeed">
<?=$eclipseLiveFeed;?>
</div>
</div>
<div class="more">
<div class="moreButton">
<a href="http://live.eclipse.org/">More from Live</a>
</div>
</div>
<div class="sideitem">
<h6><a href="http://eclipselabs.org">Eclipse Labs</a> <span class="labsActive">(Most Active)</span></h6>
<div class="modal epicFeed">
<?=$labsFeed;?>
</div>
</div>
<!-- <div id="promos"> -->
<!-- <a href="/community/training/classes.php"><img border="0" src="/community/training/traininggraphic_125x125.jpg" height="125" width="125" alt="Eclipse Training"/></a> -->
<!-- </div> -->
<br/><br/>
<div style="width:100%;text-align:right;">
<a href="/community/news/rssfeeds.php">Eclipse RSS Feeds</a>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
$("div#bbContent").carousel({
nextBtn :'<span>&nbsp;</span>',
prevBtn :'<span>&nbsp;</span>',
autoSlide : 'true',
loop: 'true',
});
});
</script>
<?
$html = ob_get_clean();
$App->setjQueryVersion('1.5.1');
$App->AddExtraHtmlHeader('<script src="/home/scripts/jquery.carousel.min.js"></script><link rel="stylesheet" type="text/css" href="/home/content/nova.css"/><link rel="stylesheet" type="text/css" href="/home/content/10years.css"/><!--[if IE 6]> <link rel="stylesheet" type="text/css" href="/home/content/ie6_nova.css" media="screen"/> <![endif]-->');?>