Location: PHPKode > projects > SiteX > themes/Joombo/homepage.php
<?PHP
include("themes/$THEME_FOLDER/header.php");
?>
			<table align="left" cellpadding="0" cellspacing="0" width="<?PHP echo $sxThemeConfig['ContentWidth']; ?>">
				<tr valign="top">
					<td valign="top" align="left" style="padding: 4px;" >
					<h1><?php echo $sxLang['Welcome']; ?></h1>
					<!-- main content -->
					<?PHP echoMessage($message); ?>
					<div style="margin-bottom:5px;">
          <?PHP echo parseSpecial($sxSetup['TextWelcome']); ?>
		<?PHP if((userAdmin()) OR ((userEditor()) AND ($sxSetup['EditorRightsHomepageOptions'])))
		echo '<div class="journalAdd"><a href="admin/home_manager.php">' .$sxLang['ButtonEdit'] . '</a></div>'; 
		?>         
          </div>
					
					<?PHP if(componentActive(1) AND $sxSetup['JournalHomeCount']){ ?>
					<h1><?PHP echo getComponentName("1"); ?></h1>
					<div class="joombo_blogscroll"><?php if ($SF) { ?><img style="float: left;" src="" width="1" height="800" /><?php } ?><?PHP echoCurrentJournal($sxSetup['JournalHomeCount'], $sxThemeConfig['HomepageJournalStringLimit']); ?></div>
						<?PHP } ?>

					<!-- end main content -->
					</td>
				    <td valign="top" width="<?PHP echo $sxThemeConfig['rtMenuWidth']; ?>" height="100%" class="joombo_leftborder">
					
					<!-- right column -->
					<div class="leftalign" style="height:100%;">
					
	<?PHP
	if ((sxShowHomepageComponent('Calendar')) OR 
	    (sxShowHomepageComponent('Polls')) OR 
		(sxShowHomepageComponent('Forums')) OR 
		(sxShowHomepageComponent('Events')) OR 
		(sxShowHomepageComponent('Comments')))
	{
		// Print mini calendar
		if (sxShowHomepageComponent('Calendar'))
		{
			echo '<div class="MiniCalendar" style="font-size: 6px;">';
			echoMiniCalendar($sxMonth,$sxYear);
			echo '</div>';
		}
		
		// Print current poll
		if (sxShowHomepageComponent('Polls'))
		{
			echo '<div class="sxHomepageItemName"><span class="joombo_colon">::</span> ' . $sxLang['PollsCurrentPoll'] . '</div><div class="joombo_HomepageList">';
			echoCurrentPoll($vote,$viewPoll);
			echo '</div>';
		}
		
		// Print out 5 closest upcoming events
		if (sxShowHomepageComponent('Events'))
		{
			echo '<div class="sxHomepageItemName"><span class="joombo_colon">::</span> ' . $sxLang['EventFilterUpcoming'] . '</div><div class="joombo_HomepageList">';
			echoUpcomingEvents(10);
			echo '</div>';
		}	
		
		// Print out 5 most recent topics
		if (sxShowHomepageComponent('Forums'))
		{
			echo '<div class="sxHomepageItemName"><span class="joombo_colon">::</span> ' . $sxLang['ForumRecentTopics'] . '</div><div class="joombo_HomepageList">';
			echoRecentTopics(5);
			echo '</div>';
		}															
		
		// Print out 5 most recent comments
		if (sxShowHomepageComponent('Comments'))
		{
			echo '<div class="sxHomepageItemName"><span class="joombo_colon">::</span> ' . $sxLang['CommentsRecent'] . '</div><div class="joombo_HomepageList">';
			sxEchoRecentComments(5);
			echo '</div>';
		}
	} 
?>
				
		<!-- show RSS feed icon if journal is turned on -->
		<?PHP if(componentActive(1)){ ?>
		<div class="sxHomepageItemName"><span class="joombo_colon">::</span> Syndication</div>
		<div class="joombo_topright_rss"><a href="<?PHP echo $sxSetup['Url'].'/content/'; ?>rss.xml"><img src="<?PHP echo $sxSetup['Url'].'/images/'; ?>rss20.gif" style="border: 0;" alt="" /></a></div>
		<?PHP } ?>
		<!-- end RSS -->			
					</div>
					<!-- end right column -->
					</td>
				</tr>
			</table>
	</td>
</tr>
<tr><!-- random photos -->	
    <td colspan="2" ><?PHP
			// Print out random photos
			if (sxShowHomepageComponent('Photos'))
			{
				echo '<div id="j16" align="' . $sxThemeConfig['SiteAlign'] .'" class="joombo_filmstrip">';
				echo str_replace('<br />', '', fetchRandomPhotoHTML());
				echo '</div>';
							}
			?><!-- end random photos --><?PHP include("themes/$THEME_FOLDER/footer.php"); ?>





Return current item: SiteX