사

5.0b04 default.css $buffer

· 2013-10-07 (월) 19:27:56 · 930 · 2
common.lib.php 2205행
<link rel="stylesheet" href="default.css">
밑으로 스킨의 스타일시트가 위치하도록 하게 한다.
*/
return preg_replace('#(</title>[^<]*<link[^>]+>)#', "$1$stylesheet", $buffer);


"default.css 밑으로 스킨의 스타일시트가 위치하도록 하게 한다."


현재 [익스10, 크롬, 불여우 공통]
<link rel="canonical" href="http://domain.com/bbs/board.php?bo_table=test01">
<link rel="stylesheet" href="http://domain.com/사용자폴더/style.css">
.
.
.
<link rel="stylesheet" href="http://domain.com/skin/connect/basic/style.css">
<link rel="stylesheet" href="http://domain.com/skin/visit/basic/style.css"><link rel="stylesheet" href="http://domain.com/css/default.css">


1. default.css가 마지막에 출력되고 있으며
(default.css 에서 부분 변동.추가 사용을 위해 동일한 id, class 복사 후 임의구성.css가 있어도 default.css가 마지막에 뿌려지는 관계로 변경 사항이 적용되지 않음)


★★
위 내용은 common.lib.php 와 tail.sub.php html_end() 관련 소스가 이전과 동일한 것으로 확인되어 체크 결과
head.sub.php 에서 echo '<link rel="canonical" href="'.$canonical.'">'; 주석 처리 하면 이전 버전과 같이 default.css가 맨 위에 출력되는 것 확인되어

임시로 아래 내용 처럼 순서 바꿈
echo '<link rel="stylesheet" href="'.G5_CSS_URL.'/'.(G5_IS_MOBILE?'mobile':'default').'.css">'.PHP_EOL;

// canonical 지정
$canonical = '';
if ($bo_table && $wr_id) $canonical = 'http://'.$_SERVER["HTTP_HOST"].'/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
else $canonical = 'http://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
echo '<link rel="canonical" href="'.$canonical.'">';


2.
마지막 부분이 줄변경 없이 출력되는 것 1과 같이 수정해도 <meta가 이어서 한줄로 나오게 됨
<link rel="stylesheet" href="http://domain.com/skin/visit/basic/style.css"><link rel="stylesheet" href="http://domain.com/css/default.css">

3. 추가 고려
#sch_all_submit {...} /* cursor:pointer 관련 추가 */
|

댓글 2개

스타일시트 출력우선 순위 부분은 다음 버전에 수정해서 배포토록 하겠습니다.
2013-10-10 (목) 14:42:45
3번 건의 감사합니다. 다음 버전에 적용하겠습니다.
댓글을 작성하시려면 로그인이 필요합니다.

버그신고

4,191건

  문의게시판을 이용해 주세요 :) https://sir.kr/co_qa  

+
분류 제목 글쓴이 날짜
13-10-11
13-10-10
13-10-08
13-10-07
13-10-07
13-10-07
13-10-05
13-10-04
13-10-04
13-10-04
13-10-04
13-10-02
13-10-02
13-10-02
13-09-30
13-09-28
13-09-27
13-09-27
13-09-27
13-09-27