{include file='header.tpl'}
{lang_print id=$forum_info.forum_desc}
{* SHOW MAINTENANCE DIV *} {if $setting.setting_forum_status == 2}
{lang_print id=6000113}
{/if}
{if $moderators|@count != 0}
{lang_print id=6000093} {section name=mod_loop loop=$moderators} {if $smarty.section.mod_loop.first != TRUE}, {/if} {$moderators[mod_loop]->user_displayname} {/section}
{/if}
{if $forum_permission.allowed_to_post} {/if}
{if $maxpage > 1} {lang_print id=1005} {if $maxpage > 6} {section name=page_loop start=1 loop=4} {$smarty.section.page_loop.index} {/section} {if $p > 2 && $p < $maxpage-1} {if $p-2 > 3}...{/if} {section name=page_loop start=$p-1 loop=$p+2} {if $smarty.section.page_loop.index > 3 && $smarty.section.page_loop.index < $maxpage-2} {$smarty.section.page_loop.index} {/if} {/section} {if $p+2 < $maxpage-2}...{/if} {else}...{/if} {section name=page_loop start=$maxpage-2 loop=$maxpage+1} {$smarty.section.page_loop.index} {/section} {else} {section name=page_loop start=1 loop=$maxpage+1} {$smarty.section.page_loop.index} {/section} {/if} {/if} {lang_print id=6000062}
{* SHOW MESSAGE ABOUT NO TOPICS *} {if $forum_info.forum_totaltopics == 0}
{lang_print id=6000068} {if $forum_permission.allowed_to_post}{lang_sprintf id=6000069 1=$forum_info.forum_id}{/if}
{* SHOW TOPIC LIST *} {else}
{section name=topic_loop loop=$topics} {/section}
{lang_print id=$forum_info.forum_title}
{lang_print id=6000063} {lang_print id=6000060}
{if $topics[topic_loop].forumtopic_sticky}{/if} {if $topics[topic_loop].forumtopic_closed}{/if} {$topics[topic_loop].forumtopic_subject}
{$topics[topic_loop].forumtopic_excerpt|truncate:70:"..."}
{* THERE IS A LAST POST IN THIS FORUM *} {if $topics[topic_loop].lastpost} {* LAST POST AUTHOR EXISTS *} {if $topics[topic_loop].lastpost_info.author->user_exists}
{if $topics[topic_loop].lastpost_info.forumpost_excerpt == ''} {lang_print id=6000123} {else} {$topics[topic_loop].lastpost_info.forumpost_excerpt|truncate:50:"..."} {/if}
{capture assign="lastpost_user"}{$topics[topic_loop].lastpost_info.author->user_displayname}{/capture}
{lang_sprintf id=6000095 1=$lastpost_user} {assign var='lastpost_date_basic' value=$datetime->time_since($topics[topic_loop].lastpost_info.forumpost_date)} - {lang_sprintf id=$lastpost_date_basic[0] 1=$lastpost_date_basic[1]}
{* AUTHOR DOES NOT EXIST *} {else}
{if $topics[topic_loop].lastpost_info.forumpost_excerpt == ''} {lang_print id=6000123} {else} {$topics[topic_loop].lastpost_info.forumpost_excerpt|truncate:50:"..."} {/if}
{capture assign="lastpost_user"}{if $topics[topic_loop].lastpost_info.forumpost_authoruser_id != 0}{lang_print id=1071}{else}{lang_print id=835}{/if}{/capture}
{lang_sprintf id=6000095 1=$lastpost_user} {assign var='lastpost_date_basic' value=$datetime->time_since($topics[topic_loop].lastpost_info.forumpost_date)} - {lang_sprintf id=$lastpost_date_basic[0] 1=$lastpost_date_basic[1]}
{/if} {* NO LAST POST *} {else} {lang_print id=6000094} {/if}
{if $forum_permission.allowed_to_post} {/if}
{lang_print id=6000062} {if $maxpage > 1} {lang_print id=1005} {if $maxpage > 6} {section name=page_loop start=1 loop=4} {$smarty.section.page_loop.index} {/section} {if $p > 2 && $p < $maxpage-1} {if $p-2 > 3}...{/if} {section name=page_loop start=$p-1 loop=$p+2} {if $smarty.section.page_loop.index > 3 && $smarty.section.page_loop.index < $maxpage-2} {$smarty.section.page_loop.index} {/if} {/section} {if $p+2 < $maxpage-2}...{/if} {else}...{/if} {section name=page_loop start=$maxpage-2 loop=$maxpage+1} {$smarty.section.page_loop.index} {/section} {else} {section name=page_loop start=1 loop=$maxpage+1} {$smarty.section.page_loop.index} {/section} {/if} {/if}
{/if} {include file='footer.tpl'}