blob: f6221d9b7f14f1254a933f022fdc7e28512aebe9 [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>
<?php
//Magical Slider / Randomize the order of the slide.
$slider[] = '<a href="//www.eclipse.org/reviews/"><img src="/home/content/slider/slide-mylyn-reviews.jpg" alt=" Mylyn Reviews"/></a>';
$slider[] = '<a href="//www.eclipse.org/scout/"><img src="/home/content/slider/slide-scout.jpg" alt="Eclipse Scout"/></a>';
$slider[] = '<a href="//www.eclipse.org/egit/"><img src="/home/content/slider/slide_egit.jpg" alt="EGit"/></a>';
$slider[] = '<a href="//www.eclipse.org/hudson/"><img src="/home/content/slider/slide_hudson.jpg" alt="Hudson - Continuous Integration Server"/></a>';
shuffle($slider);
foreach($slider as $slide){
print '<li>'.$slide.'</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>
<?php print $App->getSocialBadge();?>
<ul class="noImage">
<li><a href="//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="//feeds.feedburner.com/eclipse/fnews"><img 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 src="/images/rss2.gif" alt="RSS Feed"/></a><a href="/community/news/eclipseinthenews.php">Community News</a></h3>
<?=$communitynews;?>
<h3><a href="/org/industry-workgroups/">Working Groups</a></h3>
<div id="working_groups">
<a href="//www.locationtech.org" target="_blank" title="LocationTech will be the leading community for individuals and organizations to collaborate on commercially-friendly open source software that is location aware."><img src="/home/images/working_groups/wg_locationtech.gif" alt="LocationTech will be the leading community for individuals and organizations to collaborate on commercially-friendly open source software that is location aware." /></a>
<a href="//m2m.eclipse.org" title="m2m.eclipse.org is where you can learn about the technologies developed at Eclipse to make Machine-to-Machine (M2M) development simpler."><img src="/home/images/working_groups/wg_m2m.gif" alt="m2m.eclipse.org is where you can learn about the technologies developed at Eclipse to make Machine-to-Machine (M2M) development simpler." /></a>
<a href="//polarsys.org/" target="_blank" title="PolarSys - Open Source tools for the development of embedded systems."><img src="/home/images/working_groups/wg_polarsys.gif" alt="PolarSys - Open Source tools for the development of embedded systems."/></a>
<a href="//wiki.eclipse.org/Auto_IWG" title="Auto IWG - Open Source Initiative for Automotive Software Development Tools."><img src="/home/images/working_groups/wg_automotive.gif" alt="Auto IWG - Open Source Initiative for Automotive Software Development Tools." /></a>
<a href="//lts.eclipse.org/" title="LTS - Enable organisations to collaborate when providing support and maintenance for Eclipse technologies."><img src="/home/images/working_groups/wg_lts.gif" alt="LTS - Enable organisations to collaborate when providing support and maintenance for Eclipse technologies." /></a>
</div>
<div class="feedMore"><a href="/org/industry-workgroups/">More...</a></div>
<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="//pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div id="rightcolumn">
<div class="sideitem">
<div class="modal noBG">
<?=$promo;?>
</div>
</div>
<div class="sideitem">
<h6><a class="rss" href="//feeds.feedburner.com/EclipseMarketplace" target="_blank"><img src="/images/rss2.gif" alt="RSS Feed"/></a><a href="//marketplace.eclipse.org">Eclipse Marketplace</a></h6>
<div class="modal epicFeed">
<?=$marketplacePlugins;?>
</div>
</div>
<div class="more">
<div class="moreButton">
<a href="//marketplace.eclipse.org">View All Plugins</a>
</div>
</div>
<div class="sideitem">
<h6><a class="rss" href="//feeds.feedburner.com/eclipselive" target="_blank"><img src="/images/rss2.gif" alt="RSS Feed"/></a><a href="//www.youtube.com/user/EclipseFdn" target="_blank">Eclipse YouTube Channel</a></h6>
<div class="modal liveFeed">
<?=$eclipseLiveFeed;?>
</div>
</div>
<div class="more">
<div class="moreButton">
<a href="//www.youtube.com/user/EclipseFdn" target="_blank">More from YouTube</a>
</div>
</div>
<div class="sideitem">
<h6><a href="//eclipselabs.org">Eclipse Labs</a> <span class="labsActive">(Most Active)</span></h6>
<div class="modal epicFeed">
<?=$labsFeed;?>
</div>
</div>
<!--
<div id="promos">
<a href="/go/PROMO_TRAINING" rel="nofollow"><img width="200" height="200" src="/community/training/images/promo2011.jpg" alt="Eclipse Fall Training Series" title="Eclipse Fall Training Series"></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">
/* <![CDATA[ */
$(function(){
$("div#bbContent").carousel({
nextBtn :'<span>&nbsp;</span>',
prevBtn :'<span>&nbsp;</span>',
autoSlide : 'true',
autoSlideInterval : '13500',
loop: 'true'
});
});
/* ]]> */
</script>
<?
$html = ob_get_clean();