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

// ---------------------------------------------------------
// 경고! 이하 내용은 수정하지 마세요!
// ---------------------------------------------------------

// Font
if(!$at_set['font']) $at_set['font'] = 'ko';

$pc_menu = (G5_IS_MOBILE) ? '' : ' pc-menu';

//Setup Column
if($is_wide_layout) { //메인은 와이드 고정
	$col_content = 13;
} else {
	$col_content = ($at_set['page']) ? $at_set['page'] : 9;
}

$col_content = (int)$col_content;

$container = 'container';
if($col_content == 13) { // Full Wide
	$col_name = '';
} else if($col_content == 12) { // One Column
	$col_name = 'one';
} else { // Two Column
	$container = '';
	$col_name = 'two';
	$col_side = 12 - $col_content;
}

$at_set['background'] = ($at_set['background']) ? $at_set['background'] : 'none';

//Stylesheet
add_stylesheet('<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,300,500,500italic,700,900,400italic,700italic">',0);
if(_RESPONSIVE_) {
	add_stylesheet('<link rel="stylesheet" href="'.THEMA_URL.'/assets/bs3/css/bootstrap.min.css" type="text/css" media="screen" class="thema-mode">',0);
} else {
	add_stylesheet('<link rel="stylesheet" href="'.THEMA_URL.'/assets/bs3/css/bootstrap-apms.min.css" type="text/css" media="screen" class="thema-mode">',0);
}
add_stylesheet('<link rel="stylesheet" href="'.COLORSET_URL.'/colorset.css" type="text/css" media="screen" class="thema-colorset">',0);
?>
<style> 
	body { 
		background-color: <?php echo $at_set['body_bgcolor'];?>;
		<?php if(G5_IS_MOBILE) { ?>
			background-repeat: no-repeat; background-position: 50% 50%; background-size:cover;
		<?php } else { ?>
			background-repeat: no-repeat; background-position: 50% 50%; background-attachment: fixed; background-size:cover;
		<?php } ?>
		background-image: <?php echo ($at_set['body_background'] && $at_set['body_background'] != 'none') ? "url('".$at_set['body_background']."')" : "none";?>; 
	}
</style>
