최근게시물의 폰트 크기는 어떻게 조정 할수 있는지요? 정보
최근게시물의 폰트 크기는 어떻게 조정 할수 있는지요?본문
simple_basic4 스킨을 이용하여 최근게시물을 설치하여 사용중입니다.(불땅섬이용)
최근게시물의 폰트 크기는 어떻게 조정 할수 있는지요?
고수분들 부탁드립니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "gu" ;
#$g4['title'] = "gu" ;
include_once("./_head.php");
?>
<html>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table align="center" cellpadding="0" cellspacing="0" width="840">
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840">
<p align="right"><a href="../"><img src="img/home.gif" width="61" height="11" border="0"></a><a href="../sitemap.htm"><img src="img/sitemap.gif" width="73" height="11" border="0"></a><a href="../bbs/board.php?bo_table=qa"><img src="img/contact.gif" width="90" height="11" border="0"></a><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="840" height="50">
<param name="movie" value="joongang840.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="840" height="50" src="joongang840.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="840" height="140">
<param name="movie" value="topmain3.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="840" height="140" src="topmain3.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", heng, 1, 60, "news////200/150/500"); ?></p> //"여기의 폰트를 변경하고 싶습니다"
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", sajin, 6, 20, "gallery/100/75/20/5/6"); ?>
</p>
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", gongi, 5, 50, "basic/on/on/on"); ?>
</p>
</td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840">
<p><? include "tail.php"; ?></p>
</td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="965"> </td>
</tr>
</table>
<p align="center"> </p>
</body>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</html>
최근게시물의 폰트 크기는 어떻게 조정 할수 있는지요?
고수분들 부탁드립니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "gu" ;
#$g4['title'] = "gu" ;
include_once("./_head.php");
?>
<html>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<table align="center" cellpadding="0" cellspacing="0" width="840">
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840">
<p align="right"><a href="../"><img src="img/home.gif" width="61" height="11" border="0"></a><a href="../sitemap.htm"><img src="img/sitemap.gif" width="73" height="11" border="0"></a><a href="../bbs/board.php?bo_table=qa"><img src="img/contact.gif" width="90" height="11" border="0"></a><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="840" height="50">
<param name="movie" value="joongang840.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="840" height="50" src="joongang840.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="840" height="140">
<param name="movie" value="topmain3.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="840" height="140" src="topmain3.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></p>
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", heng, 1, 60, "news////200/150/500"); ?></p> //"여기의 폰트를 변경하고 싶습니다"
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", sajin, 6, 20, "gallery/100/75/20/5/6"); ?>
</p>
</td>
</tr>
<tr>
<td width="840">
<p><?=latest("simple_basic4", gongi, 5, 50, "basic/on/on/on"); ?>
</p>
</td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="840">
<p><? include "tail.php"; ?></p>
</td>
</tr>
<tr>
<td width="840"> </td>
</tr>
<tr>
<td width="965"> </td>
</tr>
</table>
<p align="center"> </p>
</body>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</html>
댓글 전체
스킨 안에 css나 소스에서 수정 가능 하실듯 합니다
해당 스킨 폴더 안의 latest.skin.php 파일에서 수정을 원하시는 부분의 스타일시트를 확인해 보세요.
latest.skin.php 입니다.
<?php
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
global $is_admin, $member;
include_once("$g4[path]/lib/thumb.lib.php");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$options_value = explode("/",$options);
$n4_gallery_width = $options_value[1]; //갤러리형 썸네일 가로 크기
$n4_gallery_height = $options_value[2]; //갤러리형 썸네일 세로 크기
$n4_gallery_margin = $options_value[3]; //갤러리형 썸네일 좌우 여백
$n4_news_width = $options_value[4]; //뉴스형 썸네일 가로 크기
$n4_news_height = $options_value[5]; //뉴스형 썸네일 세로 크기
$thumb_quality = '90';
$filter[type] = '99';
$filter[arg1] = '100';
$filter[arg2] = '1';
$filter[arg3] = '2';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$n4_gallery_margin_total = $options_value[5] * ($n4_gallery_margin * 2);
$n4_gallery_width_total = $n4_gallery_width * $options_value[5];
?>
<script type="text/javascript" src="<?php echo $g4[path]; ?>/js/sideview.js"></script>
<style type="text/css">
.n4_title_wrap {width:100%; height:26px; border:1px solid #ccc}
.n4_title a:link, .n4_title a:visited, .n4_title a:active, .n4_title a:hover {float:left; text-decoration:none; padding-left:8px; white-space:nowrap; font:bold 12px gulim, tahoma; color:#222; line-height:28px}
.n4_right_wrap {float:right; margin-top:3px; margin-right:8px; width:150px}
.n4_btn_admin {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -5px 0; width:10px; height:18px}
.n4_btn_write {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -15px 0; width:20px; height:18px}
.n4_btn_more {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -35px 0; width:10px; height:18px}
.n4_new {float:left; margin-left:5px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -48px -2px; width:11px; height:18px}
.n4_writer {float:right; margin-right:2px; width:70px; color:#999; white-space:nowrap; overflow:hidden}
.n4_writer .member {font:normal 12px gulim, tahoma; color:#999}
.n4_writer .guest {font:normal 12px gulim, tahoma; color:#999}
.n4_date {float:right; margin:0 5px 0 7px; width:35px; color:#999; white-space:nowrap; overflow:hidden}
.n4_no_list {text-align:center; color:#999}
.n4_latest_wrap {clear:both; position:relative}
.n4_latest_wrap ul {clear:both; position:relative; margin:0; list-style:none; text-align:left}
.n4_latest_wrap ul li {margin:5px 0; padding-left:9px; height:20px; vertical-align:bottom; border-bottom:1px dotted #ebebeb; font:normal 12px gulim, tahoma; color:#999}
.n4_list a:link, .n4_list a:visited, .n4_list a:active, .n4_list a:hover {float:left; text-decoration:none; font:normal 12px gulim, tahoma; color:#555}
.n4_list_cmt {margin-left:4px; font:normal 11px gulim, tahoma; color:#888}
<?php if ($options_value[0] == 'gallery') { //갤러리형 css ?>
.n4_gallery_wrap {clear:both; position:relative}
.<?php echo $bo_table; ?>_n4_thumb {margin:0 auto; width:<?php echo $n4_gallery_width_total + $n4_gallery_margin_total; ?>px; #width:<?php echo $n4_gallery_width_total + $n4_gallery_margin_total + $n4_gallery_margin; ?>px; text-align:center}
.<?php echo $bo_table; ?>_n4_thumb ul {margin:10px 0 0 0; padding:0; list-style:none}
.<?php echo $bo_table; ?>_n4_thumb ul li {float:left; margin:0 <?php echo $n4_gallery_margin; ?>px; vertical-align:top}
.<?php echo $bo_table; ?>_n4_thumb ul li p {margin:5px 0 <?php echo $options_value[4]; ?>px; width:<?php echo $n4_gallery_width - 10; ?>px; font-size:0; overflow-x:hidden}
.thumb_subject {font:normal 11px dotum, tahoma; color:#777; letter-spacing:-1px; white-space:nowrap}
<?php } else if ($options_value[0] == 'news') { //뉴스형 css ?>
.<?php echo $bo_table; ?>_n4_news_wrap {position:relative; padding-bottom:8px; width:100%; height:<?php echo $n4_news_height + 8; ?>px; border-bottom:1px dotted #ebebeb}
.<?php echo $bo_table; ?>_n4_news_view {float:left; margin-top:8px; padding:0 9px; height:<?php echo $n4_news_height; ?>px; text-align:left; overflow:hidden}
.<?php echo $bo_table; ?>_n4_news_view a:link, .<?php echo $bo_table; ?>_n4_news_view a:visited, .<?php echo $bo_table; ?>_n4_news_view a:active, .<?php echo $bo_table; ?>_n4_news_view a:hover {text-decoration:none; font:normal 11px dotum, tahoma; color:#777; letter-spacing:-1px; line-height:17px; vertical-align:top}
<?php } ?>
</style>
<?php if ($options_value[0] == 'gallery') { //상단 공통 부분 ?>
<div class="n4_gallery_wrap">
<?php } else { ?>
<div class="n4_latest_wrap">
<?php } ?>
<div class="n4_title_wrap">
<div class="n4_title"><a href="<?php echo $g4[bbs_path]; ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo $board[bo_subject]; ?></a></div>
<div class="n4_right_wrap">
<div class="n4_btn_more"><a href="<?php echo $g4[bbs_path] ?>/board.php?bo_table=<?php echo $bo_table ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="더보기" title="더보기"></a></div>
<?php if ($member[mb_level] >= $board[bo_write_level]) { ?>
<div class="n4_btn_write"><a href="<?php echo $g4[bbs_path]; ?>/write.php?bo_table=<?php echo $bo_table; ?><?php echo $write_href; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="20" height="18" border="0" alt="글쓰기" title="글쓰기"></a></div>
<?php } ?>
<?php if ($is_admin == "super" || $is_auth) { ?>
<div class="n4_btn_admin"><a href="<?php echo $g4[path]; ?>/adm/board_form.php?w=u&bo_table=<?php echo $bo_table; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="게시판설정" title="게시판설정"></a></div>
<?php } ?>
</div>
</div>
<?php if ($options_value[0] == 'basic') { //일반형 최신글 ?>
<ul style="margin-top:5px; padding:3px 0 5px 0">
<?php for ($i = 0; $i < count($list); $i++) { ?>
<li class="n4_list">
<?php
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
if ($list[$i]['comment_cnt'])
echo "<a href=\"{$list[$i]['comment_href']}\"><span class=\"n4_list_cmt\">{$list[$i]['comment_cnt']}</span></a>";
if ($list[$i]['icon_new'])
echo "<span class=\"n4_new\"><img src='{$latest_skin_path}/img/none.gif' width='11' height='18' alt='' title=''></span>";
if ($options_value[3] == 'on')
echo "<span class=\"n4_date\">{$list[$i][datetime2]}</span>";
if ($options_value[1] == 'on') {
if ($options_value[2] == 'on')
echo "<span class=\"n4_writer\">{$list[$i][name]}</span>";
else
echo "<span class=\"n4_writer\">{$list[$i][wr_name]}</span>";
}
?>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
<?php } else if ($options_value[0] == 'gallery') { //갤러리형 최신글 ?>
<div style="text-align:center">
<div class="<?php echo $bo_table; ?>_n4_thumb">
<ul>
<?php for ($i = 0; $i < count($list); $i++) {
$noimg = $latest_skin_path."/img/_noimg.gif";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if ($list[$i][wr_id]) {
$thumb = thumbnail($file, $n4_gallery_width, $n4_gallery_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
if ($edit_img = $list[$i]['wr_content']) {
if (@eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
$file = $g4[path].'/' . $tmp[0]; //파일명
$thumb = thumbnail($file, $n4_gallery_width, $n4_gallery_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
}
?>
<li>
<a href="<?php echo $list[$i][href]; ?>"><img src="<?php echo $thumb; ?>" width="<?php echo $n4_gallery_width; ?>" height="<?php echo $n4_gallery_height; ?>" onmouseover="this.style.filter='gray'" onmouseout="this.style.filter=''" border="0" alt="" title=""></a>
<p><a href="<?php echo $list[$i][href]; ?>"><span class="thumb_subject"><?php echo $list[$i]['subject']; ?></span></a></p>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
</div>
</div>
<?php } else if ($options_value[0] == 'news') { //뉴스형 최신글 ?>
<?php for ($j = 0; $j < count($list); $j++) {
$noimg = $latest_skin_path."/img/_noimg.gif";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$j][file][0][path] .'/'. $list[$j][file][0][file];
if ($list[$j][wr_id]) {
$thumb = thumbnail($file, $n4_news_width, $n4_news_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
if ($edit_img = $list[$j]['wr_content']) {
if (@eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
$file = $g4[path].'/' . $tmp[0]; //파일명
$thumb = thumbnail($file, $n4_news_height, $n4_news_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
$content = cut_str(strip_tags($list[$j][wr_content]), $options_value[6], '');
}
?>
<?php if ($j == 0) { ?>
<div class="<?php echo $bo_table; ?>_n4_news_wrap">
<div class="<?php echo $bo_table; ?>_n4_news_view"><a href="<?php echo $list[$j][href]; ?>"><img src="<?php echo $thumb; ?>" width="<?php echo $n4_news_height; ?>" height="<?php echo $n4_news_height; ?>" border="0" alt="" title="" align="left" style="margin-right:10px"></a>
<a href="<?php echo $list[$j][href]; ?>"><?php echo $content; ?></a>
</div>
</div>
<?php } ?>
<?php } ?>
<ul style="padding:0 0 5px 0">
<?php for ($i = 1; $i < count($list); $i++) { ?>
<li class="n4_list">
<?php
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
if ($list[$i]['comment_cnt'])
echo "<a href=\"{$list[$i]['comment_href']}\"><span class=\"n4_list_cmt\">{$list[$i]['comment_cnt']}</span></a>";
if ($list[$i]['icon_new'])
echo "<span class=\"n4_new\"><img src='{$latest_skin_path}/img/none.gif' width='11' height='18' alt='' title=''></span>";
if ($options_value[3] == 'on')
echo "<span class=\"n4_date\">{$list[$i][datetime2]}</span>";
if ($options_value[1] == 'on') {
if ($options_value[2] == 'on')
echo "<span class=\"n4_writer\">{$list[$i][name]}</span>";
else
echo "<span class=\"n4_writer\">{$list[$i][wr_name]}</span>";
}
?>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
<?php } ?>
<?php
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
global $is_admin, $member;
include_once("$g4[path]/lib/thumb.lib.php");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$options_value = explode("/",$options);
$n4_gallery_width = $options_value[1]; //갤러리형 썸네일 가로 크기
$n4_gallery_height = $options_value[2]; //갤러리형 썸네일 세로 크기
$n4_gallery_margin = $options_value[3]; //갤러리형 썸네일 좌우 여백
$n4_news_width = $options_value[4]; //뉴스형 썸네일 가로 크기
$n4_news_height = $options_value[5]; //뉴스형 썸네일 세로 크기
$thumb_quality = '90';
$filter[type] = '99';
$filter[arg1] = '100';
$filter[arg2] = '1';
$filter[arg3] = '2';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
$n4_gallery_margin_total = $options_value[5] * ($n4_gallery_margin * 2);
$n4_gallery_width_total = $n4_gallery_width * $options_value[5];
?>
<script type="text/javascript" src="<?php echo $g4[path]; ?>/js/sideview.js"></script>
<style type="text/css">
.n4_title_wrap {width:100%; height:26px; border:1px solid #ccc}
.n4_title a:link, .n4_title a:visited, .n4_title a:active, .n4_title a:hover {float:left; text-decoration:none; padding-left:8px; white-space:nowrap; font:bold 12px gulim, tahoma; color:#222; line-height:28px}
.n4_right_wrap {float:right; margin-top:3px; margin-right:8px; width:150px}
.n4_btn_admin {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -5px 0; width:10px; height:18px}
.n4_btn_write {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -15px 0; width:20px; height:18px}
.n4_btn_more {float:right; margin:0 1px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -35px 0; width:10px; height:18px}
.n4_new {float:left; margin-left:5px; background:url(<?php echo $latest_skin_path; ?>/img/icon.gif) -48px -2px; width:11px; height:18px}
.n4_writer {float:right; margin-right:2px; width:70px; color:#999; white-space:nowrap; overflow:hidden}
.n4_writer .member {font:normal 12px gulim, tahoma; color:#999}
.n4_writer .guest {font:normal 12px gulim, tahoma; color:#999}
.n4_date {float:right; margin:0 5px 0 7px; width:35px; color:#999; white-space:nowrap; overflow:hidden}
.n4_no_list {text-align:center; color:#999}
.n4_latest_wrap {clear:both; position:relative}
.n4_latest_wrap ul {clear:both; position:relative; margin:0; list-style:none; text-align:left}
.n4_latest_wrap ul li {margin:5px 0; padding-left:9px; height:20px; vertical-align:bottom; border-bottom:1px dotted #ebebeb; font:normal 12px gulim, tahoma; color:#999}
.n4_list a:link, .n4_list a:visited, .n4_list a:active, .n4_list a:hover {float:left; text-decoration:none; font:normal 12px gulim, tahoma; color:#555}
.n4_list_cmt {margin-left:4px; font:normal 11px gulim, tahoma; color:#888}
<?php if ($options_value[0] == 'gallery') { //갤러리형 css ?>
.n4_gallery_wrap {clear:both; position:relative}
.<?php echo $bo_table; ?>_n4_thumb {margin:0 auto; width:<?php echo $n4_gallery_width_total + $n4_gallery_margin_total; ?>px; #width:<?php echo $n4_gallery_width_total + $n4_gallery_margin_total + $n4_gallery_margin; ?>px; text-align:center}
.<?php echo $bo_table; ?>_n4_thumb ul {margin:10px 0 0 0; padding:0; list-style:none}
.<?php echo $bo_table; ?>_n4_thumb ul li {float:left; margin:0 <?php echo $n4_gallery_margin; ?>px; vertical-align:top}
.<?php echo $bo_table; ?>_n4_thumb ul li p {margin:5px 0 <?php echo $options_value[4]; ?>px; width:<?php echo $n4_gallery_width - 10; ?>px; font-size:0; overflow-x:hidden}
.thumb_subject {font:normal 11px dotum, tahoma; color:#777; letter-spacing:-1px; white-space:nowrap}
<?php } else if ($options_value[0] == 'news') { //뉴스형 css ?>
.<?php echo $bo_table; ?>_n4_news_wrap {position:relative; padding-bottom:8px; width:100%; height:<?php echo $n4_news_height + 8; ?>px; border-bottom:1px dotted #ebebeb}
.<?php echo $bo_table; ?>_n4_news_view {float:left; margin-top:8px; padding:0 9px; height:<?php echo $n4_news_height; ?>px; text-align:left; overflow:hidden}
.<?php echo $bo_table; ?>_n4_news_view a:link, .<?php echo $bo_table; ?>_n4_news_view a:visited, .<?php echo $bo_table; ?>_n4_news_view a:active, .<?php echo $bo_table; ?>_n4_news_view a:hover {text-decoration:none; font:normal 11px dotum, tahoma; color:#777; letter-spacing:-1px; line-height:17px; vertical-align:top}
<?php } ?>
</style>
<?php if ($options_value[0] == 'gallery') { //상단 공통 부분 ?>
<div class="n4_gallery_wrap">
<?php } else { ?>
<div class="n4_latest_wrap">
<?php } ?>
<div class="n4_title_wrap">
<div class="n4_title"><a href="<?php echo $g4[bbs_path]; ?>/board.php?bo_table=<?php echo $bo_table; ?>"><?php echo $board[bo_subject]; ?></a></div>
<div class="n4_right_wrap">
<div class="n4_btn_more"><a href="<?php echo $g4[bbs_path] ?>/board.php?bo_table=<?php echo $bo_table ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="더보기" title="더보기"></a></div>
<?php if ($member[mb_level] >= $board[bo_write_level]) { ?>
<div class="n4_btn_write"><a href="<?php echo $g4[bbs_path]; ?>/write.php?bo_table=<?php echo $bo_table; ?><?php echo $write_href; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="20" height="18" border="0" alt="글쓰기" title="글쓰기"></a></div>
<?php } ?>
<?php if ($is_admin == "super" || $is_auth) { ?>
<div class="n4_btn_admin"><a href="<?php echo $g4[path]; ?>/adm/board_form.php?w=u&bo_table=<?php echo $bo_table; ?>"><img src="<?php echo $latest_skin_path; ?>/img/none.gif" width="10" height="18" border="0" alt="게시판설정" title="게시판설정"></a></div>
<?php } ?>
</div>
</div>
<?php if ($options_value[0] == 'basic') { //일반형 최신글 ?>
<ul style="margin-top:5px; padding:3px 0 5px 0">
<?php for ($i = 0; $i < count($list); $i++) { ?>
<li class="n4_list">
<?php
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
if ($list[$i]['comment_cnt'])
echo "<a href=\"{$list[$i]['comment_href']}\"><span class=\"n4_list_cmt\">{$list[$i]['comment_cnt']}</span></a>";
if ($list[$i]['icon_new'])
echo "<span class=\"n4_new\"><img src='{$latest_skin_path}/img/none.gif' width='11' height='18' alt='' title=''></span>";
if ($options_value[3] == 'on')
echo "<span class=\"n4_date\">{$list[$i][datetime2]}</span>";
if ($options_value[1] == 'on') {
if ($options_value[2] == 'on')
echo "<span class=\"n4_writer\">{$list[$i][name]}</span>";
else
echo "<span class=\"n4_writer\">{$list[$i][wr_name]}</span>";
}
?>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
<?php } else if ($options_value[0] == 'gallery') { //갤러리형 최신글 ?>
<div style="text-align:center">
<div class="<?php echo $bo_table; ?>_n4_thumb">
<ul>
<?php for ($i = 0; $i < count($list); $i++) {
$noimg = $latest_skin_path."/img/_noimg.gif";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
if ($list[$i][wr_id]) {
$thumb = thumbnail($file, $n4_gallery_width, $n4_gallery_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
if ($edit_img = $list[$i]['wr_content']) {
if (@eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
$file = $g4[path].'/' . $tmp[0]; //파일명
$thumb = thumbnail($file, $n4_gallery_width, $n4_gallery_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
}
?>
<li>
<a href="<?php echo $list[$i][href]; ?>"><img src="<?php echo $thumb; ?>" width="<?php echo $n4_gallery_width; ?>" height="<?php echo $n4_gallery_height; ?>" onmouseover="this.style.filter='gray'" onmouseout="this.style.filter=''" border="0" alt="" title=""></a>
<p><a href="<?php echo $list[$i][href]; ?>"><span class="thumb_subject"><?php echo $list[$i]['subject']; ?></span></a></p>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
</div>
</div>
<?php } else if ($options_value[0] == 'news') { //뉴스형 최신글 ?>
<?php for ($j = 0; $j < count($list); $j++) {
$noimg = $latest_skin_path."/img/_noimg.gif";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
$file = $list[$j][file][0][path] .'/'. $list[$j][file][0][file];
if ($list[$j][wr_id]) {
$thumb = thumbnail($file, $n4_news_width, $n4_news_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
if ($edit_img = $list[$j]['wr_content']) {
if (@eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) {
$file = $g4[path].'/' . $tmp[0]; //파일명
$thumb = thumbnail($file, $n4_news_height, $n4_news_height, 0, 1, $thumb_quality, 0, "", $filter, $noimg);
}
$content = cut_str(strip_tags($list[$j][wr_content]), $options_value[6], '');
}
?>
<?php if ($j == 0) { ?>
<div class="<?php echo $bo_table; ?>_n4_news_wrap">
<div class="<?php echo $bo_table; ?>_n4_news_view"><a href="<?php echo $list[$j][href]; ?>"><img src="<?php echo $thumb; ?>" width="<?php echo $n4_news_height; ?>" height="<?php echo $n4_news_height; ?>" border="0" alt="" title="" align="left" style="margin-right:10px"></a>
<a href="<?php echo $list[$j][href]; ?>"><?php echo $content; ?></a>
</div>
</div>
<?php } ?>
<?php } ?>
<ul style="padding:0 0 5px 0">
<?php for ($i = 1; $i < count($list); $i++) { ?>
<li class="n4_list">
<?php
echo "<a href='{$list[$i]['href']}'>{$list[$i]['subject']}</a>";
if ($list[$i]['comment_cnt'])
echo "<a href=\"{$list[$i]['comment_href']}\"><span class=\"n4_list_cmt\">{$list[$i]['comment_cnt']}</span></a>";
if ($list[$i]['icon_new'])
echo "<span class=\"n4_new\"><img src='{$latest_skin_path}/img/none.gif' width='11' height='18' alt='' title=''></span>";
if ($options_value[3] == 'on')
echo "<span class=\"n4_date\">{$list[$i][datetime2]}</span>";
if ($options_value[1] == 'on') {
if ($options_value[2] == 'on')
echo "<span class=\"n4_writer\">{$list[$i][name]}</span>";
else
echo "<span class=\"n4_writer\">{$list[$i][wr_name]}</span>";
}
?>
</li>
<?php } ?>
</ul>
<?php if (count($list) == 0) { ?>
<div class="n4_no_list">게시물이 없습니다.</div>
<?php } ?>
</div>
<?php } ?>