모바일: 최신글스킨 완료
This commit is contained in:
@ -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 {}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?
|
||||
define('_INDEX_', true);
|
||||
include_once('./_common.php');
|
||||
|
||||
|
||||
@ -1,8 +1,22 @@
|
||||
<?php
|
||||
<?
|
||||
include_once(G4_MOBILE_PATH.'/_head.php');
|
||||
?>
|
||||
|
||||
모바일 메인
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$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');
|
||||
|
||||
@ -35,5 +35,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li>게시물이 없습니다.</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>">더보기</a></div>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><span class="sound_only"><?=$bo_subject?></span>더보기</a></div>
|
||||
</div>
|
||||
|
||||
@ -35,5 +35,5 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<li>게시물이 없습니다.</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>">더보기</a></div>
|
||||
<div class="lt_more"><a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$bo_table?>"><span class="sound_only"><?=$bo_subject?></span>더보기</a></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user