<?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['item'])):?>
	<?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 bgcolor="<?php Theme::exec()->bgColor(); ?>">
		<a href=""><img src="<?php e($this->_vars['item']['small_img']); ?>" alt="<?php e($this->_vars['item']['item_code']); ?>"></a><br>
		<font color="<?php Theme::exec()->columnColor(); ?>"><?php e($this->_vars['item']['title']); ?></font><br>
		<font size="<?php Theme::exec()->fontSize(); ?>"><?php HTML::htmlBody($this->_vars['item']['comment']); ?><br>
		<a href="<?php e($this->_vars['item']['view_url']); ?>"><?php printf(_('More at %s'), $this->_vars['atService']); ?></a><br></font>

		<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>">
		<img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>public/review/view/<?php e($this->_vars['service']); ?>/<?php e($this->_vars['item']['item_code']); ?>/"><?php _e('View list'); ?>&nbsp;(<?php e($this->_vars['p_rev_trackback']['maxrow']); ?>)</a><br>
<?php if ($this->_vars['base']['account']['status'] != STATUS_GUEST): ?>
		<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); ?>service=<?php e($this->_vars['service']); ?>&item_code=<?php e($this->_vars['item']['item_code']); ?>"><?php _e('Write a Review'); ?></a></font></div>
<?php endif; ?>
	</td></tr>
</table>
<?php endif; ?>

<?php if (!empty($this->_vars['v_rev_trackback'])):?>
<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
<?php HTML::mobilePager($this->_vars['p_rev_trackback']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_rev_trackback'] as $_row): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
		<a href="<?php e($_row['url']); ?>"><?php e($_row['title']); ?></a><?php eDate($_row['modified'], _('Y-m-d H:i')); ?><br>
		<?php HTML::htmlBody($_row['excerpt']); ?><br>
	</td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_rev_trackback']); ?>
<?php endif; ?>
