<?php if ($this->_vars['base']['account']['status'] != STATUS_GUEST): ?>
<?php include VIEW_DIR.'mobile/common/menu/private.tpl'; ?><?php else : ?>
<?php include VIEW_DIR.'mobile/common/menu/public.tpl'; ?><?php endif; ?>

<?php if (empty($this->_vars['article'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td align="center" bgcolor="<?php Theme::exec()->bgTitleColor(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/page.gif" width="16" height="16" alt="&gt;">&nbsp;<?php e($this->_vars['article']['subject']); ?></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
		<?php eDate($this->_vars['article']['regist_date'], _('Y-m-d H:i')); ?>&nbsp;
		<img src="<?php e(BASE_URL); ?>resource/img/icons/<?php e($this->_vars['base']['visibility_icon'][$this->_vars['article']['visibility']]); ?>" width="16" height="16" alt="&gt;">
	</td></tr>
</table>

<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade"><font size="<?php Theme::exec()->fontSize(); ?>">
<?php HTML::htmlBody($this->_vars['article']['body']); ?></font>
<?php endif; ?>


<?php if (!empty($this->_vars['v_com_trackback'])):?>
<?php HTML::mobilePager($this->_vars['p_com_trackback']); ?>
<a name="Trackbacks"></a><table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_com_trackback'] as $_row): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_author'], 'vSmall,nickname'); ?><br></td>
		<td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
			<a href="<?php e($_row['url']); ?>"><?php e($_row['title']); ?></a><br>
			<?php HTML::htmlBody($_row['excerpt']); ?>
			<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>">
				<?php eDate($_row['modified'], _('Y-m-d H:i')); ?>
<?php if ($this->_vars['base']['account']['id'] == $_row['ref_author']): ?>
				<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/article/trackback/<?php e($this->_vars['article']['id']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a>
<?php endif; ?></font></div>
	</td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_com_trackback']); ?>
<?php endif; ?>

<?php if ($this->_vars['base']['account']['status'] != STATUS_GUEST): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td><font size="<?php Theme::exec()->fontSize(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/book_edit.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>private/post/blog/0/<?php e(US); ?>ref_content=<?php e($this->_vars['article']['id']); ?>"><?php _e('Write an article related'); ?></a><br></font></td></tr>
</table>
<?php endif; ?>
