diff --git a/css/mobile.css b/css/mobile.css index c174b6240..c49361ce8 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -336,14 +336,12 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei #profile .sv_wrap a {margin:0 0 0.3em;padding:0;font-weight:bold;line-height:1em} /* 최근게시물 스킨 (latest) */ -.lt {float:left} -.lt ul {display:none} -.lt_title {display:inline-block;padding:1em} -.lt_title:focus ~ ul, -.lt_title:hover ~ ul, -.lt_title:active ~ ul {display:block;position:absolute;top:100px;left:0} +.lt {position:relative;margin:0 0 1em;padding:0 1em 1.5em;border-bottom:1px solid #ddd} +.lt ul {margin:0 0 1em;padding:0;list-style:none} +.lt li {padding:0.2em 0} .lt a {color:#000;text-decoration:none} -.lt_more {display:none} +.lt_title {display:block;padding:1em 0} +.lt_more {position:absolute;top:1em;right:1em} /* 현재접속자 */ #current_connect_tbl {} diff --git a/index.php b/index.php index 68d12dd6f..6fece6758 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,4 @@ - -모바일 메인 + + +// 최신글 +$sql = " select bo_table from {$g4['board_table']} order by gr_id, bo_table "; +$result = sql_query($sql); +for ($i=0; $row=sql_fetch_array($result); $i++) { + // 이 함수가 바로 최신글을 추출하는 역할을 합니다. + // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. + + // 사용방법 + // latest(스킨, 게시판아이디, 출력라인, 글자수); + echo latest("basic", $row['bo_table'], 5, 25); +} +?> + include_once(G4_MOBILE_PATH.'/_tail.php'); diff --git a/mobile/skin/latest/basic/latest.skin.php b/mobile/skin/latest/basic/latest.skin.php index 1c8fcdbe6..85fea6148 100644 --- a/mobile/skin/latest/basic/latest.skin.php +++ b/mobile/skin/latest/basic/latest.skin.php @@ -35,5 +35,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가