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

<?php if (empty($this->_vars['v_com_names'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>

<?php HTML::mobilePager($this->_vars['p_com_names']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr>
<?php foreach ($this->_vars['v_com_names'] as $num=>$_row): ?>
		<td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
			<?php loadPlugin::callFunc('hitsuji_community', $_row['ref_community'], 'community,vSmall'); ?>
			<?php printf($this->_vars['command'], $_row['id'], $_row['id'], $_row['ref_community']); ?><br>
		</td>
<?php if (($num % 3)==2): ?></tr><tr><?php endif; ?>
<?php endforeach; ?>
	</tr>
</table>
<?php HTML::mobilePager($this->_vars['p_com_names']); ?>
<?php endif; ?>
