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

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 초기화면 */ /* 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 {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 ul {margin:0;padding:0;list-style:none}
.lt a {text-decoration:none} .lt li {padding:3px 0}
.lt_title {display:block;text-align:center} .lt a {color:#000;text-decoration:none}
.lt_more {text-align:right} .lt_title {display:block;margin-bottom:20px;text-align:center}
.lt_more {text-align:center}
.lt_more a {display:block}
/* paginate */ /* paginate */
.pg {} .pg {}

View File

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

View File

@ -1,8 +1,10 @@
<? <?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 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> <strong class="lt_title"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>"><?=$board['bo_subject']?></a></strong>
<ul> <ul>
<? for ($i=0; $i<count($list); $i++) { ?> <? for ($i=0; $i<count($list); $i++) { ?>
@ -14,10 +16,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
echo "<strong>".$list[$i]['subject']."</strong>"; echo "<strong>".$list[$i]['subject']."</strong>";
else else
echo $list[$i]['subject']; echo $list[$i]['subject'];
echo "</a>";
if ($list[$i]['comment_cnt']) 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]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; } // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }