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

<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<img src="<?php e(BASE_URL); ?>resource/img/icons/picture.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>community/setting/photo/<?php e($this->_vars['base']['community']['id']); ?>/"><?php _e('Photo'); ?></a>
		<img src="<?php e(BASE_URL); ?>resource/img/icons/layout_content.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>community/setting/theme/<?php e($this->_vars['base']['community']['id']); ?>/"><?php _e('Theme Select'); ?></a>
	<br></td></tr>
</table>

<?php if (empty($this->_vars['selected'])):?>
<?php if (empty($this->_vars['v_des_theme'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_des_theme']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_des_theme'] as $_row): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<font color="<?php Theme::exec()->columnColor(); ?>"><?php e($_row['theme']); ?></font>
		<img src="<?php e(BASE_URL); ?>resource/img/icons/wrench.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/setting/theme/<?php e($this->_vars['base']['community']['id']); ?>/<?php e($_row['id']); ?>/<?php e(US); ?>_mpnnc=<?php e($this->_vars['base']['nonce']); ?>"><?php _e('Select'); ?></a>
	</td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>">
		<a href="<?php e(BASE_URL); ?>resource/theme/?id=<?php e($_row['id']); ?>" target="_blank"><img src="<?php e(BASE_URL.ARCHIVES_THEME_PATH.$_row['id']); ?>/capt.png" width="160" height="109"></a><br>		
		<?php HTML::htmlBody($_row['comment']); ?>
	<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade"></td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_des_theme']); ?>
<?php endif; ?>
<?php else: ?>
	<?php _e('Selected Theme.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php endif; ?>
