<!-- start module contents -->
<div class="d3f_breadcrumbs">
	<{if $mod_config.show_breadcrumbs}>
	<a href="<{$mod_url}>/index.php"><{$smarty.const._MD_D3FORUM_TOP}></a>
	&nbsp;&gt;&nbsp;
	<{foreach from=$category.paths_raw key=parent_id item=parent_title_raw}>
		<a href="<{$mod_url}>/index.php?cat_id=<{$parent_id}>"><{$parent_title_raw|escape}></a>
		&nbsp;&gt;&nbsp;
	<{/foreach}>
	<a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>"><{$forum.title}></a>
	<{/if}>
	<{if $prev_topic.id || $next_topic.id}>
	(<{if $prev_topic.id}>
		<a href="<{$mod_url}>/index.php?topic_id=<{$prev_topic.id}>" title="<{$prev_topic.title}>"><{$smarty.const._MD_D3FORUM_LINK_PREVTOPIC}></a>
	<{/if}>
	<{if $prev_topic.id && $next_topic.id}>
	 | 
	<{/if}>
	<{if $next_topic.id}>
		<a href="<{$mod_url}>/index.php?topic_id=<{$next_topic.id}>" title="<{$next_topic.title}>"><{$smarty.const._MD_D3FORUM_LINK_NEXTTOPIC}></a>
	<{/if}>)
	<{/if}>
</div>

<h2 class="d3f_title" style="clear:both"><{$topic.title}></h2>

<{include file="db:`$mydirname`_inc_topicbar.html"}>

<{include file="db:`$mydirname`_inc_d3comment_summary.html"}>

<{include file="db:`$mydirname`_inc_postorder_links.html"}>

<hr />

<{if $pagenav}>
<div class="boxNavi" style="background-color:#66cdaa">
PAGE:
<{foreach from=$pagenav item=nav_}>
	<{if $nav_.url}><a href="<{$nav_.url}>" title="go to page <{$nav_.txt}>"><{$nav_.txt}></a>
	<{else}>
		<{$nav_.txt}>
	<{/if}>
<{/foreach}>
</div>
<{/if}>

<!-- top of posts -->
<div class="d3f_wrap">
<{foreach item=post from=$posts}>
	<{include file="db:`$mydirname`_inc_eachpost.html" post=$post caller="listposts" inner_link_format="#post_id%s"}>
<{/foreach}>
</div>
<!-- bottom of posts -->

<{if $pagenav}>
<div class="boxNavi" style="background-color:#66cdaa">
PAGE:
<{foreach from=$pagenav item=nav_}>
	<{if $nav_.url}><a href="<{$nav_.url}>" title="go to page <{$nav_.txt}>"><{$nav_.txt}></a>
	<{else}>
		<{$nav_.txt}>
	<{/if}>
<{/foreach}>
</div>
<{/if}>

<{include file="db:`$mydirname`_inc_postorder_links.html"}>

<!-- start post tree okino-->
<h3 class="head d3f_tree d3f_head"><{$smarty.const._MD_D3FORUM_POSTSTREE}></h3>

<{foreach from=$posts item=eachpost}>
<{if $eachpost.id == $post.id}>
	<{$eachpost.ul_in|replace:"<ul>":"<ul class='d3f_eachbranch'>\n\t"|replace:"<li>":"<li class='d3f_eachbranchitem d3f_currenttopic'><span style='padding-left:`$eachpost.depth_in_tree`0px;'>"}>
<{else}>
	<{$eachpost.ul_in|replace:"<ul>":"<ul class='d3f_eachbranch'>\n\t"|replace:"<li>":"<li class='d3f_eachbranchitem'><span style='padding-left:`$eachpost.depth_in_tree`0px;'>"}>
<{/if}>
	<a href="<{$mod_url}>/index.php?post_id=<{$eachpost.id}>" id="post_path<{$eachpost.unique_path}>" name="post_path<{$eachpost.unique_path}>"><img src="<{$mod_imageurl}>/posticon<{$eachpost.icon}>.gif" alt="<{$icon_meanings[$eachpost.icon]}>" /> <{$eachpost.subject}></a>
	(<{$eachpost.poster_uname}>, <{$eachpost.post_time_formatted}>)
	<{if $forum.isadminormod}><a href="<{$mod_url}>/index.php?page=cutpasteposts&amp;post_id=<{$eachpost.id}>"><img src="<{$mod_imageurl}>/adminicon_cutpaste.gif" alt="<{$smarty.const._MD_D3FORUM_CUTPASTEPOSTS}>" /></a><{/if}></span>
<{$eachpost.ul_out}>
<{/foreach}></li></ul>
<!-- end topic tree -->

<!-- quick reply form -->
<{if $first_post.can_reply}>
	<{include file="db:`$mydirname`_inc_post_form_quick.html" uname=$xoops_uname h2_title=$smarty.const._MD_D3FORUM_POSTASSAMETOPIC quick_form_mode="sametopic" subject_raw=$first_post.subject_raw}>
<{/if}>

<!-- forum jump -->
<form name="forum_jump_box" action="<{$mod_url}>/index.php" method="get" style="clear:both;" class="d3f_form">
	<p>
		<select name="forum_id"><{$forum_jumpbox_options}></select>
		<input type="submit" value="<{$smarty.const._MD_D3FORUM_BTN_JUMPTOFORUM}>" />
		&nbsp;
		<a href="<{$mod_url}>/index.php?page=search"><{$smarty.const._MD_D3FORUM_LINK_ADVSEARCH}></a>
	</p>
</form>

<hr class="notification" />
<{include file='db:system_notification_select.html'}>
<!-- end module contents -->
