웹마스터 팁

이 게시글은 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
제목 글쓴이 날짜
업그레이드 쉽고,안전하게 하기(예제 포함해서 다시 올림) [2] file wannabewize 2008.07.13
에디터입력창 배경색상(이미지) 변경해보기 [5] [1] 팔공산 2008.07.13
초보 헤메다가 팁//인쇄영역 확장변수 포함 [8] file 리히토 2008.07.14
초보 헤메다가 팁//검색기능 보이기 감추기 [3] file 리히토 2008.07.15
자료 첨부 문제 단풍534 2008.07.15
초보 헤메다가 팁//댓글기능 보이기 감추기 [5] 리히토 2008.07.15
winxp IE7 rwapm에서 한글이름파일 업로드 [7] file 공수래 2008.07.15
게시글 본문 좌, 우측에 div 내용 넣기(수정) [5] file 라르게덴 2008.07.18
게시판(블로그)상단에 글쓰기버턴이나 링크넣기 [8] file 팔공산 2008.07.20
관리자만 ip 보이게 하기 [10] 老姜君 2008.07.20
로그인이 안되는 문제 [1] 젝망치 2008.07.21
로컬 설치 후 몇가지 문제점에 대해서 - 인덱싱. DB선택 등 서정일643 2008.07.22
본문의 서명과 프로필이미지를 끌어올려보자 [11] file CL님 2008.07.22
초간단! 게시물주소 클릭시 복사하기 ! [4] file gnee 2008.07.26
제로보드XE에서 표 쉽게 만드는 방법.. [23] 청개구리00 2008.07.27
코멘트를 달아야만 첨부파일 다운로드 할 수 있게 하기 [8] file 지오426 2008.07.29
제로보드XE 설치 완료버튼 누르니까 My sql 관련 내용 나오던데요 [3] Naver™ 2008.07.30
1.0.3 버전 이상부터 본문 내 이미지 자동 리사이징이 안되는 경우 [1] kirrie 2008.08.01
1원팁) 톱메뉴를 제거하고 왼쪽 서브메뉴만 출력하는 방법 [2] file Gnee 2008.08.02
제로보드 문자열 정교하게 자르기 [11] 젝망치 2008.08.03