Location: PHPKode > projects > SiteX > themes/Harmony/homepage.php
<?PHP
include("themes/$THEME_FOLDER/header.php");
?>
<!-- content -->
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
<tr>
    <td valign="top" width="565">
	<?PHP echoMessage($message); ?>
		<?PHP
  		// Print out random photos
		if (sxShowHomepageComponent('Photos'))
			echo fetchRandomPhotoHTML();
	?>
    <?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>'; 
	?>    
    <?PHP if (componentActive(1) AND $sxSetup['JournalHomeCount']) { ?>
    <h1><?PHP echo getComponentName("1"); ?></h1>
    <?PHP echoCurrentJournal($sxSetup['JournalHomeCount'], $sxThemeConfig['HomepageJournalStringLimit']); ?>
    <?PHP } ?>
	</td>
		<td width="20"></td>
	<td valign="top" style="border-left: 1px solid <?PHP echo $sxTheme['ColorTableRow']; ?>; padding-left: 15px;">
	<?PHP
	if ((sxShowHomepageComponent('Calendar')) OR 
	    (sxShowHomepageComponent('Polls')) OR 
		(sxShowHomepageComponent('Forums')) OR 
		(sxShowHomepageComponent('Events')) OR 
		(sxShowHomepageComponent('Comments')))
	{
		// Print mini calendar
		if (sxShowHomepageComponent('Calendar'))
		{
			echoMiniCalendar($sxMonth,$sxYear);
		}
		
		// Print current poll
		if (sxShowHomepageComponent('Polls'))
		{
			echo '<div class="sxHomepageItemName">' . $sxLang['PollsCurrentPoll'] . '</div>';
			echoCurrentPoll($vote,$viewPoll);
		}
		
		// Print out 5 most recent topics
		if (sxShowHomepageComponent('Forums'))
		{
			echo '<div class="sxHomepageItemName">' . $sxLang['ForumRecentTopics'] . '</div>';
			echoRecentTopics(5);
		}
		
		// Print out 5 closest upcoming events
		if (sxShowHomepageComponent('Events'))
		{
			echo '<div class="sxHomepageItemName">' . $sxLang['EventFilterUpcoming'] . '</div>';
			echoUpcomingEvents(5);
		}
		
		// Print out 5 most recent comments
		if (sxShowHomepageComponent('Comments'))
		{
			echo '<div class="sxHomepageItemName">' . $sxLang['CommentsRecent'] . '</div>';
			sxEchoRecentComments(5);
		}

	} ?>
	
	</td>
</tr>
<tr><td colspan="2" style="height:15px;">
</td></tr>
</table>
<?PHP
include("themes/$THEME_FOLDER/footer.php");
?>
Return current item: SiteX