<?PHP
include("themes/$THEME_FOLDER/header.php");
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="td_background">
<div style="padding-left:25px;padding-right:25px;padding-bottom:15px;">
<p><strong><?PHP echo $sxLang['Welcome']; ?></strong></p>
<?PHP echoMessage($message); ?>
<?PHP echo parseSpecial($sxSetup['TextWelcome']); ?></div>
<?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']){ ?>
<div style="padding-left:25px;padding-right:25px;"><strong><?PHP echo getComponentName("1"); ?></strong><br /><br />
<?PHP echoCurrentJournal($sxSetup['JournalHomeCount'], $sxThemeConfig['HomepageJournalStringLimit']); ?>
</div><?PHP } ?>
</td>
<td valign="top" class="td_background" width="225">
<!--
*******************
SEARCH OPTIONS: configure $sxThemeConfig['ShowSearchType'] in config.php.inc
*******************
-->
<!-- SHOW SEARCH TYPE 1 - search with pull-down selector: this site/google.com -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 1) { ?>
<div style="width:200px;padding-left:0px;padding-right:25px;padding-bottom:5px;padding-top:0px;">
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch">
<strong><?PHP echo $sxLang['HomepageSearch']; ?></strong>
<input name="search_text" style="width:175px;" type="text" value="" />
<select style="width:130px;" name="search_type">
<option value="site"><?PHP echo $sxLang['HomepageSearchSite']; ?></option>
<option value="google"><?PHP echo $sxLang['HomepageSearchGoogle']; ?></option>
</select>
<input name="Search" type="submit" value="<?PHP echo $sxLang['ButtonFind']; ?>" class="sxButton"/>
</form></div><br />
<?PHP } ?>
<!-- END SHOW SEARCH -->
<!-- SHOW SEARCH TYPE 2 - search with traditional text input and button -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 2){ ?>
<div style="width:200px;padding-left:0px;padding-right:25px;padding-bottom:5px;padding-top:0px;">
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch" style="margin: 0px; padding: 0px;">
<strong><?PHP echo $sxLang['HomepageSearch']; ?>:</strong> <input name="search_text" style="width: 80px;" type="text" /> <input name="Search" type="submit" value="<?PHP echo $sxLang['ButtonFind']; ?>" class="sxButton"/>
</form></div><br />
<?PHP } ?>
<!-- END SHOW SEARCH -->
<!-- SHOW SEARCH TYPE 3 - search with text input only -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 3){ ?>
<div style="width:200px;padding-left:0px;padding-right:25px;padding-bottom:5px;padding-top:0px;">
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch" style="margin: 0px; padding: 0px;">
<input name="search_text" value="<?PHP echo $sxLang['HomepageSearch']; ?>..." onfocus="this.value='';return false;" style="width: 175px;" type="text" />
</form></div><br />
<?PHP } ?>
<!-- END SHOW SEARCH -->
<?PHP
// Print mini calendar
if (sxShowHomepageComponent('Calendar'))
{
echo '<div style="padding:5px;">';
echoMiniCalendar($sxMonth,$sxYear);
echo '</div>';
}
// Print current poll
if (sxShowHomepageComponent('Polls'))
{
echo '<div class="sxHomepageItemName">' . $sxLang['PollsCurrentPoll'] . '</div>';
echoCurrentPoll($vote,$viewPoll);
}
// Random photos
if (sxShowHomepageComponent('Photos'))
{
echo '<div align="right" style="padding-top:15px;padding-right:25px;padding-bottom:15px;">';
echo fetchRandomPhotoHTML();
echo '</div>';
}
// 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>
</table>
<?PHP
include("themes/$THEME_FOLDER/footer.php");
?>