<div class="<{$mydirname}>_container" id="<{$mydirname}>_container">

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

<h3><{$content.subject}></h3>

<{* admin controllers *}>
<{capture name="controllers"}>
	<{if $content.can_edit}>
		<a href="<{$mod_url}>/index.php?page=contentmanager&amp;content_id=<{$content.id}>">[<{$smarty.const._MD_PICO_LINK_EDITCONTENT}>]</a>
	<{/if}>

	<{if $xoops_isadmin}>
		<a href="<{$mod_url}>/admin/index.php?page=contents&amp;cat_id=<{$category.id}>">[<{$smarty.const._MD_PICO_LINK_BATCHCONTENTS}>]</a>
	<{/if}>
<{/capture}>


<{if trim($smarty.capture.controllers)}>
	<!-- controllers -->
	<div class="<{$mydirname}>_controllers">
		<{$smarty.capture.controllers}>
	</div>
<{/if}>

<!-- tags -->
<{if $content.tags_array}>
	<div class="<{$mydirname}>_tags">
		<{foreach from=$content.tags_array item="tag"}>
			<{$tag}>
		<{/foreach}>
	</div>
<{/if}>

<!-- content (body) -->
<a name="top_of_<{$mydirname}>_body" id="top_of_<{$mydirname}>_body"></a>
<div class="<{$mydirname}>_body" id="<{$mydirname}>_body">
<{$content.body}>
</div>

<!-- print icon -->
<{if $mod_config.show_printicon}>
	<div class="<{$mydirname}>_print_icon"><a href="<{$mod_url}>/<{$content.link}><{if $mod_config.use_wraps_mode || $mod_config.use_rewrite}>?<{else}>&amp;<{/if}>page=print"><img src="<{$mod_imageurl}>/icon_print.gif" border="0" alt="<{$smarty.const._MD_PICO_LINK_PRINTERFRIENDLY}>" /></a></div>
<{/if}>


<{if $category.isadminormod}>
	<!-- informations for admin -->
	<{$smarty.const._MD_PICO_CREATED}>:<{$content.created_time_formatted}> <{$content.poster_uname}>
	<{if $content.modified_time > $content.created_time}>
		&nbsp;
		<{$smarty.const._MD_PICO_MODIFIED}>:<{$content.modified_time_formatted}> <{$content.modifier_uname}>
	<{/if}>
	&nbsp;
	<{$smarty.const._MD_PICO_VIEWED}>:<{$content.viewed}>
	<br />
<{/if}>

<!-- page navigation -->
<{if $mod_config.show_pagenavi && $content.id}>
<div class="row">
	<div class="one third mobile padded align-left">
		<{if $prev_content.id}>
			<a href="<{$mod_url}>/<{$prev_content.link}>"><i class="icon-arrow-alt-circle-left icon-2x"></i></a><br />
			<{$prev_content.subject}>
		<{/if}>
	</div>
	<div class="one third mobile padded align-center">
		<a href="<{$mod_url}>/<{$category.link}>"><i class="icon-arrow-alt-circle-up icon-2x"></i></a><br />
		<{$category.title}>
	</div>
	<div class="one third mobile padded align-right">
	<{if $next_content.id}>
		<a href="<{$mod_url}>/<{$next_content.link}>"><i class="icon-arrow-alt-circle-right icon-2x"></i></a><br />
		<{$next_content.subject}>
	<{/if}>
	</div>
</div>
<{/if}>


<!-- d3forum comment integration -->
<{if $mod_config.comment_dirname && $mod_config.comment_forum_id && $content.allow_comment}>
	<{d3comment mydirname=$mydirname class="PicoD3commentContent"}>
<{/if}>

</div>
