사용자: 최근게시물 스타일 완료

This commit is contained in:
whitedot
2013-01-23 17:23:27 +09:00
parent 82efe22527
commit f0413606bc
3 changed files with 14 additions and 9 deletions

View File

@ -60,15 +60,17 @@ hr {display:none}
/* ///// 콘텐츠별 스타일 ///// */
/* PC 초기화면 */
#idx_catch {}
#idx_catch {margin-bottom:10px;padding: 29px 0 30px}
/* ///// 스킨별 스타일 ///// */
/* 최근게시물 스킨 */
.lt {float:left;margin-bottom:20px;padding:20px;width:314px;height:149px;border-right:1px solid #ececec;border-bottom:1px solid #ececec;background:#fff}
.lt ul {margin:0;padding:0;list-style:none}
.lt a {text-decoration:none}
.lt_title {display:block;text-align:center}
.lt_more {text-align:right}
.lt li {padding:3px 0}
.lt a {color:#000;text-decoration:none}
.lt_title {display:block;margin-bottom:20px;text-align:center}
.lt_more {text-align:center}
.lt_more a {display:block}
/* paginate */
.pg {}

View File

@ -17,8 +17,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("neo", $row['bo_table'], 5, 70);
if ($i==9) break;
echo latest("neo", $row['bo_table'], 5, 25);
//if ($i==9) break;
}
?>

View File

@ -1,8 +1,10 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if ($lt_margin == 0) $lt_style = "style=\margin-left:20px\"";
?>
<div class="lt">
<div class="lt" <?=$lt_style?>>
<?=$lt_margin?>
<strong class="lt_title"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$board['bo_subject']?></a></strong>
<ul>
<? for ($i=0; $i<count($list); $i++) { ?>
@ -14,10 +16,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\">".$list[$i]['comment_cnt']."</a>";
echo " <span class=\"cnt_cmt\">".$list[$i]['comment_cnt']."</span>";
echo "</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }