<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php e(LANGUAGE); ?>" lang="<?php e(LANGUAGE); ?>">
	<head>
		<meta http-equiv="Content-Type" content='text/html; charset="utf-8"' />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta name="description" content="SNS" />
		<meta name="keywords" content="SNS" />
		<title><?php e(SNS_NAME); ?></title>
		<link rel="stylesheet" href="<?php e(BASE_URL); ?>resource/css/common.css" type="text/css" />
		<link rel="stylesheet" href="<?php Theme::Path(); ?>design.css" type="text/css" />
		<link rel="stylesheet" href="<?php e(BASE_URL); ?>resource/yui/menu/assets/menu.css" type="text/css" />
<?php foreach ($this->_css as $_row): ?>
		<link rel="stylesheet" href="<?php e(BASE_URL); ?>resource/<?php e($_row); ?>" type="text/css" /> 
<?php endforeach; ?>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/yui/json/json-min.js"></script>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/yui/container/container-min.js"></script>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/yui/connection/connection-min.js"></script>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/yui/menu/menu-min.js"></script>
<?php foreach ($this->_js as $_row): ?>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/<?php e($_row); ?>"></script>
<?php endforeach; ?>
		<script type="text/javascript" src="<?php e(BASE_URL); ?>resource/js/feed.js"></script>
	</head>
	<body class="yui-skin-sam">
		<!-- start:ヘッダー -->
		<div id="frameHeader">
			<div id="header">
				<div class="left">
					<div id="photoHeader"><a name="pageTop"></a>
<?php if (!empty($this->_vars['base']['member']['id'])): ?>
						<div id="photo"><?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['base']['member']['id'], 'photo'); ?><?php loadPlugin::callFunc('hitsuji_relation', $this->_vars['base']['account']['id'], $this->_vars['base']['member']['id']); ?></div>
<?php elseif (!empty($this->_vars['base']['community']['id'])): ?>
						<div id="photo"><?php loadPlugin::callFunc('hitsuji_community', $this->_vars['base']['community']['id'], 'photo,community'); ?></div>
<?php else :  ?>
						<div id="photo"><img src="<?php e(BASE_URL); ?>resource/img/sample/logo.gif" width="160" height="160" alt="__" align="absmiddle" /></div>
<?php endif; ?>
					</div>
				</div>
				<div class="right">
					<ul id="menuHeader">
						<li class="banner"><?php loadPlugin::callFunc('hitsuji_banner', POSITION_HEAD); ?></li>
						<li class="menubar"><?php include $this->_vars['base']['generalbar_tpl']; ?></li>
						<li class="menubar"><?php include $this->_vars['base']['groupbar_tpl']; ?></li>
						<li class="menubar"><?php loadPlugin::callFunc('hitsuji_banner', POSITION_BAR); ?></li>
					</ul>
				</div>
			</div>
		</div>
		<!-- /finish:ヘッダー -->

		<!-- start:メインフレーム -->
		<div id="frame">
			<!-- start:サイドメニュー -->
			<div class="left">
				<div id="sidebar">
<div><?php include $this->_vars['base']['sidebar_tpl']; ?></div><br />
<?php loadPlugin::callFunc('hitsuji_banner', POSITION_LEFT); ?>
				</div>
			</div>
			<!-- /finish:サイドメニュー -->

			<div class="left">
				<!-- start:メインコンテンツ -->
				<div id="content">
<?php include $this->_vars['base']['content_tpl']; ?>
				</div>
				<!-- /finish:メインコンテンツ -->
			</div>

			<!-- start:サイドメニュー -->
			<div class="left">
				<div id="rightbar">
<div><?php loadPlugin::callFunc('hitsuji_sideGadget', $this->_vars['base']['account']['id']); ?></div><br />
<?php loadPlugin::callFunc('hitsuji_banner', POSITION_RIGHT); ?>
				</div>
			</div>
			<!-- /finish:サイドメニュー -->

			<div class="left"><div id="pagetop"><a href="#pageTop"><img src="<?php e(BASE_URL); ?>resource/img/icons/page_top.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Page Top'); ?></a></div></div>
			<div style="clear: both;"><img alt="" src="<?php e(BASE_URL); ?>resource/img/blank.gif" width="600" height="1" /></div>
		</div>
		<!-- /finish:メインフレーム -->

		<!-- start:フッター -->
		<div id="footer">
			<div id="footer-info">
				<span id="copyright"><?php e(COPYRIGHT); ?></span>
				<a href="<?php e(HTTP_ACTION); ?>public/content/view/about/"><?php _e('About us'); ?></a> | 
				<a href="<?php e(HTTP_ACTION); ?>public/content/contact/"><?php _e('Contact us'); ?></a> | 
				<a href="<?php e(HTTP_ACTION); ?>public/content/view/privacy/"><?php _e('Privacy'); ?></a> | 
				<a href="<?php e(HTTP_ACTION); ?>public/content/view/terms/"><?php _e('Terms'); ?></a>
			</div>
		</div>
		<!-- /finish:フッター -->
	</body>
</html>
