<?php include VIEW_DIR.'mobile/common/menu/blog.tpl'; ?>

<?php if (!empty($this->_vars['entry'])):?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
	<img src="<?php e(BASE_URL); ?>resource/img/icons/script.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/blog/view/<?php e($this->_vars['entry']['id']); ?>/"><?php e($this->_vars['entry']['subject']); ?></a><br>
	<?php eDate($this->_vars['entry']['regist_date'], _('Y-m-d H:i')); ?><br>
	<img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/blog/comments/<?php e($this->_vars['base']['member']['id']); ?>/<?php e($this->_vars['entry']['id']); ?>/"><?php _e('Comments'); ?>&nbsp;(<?php e($this->_vars['entry']['posts']); ?>)</a><br></font>
<?php if ($this->_vars['base']['account']['id'] == $this->_vars['entry']['ref_account']): ?>
	<div align="right"><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/<?php e($this->_vars['entry']['id']); ?>/"><?php _e('Edit'); ?></a>&nbsp;/
	<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>private/post/blog/<?php e($this->_vars['entry']['id']); ?>/delete/"><?php _e('Delete'); ?></a><br></font></div>
<?php endif; ?>
	</td></tr>
</table>
<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
<?php endif; ?>

<?php if (empty($this->_vars['v_blg_trackback'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_blg_trackback']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_blg_trackback'] as $_row): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>"><?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_author'], 'vSmall,nickname'); ?></font></td>
	<td bgcolor="<?php Theme::exec()->bgColor(); ?>">
	<font size="<?php Theme::exec()->fontSize(); ?>"><?php printf($this->_vars['command'], $_row['ref_entry']); ?><?php HTML::htmlBody($_row['excerpt']); ?><br></font>
	<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><?php eDate($_row['modified'], _('m-d H:i')); ?></font></div>
<?php if ($this->_vars['base']['account']['id'] == $_row['ref_author']): ?>
	<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/blog/trackback/<?php e($_row['ref_entry']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a></font></div>
<?php elseif ($this->_vars['base']['account']['id'] == $this->_vars['base']['member']['id']): ?>
	<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/blog/trackback/<?php e($_row['ref_entry']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a></font></div>
<?php endif; ?>
	<hr color="<?php Theme::exec()->bgColor(); ?>" noshade="noshade"></td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_blg_trackback']); ?>
<?php endif; ?>
