웹마스터 팁

이 게시글은 simplestrap 레이아웃 ver 1.4.2 기준으로 적은 글입니다. 타 버전에서 적용시 문제점이 있을 수 있습니다.

이 팁은 bootstrap, jquery cookie, respond.js 등의 파일을 cdn에서 불러오게 하는 팁입니다.

적용방법 : ./layouts/simplestrap/_setting.html 파일을 diff를 보고 수정하시거나 첨부파일을 ./layouts/simplestrap/ 경로에 넣으시면 됩니다. 

diff --git a/org.html b/_setting.html
index de3ee5e..96ce8ed 100644
--- a/org.html
+++ b/_setting.html
@@ -59,22 +59,22 @@ endif;
 <!--// load target="js/simplestrap.js" index="-4" type="body"  -->
 </block>
 <block cond="!__DEBUG__">
-<load target="./css/bootstrap.min.css" index="-5"  />
+<load target="///cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" index="-5"  />
 <block cond="$li->fontawesome!='f4_only'">
-<load target="./css/font-awesome3.min.css" index="-4"  />
-<load target="./css/font-awesome3-ie7.min.css" targetie="ie 7" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css" index="-4"  />
+<load target="///cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome-ie7.min.css" targetie="ie 7" />
 </block>
-<load target="./css/font-awesome.min.css" index="-4"  cond="$li->fontawesome!='f3_only'" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css" index="-4"  cond="$li->fontawesome!='f3_only'" />
 <load target="./css/simplestrap.min.css" index="-3" />
-<load target="./js/bootstrap.min.js" type="body" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js" type="body" />
 <!--// load target="./js/simplestrap.min.js" index="-4"  type="body" / -->
 </block>
-<load target="./css/bootstrap-theme.min.css" cond="$li->bootstrap2_design=='Y'" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" cond="$li->bootstrap2_design=='Y'" />
 <load target="./css/bootstrap-ie7.css" targetie="ie 7" />
-<load target="./js/jquery.cookie.min.js" />
-<load target="./js/respond.min.js" targetie="lt IE 9" type="body" index="-2" />
-<load target="./js/jquery.placeholder.js" targetie="lt IE 10" type="body" />
-<load target="./js/prettify.js" type="body" cond="$li->code_prettify=='Y'" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js" targetie="lt IE 9" type="body" index="-2" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/jquery-placeholder/2.0.8/jquery.placeholder.min.js" targetie="lt IE 10" type="body" />
+<load target="///cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.js" type="body" cond="$li->code_prettify=='Y'" />
 
 <load target="./custom/custom_style.css" cond="in_array('custom_style',$li->custom)" index="-2" />
 <load target="./custom/custom_js.js" cond="in_array('custom_js',$li->custom)" index="-1" type="body" />

파일 : _setting.html

포럼에서 보기 : http://www.typhoon.kr.pe/web_develop/2484

태그 연관 글
  1. [2013/12/31] 묻고답하기 게시판 링크 자동걸리고 새 창으로 뜨게 설정하는 법? by 해피지영 *2
제목 글쓴이 날짜
관리자 로그인시 원하는걸 보여주자 [5] 빽짱구 2008.04.15
수정,삭제 버튼을 "이 게시물을.."에 넣기 [1] hangoon 2008.04.16
엑소버드 음악 제로보드XE에 구겨넣기... [8] artlab 2008.04.17
ARTLAB님 팁을 참고하여 약간 변형 & 쫄쫄이 스토커 해상도에 상관없이 달기 [3] 탑심 2008.04.18
글 순서 바꾸기 임시방편 [6] 장운주 2008.04.18
댓글창에서 프로필이미지가 없는 경우 기본이미지 출력하기 [8] file 카카달려 2008.04.19
zbxe 기본글꼴(폰트) 바꾸는 방법 [9] file 핸디지 2008.04.22
디버그모드 변경하는 간단한 파이썬 스크립트 [4] mmx900 2008.04.23
제로보드XE에 배경음악 달기 [4] Dr.Mabin 2008.04.26
졸졸이 스토커 가두어보기 2탄(보드우측에 포함된 것처럼) [1] file 갯가 2008.04.26
제로보드에 BGM 달기 (대폭 수정;;) [5] Dr.Mabin 2008.04.27
각 페이지에 쓸 수 있는 변수명들 찾기 [6] lainfox 2008.04.29
링크가 걸린 글의 색을 무지개색으로 나타내기 재미니님 2008.04.29
홈페이지에 이미지블릿 대신 특수문자로 표현해 보기 file 팔공산 2008.04.29
windows Live writer로 게시글 쓰기 [3] file tindrum 2008.04.29
최근글 - 본문 내용 뽑아내기 [9] 夜飛 2008.05.01
상단에 PHP 오류구문이 출력될시 [6] sbshs77 2008.05.01
제한된 시간 안에 글을 또 등록할 때 IP 금지 기능(스팸필터) 해제하기 [3] 비나무 2008.05.03
메인메뉴에서 2차메뉴가 1차메뉴를 따라다니는 롤오버 메뉴로 만들기 [13] 우야노 2008.05.03
주문형게시판 만들기 [22] file 팔공산 2008.05.04