Files
Testing/leptesting/home-test.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

580 lines
30 KiB
Smarty

{include file='header.tpl'}
{* $Id: home.tpl 288 2010-01-11 20:17:09Z steve $ *}
{* BEGIN LEFT COLUMN *}
<div style='float: left; width: 200px;'>
{* SHOW LOGIN FORM IF USER IS NOT LOGGED IN *}
{if !$user->user_exists}
<div class='header'>{lang_print id=659}</div>
<div class='portal_content'>
<form action='login.php' method='post'>
<table cellpadding='0' cellspacing='0' align='center'>
<tr>
<td>
{lang_print id=89}:<br />
<input type='text' class='text' name='email' size='20' maxlength='100' value='{$prev_email}' />
</td>
</tr>
<tr>
<td style='padding-top: 6px;'>
{lang_print id=29}:<br />
<input type='password' class='text' name='password' size='20' maxlength='100' />
</td>
</tr>
{if !empty($setting.setting_login_code)}
<tr>
<td style='padding-top: 6px;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td><input type='text' name='login_secure' class='text' size='6' maxlength='10' />&nbsp;</td>
<td>
<table cellpadding='0' cellspacing='0'>
<tr>
<td align='center'>
<img src='./images/secure.php' id='secure_image' border='0' height='20' width='67' class='signup_code' alt='' /><br />
<a href="javascript:void(0);" onClick="$('secure_image').src = './images/secure.php?' + (new Date()).getTime();">{lang_print id=975}</a>
</td>
<td>{capture assign=tip}{lang_print id=691}{/capture}<!--<img src='./images/icons/tip.gif' border='0' class='Tips1' title='{$tip|escape:quotes}' alt='' />--></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
{/if}
<tr>
<td style='padding-top: 10px;'>
<input type='submit' class='button' value='{lang_print id=30}' />&nbsp;
<input type='checkbox' class='checkbox' name='persistent' value='1' id='rememberme' />
<label for='rememberme'>{lang_print id=660}</label>
</td>
</tr>
</table>
<noscript><input type='hidden' name='javascript_disabled' value='1' /></noscript>
<input type='hidden' name='task' value='dologin' />
<input type='hidden' name='ip' value='{$ip}' />
</form>
</div>
<div class='portal_spacer'></div>
{* SHOW HELLO MESSAGE IF USER IS LOGGED IN *}
{else}
<div class='portal_login'>
<div style='padding-bottom: 5px;'><a href='{$url->url_create("profile",$user->user_info.user_username)}'><img src='{$user->user_photo("./images/nophoto.png")}' width='{$misc->photo_size($user->user_photo("./images/nophoto.png"),"90","90","w")}' border='0' class='photo' alt="{lang_sprintf id=509 1=$user->user_info.user_username}" /></a></div>
<div>{lang_sprintf id=510 1=$user->user_displayname_short}</div>
<div>[ <form method="POST" id="user_logout" action="user_logout.php" style="display:inline;margin:0;"><a href='user_logout.php?token={$token}' class='top_menu_item' onclick="$('user_logout').submit(); return false;">{lang_print id=26}</a></form> ]</div>
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW STATUS *}
{if $user->level_info.level_profile_status != 0}
{lang_javascript ids=773,1113 range=743-747}
{literal}
<script type="text/javascript">
<!--
SocialEngine.Viewer.user_status = '{/literal}{$user->user_info.user_status}{literal}';
//-->
</script>
{/literal}
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='header'>{lang_print id=742}</td>
</tr>
<tr>
<td class='home_box'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td valign='top'><!--<img src='./images/icons/status16.gif' border='0' class='icon2' />-->&nbsp;&nbsp;</td>
<td>
<div id='ajax_status'>
{if $user->user_info.user_status != ""}
{assign var='status_date' value=$datetime->time_since($user->user_info.user_status_date)}
{$user->user_displayname_short} <span id='ajax_currentstatus_value'>{$user->user_info.user_status}</span>
<div style='padding-top: 5px;'>
<div style='float: left; padding-right: 5px;'>[ <a href="javascript:void(0);" onClick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=745}</a> ]</div>
<div class='home_updated'>
{lang_print id=1113}
<span id='ajax_currentstatus_date'>{lang_sprintf id=$status_date[0] 1=$status_date[1]}</span>
</div>
<div style='clear: both; height: 0px;'></div>
</div>
{else}
<div><a href="javascript:void(0);" onclick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=743}</a></div>
{/if}
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class='portal_spacer'></div>
{/if}
{* SHOW RECENT NEWS ANNOUNCEMENTS IF MORE THAN ZERO *}
{if $news|@count > 0}
<div class='header'>{lang_print id=664}</div>
<div style='padding: 10px;margin:0px;background:#000;'>
{section name=news_loop loop=$news max=3}
<div><!--<img src='./images/icons/news16.gif' border='0' class='icon' alt='' />--><b>{$news[news_loop].announcement_subject}</b> - {$news[news_loop].announcement_date}</div>
<div style="margin:0px;padding:5px 0 0 0;">{$news[news_loop].announcement_body}</div>
{/section}
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW ONLINE USERS IF MORE THAN ZERO *}
{math assign='total_online_users' equation="x+y" x=$online_users[0]|@count y=$online_users[1]}
{if $total_online_users > 0}
<div id="online-users">
<div class='header'>{lang_print id=665} ({$total_online_users})</div>
<div class='portal_content' id='online-users-content'>
{if $online_users[0]|@count == 0}
{lang_sprintf id=977 1=$online_users[1]}
{else}
{capture assign='online_users_registered'}{section name=online_loop loop=$online_users[0]}{if $smarty.section.online_loop.rownum != 1}, {/if}
<a href='{$url->url_create("profile", $online_users[0][online_loop]->user_info.user_username)}'>{$online_users[0][online_loop]->user_displayname}</a>{/section}{/capture}
{lang_sprintf id=976 1=$online_users_registered 2=$online_users[1]}
{/if}
</div>
<div class="control">
<a href="javascript:donot();" class="min-max" onclick="minmax('online-users-content','ou-minmax');" id="ou-minmax">&nbsp;</a>
</div>
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW UPCOMING BIRTHDAYS *}
<div class='header'>{lang_print id=1176}</div>
<div class='network_content'>
{* rgh - 2010-11-16 - removed year from date format string. Was previously backtickdollarsign setting.setting_dateformat backtick *}
{section name=birthday_loop loop=$birthdays max=20}
<div>
{*
<a href='{$url->url_create("profile", $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a>
- {$datetime->cdate("`$setting.setting_dateformat`", $birthdays[birthday_loop].birthday_date)}
*}
<a href='{$url->url_create("profile", $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a>
- {$birthdays[birthday_loop].birthday_date|date_format:"%B %e"}
</div>
{sectionelse}
{lang_print id=1180}
{/section}
</div>
<div class='portal_spacer'></div>
{* SHOW LAST LOGINS *}
<div class="gallery gallery3" style="margin:0px;padding:0px;width:200px;">
<div class='header'>{lang_print id=671}</div>
{if !empty($logins)}
<div class="holder" style="margin:0px;padding:0px;width:200px;height:190px;overflow:hidden;background:#000;">
<ul style="width:1000px;padding-top:10px;clear:both;">
{section name=login_loop loop=$logins max=20}
{cycle name="startrowsll" values="<li style='float:left;width:200px;text-align:center;'>,,,"}
{if !empty($logins[login_loop])}
<span style="float:left;width:100px; text-align:center;">
<a href='{$url->url_create("profile",$logins[login_loop]->user_info.user_username)}'>{$logins[login_loop]->user_displayname|regex_replace:"/&#039;/":"'"|truncate:10:"...":true}</a><br />
<a href='{$url->url_create("profile",$logins[login_loop]->user_info.user_username)}'><img src='{$logins[login_loop]->user_photo("./images/nophoto.png", TRUE)}' class='photo' width='60' height='60' border='0' alt=' ' /></a>
</span>
{/if}
{cycle values=",,,</li>"}
{/section}
</ul>
</div>
{else}
{lang_print id=672}
{/if}
<div class="control">
<a href="#" class="prev">prev</a>
<a href="#" class="next">next</a>
</div>
</div>
<div class='portal_spacer'></div>
{* SHOW MOST POPULAR USERS (MOST FRIENDS) *}
{if $setting.setting_connection_allow != 0 && FALSE}
<div class='header'>{lang_print id=668}</div>
<div class='portal_content'>
{if !empty($friends)}
<table cellpadding='0' cellspacing='0' align='center'>
{section name=friends_loop loop=$friends max=4}
{cycle name="startrow2" values="<tr>,"}
<td class='portal_member' valign="bottom"{if (~$smarty.section.friends_loop.index & 1) && $smarty.section.friends_loop.last} colspan="2" style="width:100%;"{else} style="width:50%;"{/if}>
{if !empty($friends[friends_loop])}
<a href='{$url->url_create("profile",$friends[friends_loop].friend->user_info.user_username)}'>{$friends[friends_loop].friend->user_displayname|regex_replace:"/&#039;/":"'"|truncate:15:"...":true}</a><br />
<a href='{$url->url_create("profile",$friends[friends_loop].friend->user_info.user_username)}'><img src='{$friends[friends_loop].friend->user_photo("./images/nophoto.png", TRUE)}' class='photo' width='60' height='60' border='0' alt='' /></a><br />
{lang_sprintf id=669 1=$friends[friends_loop].total_friends}
{/if}
</td>
{cycle name="endrow2" values=",</tr>"}
{/section}
</table>
{else}
{lang_print id=670}
{/if}
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *}
{if !$user->user_exists}
<div class='portal_signup_container1'>
<div class='portal_signup'>
<a href='signup.php' class='portal_signup'><span style='font-size: 15px;'><img src='./images/portal_join.gif' border='0' style='margin-right: 3px; vertical-align: middle;' alt='' /></span>{lang_print id=1115}</a>
</div>
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW Events *}
{if $events|@count > 0}
<div class="header"><a href="http://bateworld.com/browse_events.php" title="Events">Events</a></div>
<div style="background:#000;">
{section name=event_loop loop=$events max=4}
<div style='padding: 5px 5px 5px 5px; background: #000000;'>
<div style='font-weight: bold; font-size: 12px;padding-bottom:7px;'>
<a href='{$url->url_create("event", $smarty.const.NULL, $events[event_loop].event->event_info.event_id)}'>
{$events[event_loop].event->event_info.event_title}
</a>
</div>
<div style="float:left;width:70px;">
<a href='{$url->url_create("event", $smarty.const.NULL, $events[event_loop].event->event_info.event_id)}'>
<img class='photo' src='{$events[event_loop].event->event_photo("./images/nophoto.png", TRUE)}' border='0' width='60' height='60' />
</a>
</div>
<div style="float:right;width:120px;">
<div style='color: #c0c0c0; font-size: 9px; margin-bottom: 2px;'>
{assign var=event_date_start value=$datetime->timezone($events[event_loop].event->event_info.event_date_start, $global_timezone)}
{assign var=event_date_end value=$datetime->timezone($events[event_loop].event->event_info.event_date_end, $global_timezone)}
{* NO END DATE *}
{if !$events[event_loop].event->event_info.event_date_end}
{lang_sprintf id=3000203 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start)}
{* SAME-DAY EVENT *}
{elseif $datetime->cdate("F j, Y", $event_date_start)==$datetime->cdate("F j, Y", $event_date_end)}
{lang_sprintf id=3000202 1=$datetime->cdate($setting.setting_dateformat, $event_date_start) 2=$datetime->cdate($setting.setting_timeformat, $event_date_start) 3=$datetime->cdate($setting.setting_timeformat, $event_date_end)}
{* MULTI-DAY EVENT *}
{else}
{lang_sprintf id=3000204 1=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_start) 2=$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $event_date_end)}
{/if}
</div>
<div style='color: #c0c0c0; font-size: 9px; margin-bottom: 5px;'>
{assign var='event_dateupdated' value=$datetime->time_since($events[event_loop].event->event_info.event_dateupdated)}{capture assign="updated"}{lang_sprintf id=$event_dateupdated[0] 1=$event_dateupdated[1]}{/capture}
{lang_sprintf id=3000215 1=$events[event_loop].event->event_info.event_totalmembers} -
{lang_sprintf id=3000216 1=$events[event_loop].event_creator->user_displayname 2=$url->url_create("profile", $events[event_loop].event_creator->user_info.user_username)}
</div>
</div>
<div style="height:1px;margin-top:-1px;font-size:0px;overflow:hidden;clear:both;">&nbsp;</div>
</div>
{if $smarty.section.event_loop.rownum < $events|@count && $smarty.section.event_loop.rownum < 4 }
<hr style="width:95%;text-align:center;line-height:1px;" />
{else}
<div style="height:5px;font-size:0px;overflow:hidden;">&nbsp;</div>
{/if}
{/section}
</div>
<div class='portal_spacer'></div>
{/if}
{* FLESHJACK AD *}
<div style="text-align:center;">
<div style="background:#000;margin:0px auto;padding-bottom:14px;padding-top:14px;">
<a href="http://www.fleshjack.com/bateworld/?link=826584" title="Fleshjack" target="_new"><img src="http://www.fncash.com/rotate/148/skyscraper" width="120" height="600" border="0" alt="Fleshjack Ad" /></a>
</div>
</div>
<div class='portal_spacer'></div>
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *}
{if !$user->user_exists}
<div class='portal_signup_container1'>
<div class='portal_signup'>
<a href='signup.php' class='portal_signup'><span style='font-size: 15px;'><img src='./images/portal_join.gif' border='0' style='margin-right: 3px; vertical-align: middle;' alt='' /></span>{lang_print id=1115}</a>
</div>
</div>
<div class='portal_spacer'></div>
{/if}
</div>
{* BEGIN MIDDLE COLUMN *}
<div style='float: left; width: 520px; padding: 0px 10px 0px 10px; margin: 0 10px;'>
{* SHOW RECENT SIGNUPS *}
<div class="gallery gallery1">
<div class='header'>{lang_print id=666}</div>
<div class='portal_content'>
{if !empty($signups)}
<div class="holder">
<ul>
{section name=signups_loop loop=$signups max=18}
<li>
{if !empty($signups[signups_loop])}
<a href='{$url->url_create("profile",$signups[signups_loop]->user_info.user_username)}' style="font-size:12px;">{$signups[signups_loop]->user_displayname|regex_replace:"/&#039;/":"'"|truncate:9:"...":true}</a><br />
<a href='{$url->url_create("profile",$signups[signups_loop]->user_info.user_username)}'><img src='{$signups[signups_loop]->user_photo("./images/nophoto.png", TRUE)}' class='photo' width='60' height='60' border='0' alt='' /></a>
{/if}
</li>
{/section}
</ul>
</div>
{else}
{lang_print id=667}
{/if}
</div>
<div class="control">
<a href="#" class="prev">prev</a>
<a href="#" class="next">next</a>
</div>
</div>
<div class='portal_spacer'></div>
{* SHOW PUBLIC VERSION OF ACTIVITY LIST *}
{if $actions|@count > 0}
{* ACTIVITY FEED PREFERENCES *}
<div class="header">{lang_print id=737}<span style="float:right;padding-right:5px;width:125px;text-align:right;">{if $setting.setting_actions_preference == 1} <a href='javascript:actionprefs();' style='color:#fff;'>{lang_print id=1070}</a>{/if}</span></div>
{if $setting.setting_actions_preference == 1}
{* DIV FOR SPECIFYING ACTION PREFERENCES *}
<div style='display: none;' id='actionprefs'>
<div style='margin-top: 10px;'>{lang_print id=1069}</div>
<br />
<form action='actionsettings_home_js.php' method='post' target='ajaxframe'>
<table cellpadding='0' cellspacing='0'>
{section name=actiontypes_loop loop=$actiontypes}
<tr>
<td>
<input type='checkbox' name='actiontype[]' id='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}' value='{$actiontypes[actiontypes_loop].actiontype_id}'{if $actiontypes[actiontypes_loop].actiontype_selected == 1} checked='checked'{/if} />
<label for='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}'>{lang_print id=$actiontypes[actiontypes_loop].actiontype_desc}</label>
</td>
</tr>
{/section}
</table>
<br />
<input type='submit' class='button' value='{lang_print id=173}' />
<input type='button' class='button' value='{lang_print id=39}' onClick='parent.TB_remove();' />
<input type='hidden' name='task' value='save_actionprefs' />
</form>
</div>
{* JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *}
{literal}
<script type="text/javascript">
<!--
function actionprefs()
{
TB_show('{/literal}{lang_print id=1068}{literal}', '#TB_inline?height=250&width=300&inlineId=actionprefs', '', '../images/trans.gif');
}
//-->
</script>
{/literal}
{/if}
<div class='portal_whatsnew'>
{* RECENT ACTIVITY ADVERTISEMENT BANNERS *}
{if $ads->ad_feed != ""}
<div class='portal_action' style='display: block; visibility: visible; padding-bottom: 10px;'>{$ads->ad_feed}</div>
{/if}
{* SHOW ACTIONS *}
{section name=actions_loop loop=$actions max=25}
<div id='action_{$actions[actions_loop].action_id}' class='portal_action{if $smarty.section.actions_loop.first}_top{/if}'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td valign='top'><!--<img src='./images/icons/{$actions[actions_loop].action_icon}' border='0' class='icon' alt='' />--></td>
<td valign='top' width='100%'>
{assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
<div class='portal_action_date'>{lang_sprintf id=$action_date[0] 1=$action_date[1]}</div>
{assign var='action_media' value=''}
{if $actions[actions_loop].action_media !== FALSE}{capture assign='action_media'}{section name=action_media_loop loop=$actions[actions_loop].action_media}<a href='{$actions[actions_loop].action_media[action_media_loop].actionmedia_link}'><img src='{$actions[actions_loop].action_media[action_media_loop].actionmedia_path}' border='0' width='{$actions[actions_loop].action_media[action_media_loop].actionmedia_width}' class='recentaction_media' alt='' /></a>{/section}{/capture}{/if}
{if $actions[actions_loop].action_actiontype_id==26}{$actions[actions_loop].actionmedia_id}{/if}
{if $actions[actions_loop].action_actiontype_id==13}{$actions[actions_loop].actionmedia_id}{/if}
{lang_sprintf assign=action_text id=$actions[actions_loop].action_text args=$actions[actions_loop].action_vars}
{$action_text|replace:"[media]":$action_media|choptext:150:"<br>"}
</td>
</tr>
</table>
</div>
{/section}
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW RECENT GROUPS *}
<div class="gallery gallery2" style="margin:0px;padding:0px;">
<div class='header'><a href="http://bateworld.com/browse_groups.php" title="Groups">Latest Groups</a></div>
<div class="portal-content" style="background:#000;margin:0px;padding:0px;">
<div class="holder" style="margin:0px;padding:0px;width:520px;padding-bottom:10px;padding-top:6px;">
<ul style="background:#000;margin:0px;padding:0px;padding-left:6px;">
{section name=group_loop loop=$groups}
<li style="background:#000;width:250px;margin:0px;padding:0px 0px 0px 5px;">
<div style="padding-left:0px;">
<a href='{$url->url_create("group", $smarty.const.NULL, $groups[group_loop].group->group_info.group_id)}' style="font-size:11px !important;">
{$groups[group_loop].group->group_info.group_title|truncate:40:"...":true}
</a>
</div>
<a href='{$url->url_create("group", $smarty.const.NULL, $groups[group_loop].group->group_info.group_id)}'>
<img src='{$groups[group_loop].group->group_photo("./images/nophoto.png", TRUE)}' border='0' width='60' height='60' style="float:left;margin-right:5px;"/>
</a>
<div style="padding-right:5px;">
{$groups[group_loop].group->group_info.group_desc|strip_tags|truncate:80:"...":true}
</div>
</li>
{/section}
</ul>
</div>
</div>
<div class="control">
<a href="#" class="prev">prev</a>
<a href="#" class="next">next</a>
</div>
</div>
<div class='portal_spacer'></div>
{* RECENT FORUMS *}
<div class='header'><a href="http://bateworld.com/forum.php" title="Forums">Recent Forums</a></div>
<div style="background:#000;padding:10px;" id="recent-forums">
{* LIST CATEGORIES *}
{section name=forumcat_loop loop=$forumcats max=4}
{if $forumcats[forumcat_loop].forums|@count != 0}
{* LIST FORUMS *}
{section name=forum_loop loop=$forumcats[forumcat_loop].forums max=1}
{* THERE IS A LAST POST IN THIS FORUM *}
{if $forumcats[forumcat_loop].forums[forum_loop].lastpost}
{* LAST POST AUTHOR EXISTS *}
{if $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_exists}
<ul>
<li class="tpr" style="padding:0 5px 0 5px;"><img src='{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_photo("./images/nophoto.png")}' width='{$misc->photo_size($forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_photo("./images/nophoto.png"),"40","40","w")}'></li>
<li style="padding:0 10px 0 10px;"><a href='forum_topic.php?forum_id={$forumcats[forumcat_loop].forums[forum_loop].forum_id}&topic_id={$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumtopic_id}&post_id={$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_id}#post_{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_id}'>{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumtopic_subject}</a>
{capture assign="lastpost_user"}<a href='{$url->url_create("profile", $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_info.user_username)}'>{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.author->user_displayname}</a>{/capture}
<div>
{lang_sprintf id=6000095 1=$lastpost_user}
{assign var='lastpost_date_basic' value=$datetime->time_since($forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_date)}
- {lang_sprintf id=$lastpost_date_basic[0] 1=$lastpost_date_basic[1]}
</div>
</li>
</ul>
<div style="clear:both;height:1px;margin-top:-1px;font-size:0px;overflow:hidden;">&nbsp;</div>
<div style="padding:0 10px 0 10px;">
{capture name="thebody"}
{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt}
{/capture}
{$smarty.capture.thebody}...
</div>
{if $forumcats[forumcat_loop].forums|@count > 1 && $smarty.section.forum_loop.rownum < $forumcats[forumcat_loop].forums|@count}
<div style="padding:3px 0 5px 0;"><hr style='text-align:center;width:100%;' /></div>
{/if}
{* AUTHOR DOES NOT EXIST *}
{else}
<ul>
<li><img src='./images/nophoto.png' width='40'></li>
<li>
<a href='forum_topic.php?forum_id={$forumcats[forumcat_loop].forums[forum_loop].forum_id}&topic_id={$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumtopic_id}&post_id={$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_id}#post_{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_id}'>{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumtopic_subject}</a>
{capture assign="lastpost_user"}{if $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_authoruser_id != 0}{lang_print id=1071}{else}{lang_print id=835}{/if}{/capture}
<div>
{lang_sprintf id=6000095 1=$lastpost_user}
{assign var='lastpost_date_basic' value=$datetime->time_since($forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_date)}
- {lang_sprintf id=$lastpost_date_basic[0] 1=$lastpost_date_basic[1]}
</div>
</li>
</ul>
<div style="clear:both;height:1px;margin-top:-1px;font-size:0px;overflow:hidden;">&nbsp;</div>
<div>
{capture name="thebody"}
{$forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt}
{/capture}
{$smarty.capture.thebody}...
</div>
{if $forumcats[forumcat_loop].forums|@count > 1 && $smarty.section.forum_loop.rownum < $forumcats[forumcat_loop].forums|@count}
<!-- <div style="padding:3px 0 3px 0;"><hr style='text-align:center;width:100%;' /></div> //-->
{/if}
{/if}
{* NO LAST POST *}
{else}
{/if}
{/section}
{/if}
{if $smarty.section.forumcat_loop.rownum < 4 && $forumcats[forumcat_loop].forums[forum_loop].lastpost_info.forumpost_excerpt==''}
<div style="padding:3px 0 5px 0;"><hr style='text-align:center;width:100%;' /></div>
{/if}
{/section}
</div>
<div class='portal_spacer'></div>
{* LATEST BLOGS *}
<div class='header'><a href="http://bateworld.com/browse_blogs.php" title="Blogs">Latest Blogs</a></div>
<div style="background:#000;padding:10px 10px 10px 10px;" id="latest-blogs">
<ul>
{section name=blogentry_loop loop=$blogentries max=4}
<li>
<div style="padding:0px 10px 0px 10px;">
<div style='font-weight: bold; font-size: 13px;'>
<!--<img src="./images/icons/blog_blog16.gif" class='button' style='float: left;'>-->
<a href='{$url->url_create("blog_entry", $blogentries[blogentry_loop].blogentry_author->user_info.user_username, $blogentries[blogentry_loop].blogentry_id)}'>
{$blogentries[blogentry_loop].blogentry_title|truncate:30:"...":true}
</a>
</div>
<div class='blogs_browse_date'>
{assign var='blogentry_date' value=$datetime->time_since($blogentries[blogentry_loop].blogentry_date)}{capture assign="created"}{lang_sprintf id=$blogentry_date[0] 1=$blogentry_date[1]}{/capture}
{lang_sprintf id=1500039 1=$created 2=$url->url_create("profile", $blogentries[blogentry_loop].blogentry_author->user_info.user_username) 3=$blogentries[blogentry_loop].blogentry_author->user_displayname}
</div>
{if !empty($blogentries[blogentry_loop].blogentrycat_languagevar_id) || !empty($blogentries[blogentry_loop].blogentrycat_title)}
<div class='blogs_browse_date'>
{if !empty($blogentries[blogentry_loop].blogentrycat_languagevar_id)}{capture assign=blogentrycat_title}{lang_print id=$blogentries[blogentry_loop].blogentrycat_languagevar_id}{/capture}{else}{assign var=blogentrycat_title value=$blogentries[blogentry_loop].blogentrycat_title}{/if}
Category:
{if !$blogentries[blogentry_loop].blogentrycat_user_id}<a href='browse_blogs.php?c={$blogentries[blogentry_loop].blogentry_blogentrycat_id}'>{/if}
{$blogentrycat_title|truncate:48}
{if !$blogentries[blogentry_loop].blogentrycat_user_id}</a>{/if}
</div>
{/if}
<div style='margin-top: 5px;'>
{lang_sprintf id=1500041 1=$blogentries[blogentry_loop].blogentry_views},
{lang_sprintf id=1500042 1=$blogentries[blogentry_loop].blogentry_totalcomments}
</div>
<div style='margin-top: 8px; font-size: 12px;'>
{$blogentries[blogentry_loop].blogentry_body|strip_tags|truncate:140:"...":true}
</div>
</div>
{if $smarty.section.blogentry_loop.rownum < 4}
<div style="padding:3px 0 3px 0;"><hr style='text-align:center;width:100%;' /></div>
{/if}
</li>
{/section}
</ul>
</div>
<div class='portal_spacer'></div>
{* ADS *}
<div style='padding: 5px 10px 0px 0px;' id="home-ad">
{$ads->ads_display('1')}
</div>
</div>
{* BEGIN RIGHT COLUMN CONTENT *}
<div style='float: left; width: 200px;'>
{* WHAT'S HOT *}
{if !empty($whats_hot)}
<div class='header'>{lang_print id=9000007}</div>
<div class='portal_content whats_hot'>
{$whats_hot}
</div>
<div class='portal_spacer'></div>
{/if}
</div>
<div style='clear: both;'></div>
{include file='footer.tpl'}