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

//링크 & 첨부
$attach_list = '';
if(!$is_admin && $view['blind']) {
	;
} else	{
	//글주소(프린트)
	if($board['is_print']) {
		$attach_list .= '<li>문서주소 - '.$lurl."\n";
	}

	//링크
	for ($i=1; $i <= G5_LINK_COUNT; $i++) {
		if ($view['link'][$i]) {
			$link = cut_str($view['link'][$i], 70);
			$attach_list .= '<li>관련링크 - <a href="'.$view['link_href'][$i].'" target="_blank">'.$link.' <span class="cnt">['.$view['link_hit'][$i].']</span></a></li>'."\n";
		}
	}			

	//첨부
	for ($i=0; $i < count($view['attach']['file']); $i++) {
		$attach_list .= "<li>첨부파일 - <a href=\"javascript:file_download('{$view['attach']['file'][$i]['href']}&js=on', '{$view['attach']['file'][$i]['source']}');\" title=\"{$view['attach']['file'][$i]['content']}\">{$view['attach']['file'][$i]['source']} ({$view['attach']['file'][$i]['size']}) <span class=\"cnt\">[{$view['attach']['file'][$i]['download']}]</span></a></li>\n";
	}
}

?>
<div style="height:10px; border-top:4px solid #333;"></div>
<div class="view-head-wrap">
	<div class="view-head">
		<header>
			<h1 id="bo_v_title" class="view-subject">
			<?php if(!$set['hide_view_icon']) echo $view['fa_icon']; ?><?php echo $view['subject']; ?>
			</h1>
		</header>
		<section id="bo_v_info">
		<ul>
			<?php if(!$set['hide_view_name']) { ?>
				<li class="name"><?php echo $view['icon_level'].' '.$view['name'];?></li>
			<?php } ?>
			<?php if($board['bo_use_nogood'] && !$set['hide_view_nogood']) { ?>
				<li><span class="sound_only">비추천 </span><span class="nogood-icon"><?php echo $view['wr_nogood'];?></span></li>
			<?php } ?>
			<?php if($board['bo_use_good'] && !$set['hide_view_good']) { ?>
				<li><span class="sound_only">추천 </span><span class="good-icon"><?php echo $view['wr_good'];?></span></li>
			<?php } ?>
			<li>조회 <span class="cnt"><?php echo $view['wr_hit']; ?></span></li>
			<?php if(!$set['hide_view_star'] && $amina['star']) { ?>
				<li><?php echo amina_star_mark($amina['star_color'],$view['wr_7'],'s');?></li>
			<?php } ?>
			<?php if(!$set['hide_view_cate'] && $view['ca_name']) { ?>
				<li><?php echo $view['ca_name']; ?></li>
			<?php } ?>
			<li class="last"><span class="cnt"><?php echo date("Y.m.d H:i", strtotime($view['wr_datetime'])); ?></span></li>
		</ul>
		<div class="clear"></div>
		</section>
	</div>
	<div class="clear"></div>
</div>
<div class="clear"></div>
<?php if($attach_list) { //첨부 ?>
	<section id="bo_v_file">
		<ul class="view-attach">
			<?php echo $attach_list; ?>
		</ul>
	</section>
<?php } ?>
<article id="bo_v_atc">
	<?php echo $view['attach_skin']; ?>
	<?php echo $view['related_skin']; ?>
	<?php echo $view['poll_up']; ?>
	<div class="view-content">
		<?php echo $view['content']; ?>
		<div class="clear"></div>
	</div>
	<?php echo $view['poll_down']; ?>
	<?php echo $view['star_skin']; ?>
	<?php echo $daum_view; ?>
	<?php echo $view['good_skin']; ?>
	<?php echo $view['sign_skin']; ?>
	<?php if($view['ccl']) { ?>
		<div class="view-ccl">
			<img src="<?php echo AMINA_URL;?>/img/<?php echo $view['ccl_icon']; ?>" alt="" />
			본 게시물은	<a href="<?php echo $view['ccl_deed']; ?>" target="_blank">크리에이티브 커먼즈 <?php echo $view['ccl']; ?> 2.0 대한민국 라이선스</a>에 따라 이용할 수 있습니다.
		</div>
	<?php } ?>
	<?php if($view['tag']) { ?>
		<div class="view-tag">
			<img src="<?php echo AMINA_URL; ?>/img/icon_tag.gif" alt="" /> <?php echo $view['tag']; ?>
		</div>
	<?php } ?>	
</article>