<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 

include_once (THEMA_PATH.'/thema.php');

//게시판별 새글 여부 체크
$newpost = new_post(1); //1일

//메뉴만들기
$menu = amina_menu($gr_id, $bo_table, $gr_exclude, $bo_exclude, $newpost);

//현재 접속자수
$now_connect = trim(connect()); 

//내글반응
$response_cnt = ($my_response > 0) ? ' <b>'.number_format($my_response).'</b>' : '';

//사이즈
if(G5_IS_MOBILE) { //모바일
	$thema_layout = 'layout-m.css';
	$thema_html = 'm';
	$left_width = 0;
	$right_width = 0;
	$margin_width = 0;
	$body_width = '100%';
	$content_width = '100%';
} else { //PC
	$thema_layout = 'layout-pc.css';
	$thema_html = 'pc';
	$body_width = $content_width;
	if($left_width > 0) $body_width = $body_width + $left_width + $margin_width;
	if($right_width > 0) $body_width = $body_width + $right_width + $margin_width;
	$body_width = $body_width.'px';
	$content_width = $content_width.'px';
}

?>

<link rel="stylesheet" href="<?php echo COLORSET_URL; ?>/<?php echo $thema_layout; ?>" type="text/css" media="screen">
<style>
	#at-wrap { min-width:<?php echo $body_width; ?>; }
	#at-body { width:<?php echo $body_width; ?>; }
	<?php if($left_width > 0 || $right_width > 0) { ?>#at-wrap-content { float:left; width:<?php echo $content_width; ?>; }<?php } ?>
	<?php if($left_width > 0) { ?>#at-wrap-left { float:left; width:<?php echo $left_width; ?>px; margin-right:<?php echo $margin_width; ?>px; }<?php } ?>
	<?php if($right_width > 0) { ?>#at-wrap-right { float:left; width:<?php echo $right_width; ?>px; margin-left:<?php echo $margin_width; ?>px; }<?php } ?>
</style>

<div id="at-wrap">
	<div id="at-header">
		<?php include(THEMA_PATH.'/'.$thema_html.'/header.php'); ?>
	</div>

	<div class="clear"></div>

	<div id="at-body">
		<?php if($left_width > 0) { ?>
		    <div id="at-wrap-left">
			    <div id="at-left">
					<?php include(THEMA_PATH.'/'.$thema_html.'/side-left.php'); ?>
			    </div>
			</div>
		<?php } ?>
		<div id="at-wrap-content">
			<div id="at-content">
				<?php include(THEMA_PATH.'/'.$thema_html.'/title.php'); ?>

