테스트 사이트 - 개발 중인 베타 버전입니다

연도 표시하기

2009578055_1581989797.6204.png

 

2009578055_1581990026.8432.png

 

2009578055_1581990034.9315.png

 

https://sir.kr/g5_tip/7999

 

위 팁에 내용을 조금 더 추가했습니다.

 

bbs/new.php
이 파일의 수정은 별 의미가 없다 생각하여 생략.

 


lib/common.lib.php
399-405 Line
[code]// 당일인 경우 시간으로 표시함
$list['datetime'] = substr($list['wr_datetime'],0,10);
$list['datetime2'] = $list['wr_datetime'];
if ($list['datetime'] == G5_TIME_YMD)
    $list['datetime2'] = substr($list['datetime2'],11,5);
elseif (substr($list['datetime'],0,4) == substr(G5_TIME_YMD,0,4))
    $list['datetime2'] = substr($list['datetime2'],5,5);
else
    $list['datetime2'] = str_replace('.', '-', substr($list['datetime2'],0,10));[/code]

 


보드 'basic' 스킨을 수정합니다.
'gallery' 스킨도 동일하게 수정하면 됩니다.

 

theme/basic/skin/board/basic/list.skin.php
91-92 Line
[code]<!-- <?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천 </a></th><?php } ?> -->
<!-- <?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천 </a></th><?php } ?> -->[/code]

 

149-150 Line
[code]<!-- <?php if ($is_good) { ?><td class="td_num"><?php echo $list[$i]['wr_good'] ?></td><?php } ?> -->
<!-- <?php if ($is_nogood) { ?><td class="td_num"><?php echo $list[$i]['wr_nogood'] ?></td><?php } ?> -->[/code]

숨김.

 

theme/basic/skin/board/basic/style.css
93 Line
[code]#bo_list .td_datetime {width:100px;text-align:center} /* M width */[/code]
연도까지 출력하면 폭이 좁기 때문에 늘리고, 추천 비추천도 숨긴 것입니다.
Sir처럼 '추천'만 출력하는 방법을 사용해도 되겠지요.

 

theme/basic/skin/board/basic/view.skin.php
34 Line
[code]<strong class="if_date"><span class="sound_only">작성일</span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo date("Y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>[/code]'y'를 'Y'로 수정.

 

theme/basic/skin/board/basic/view_comment.skin.php
44 Line
[code]<span class="bo_vc_hdinfo"><i class="fa fa-clock-o" aria-hidden="true"></i> <time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['wr_datetime'] ?></time></span>[/code]'datetime'를 'wr_datetime'로 수정.

 

 

모바일은...
theme/basic/mobile/skin/board/basic/view.skin.php
theme/basic/mobile/skin/board/basic/view_comment.skin.php
두 파일만 동일한 부분 수정.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
24149
24140
24133
24125
24119
24109
24105
24101
24093
24089
24077
24074
24071
24070
24067
24056
24050
24046
24043
24040
24037
24036
24035
24034
24021
24017
24005
24002
23990
23980