묻고답하기

 

Xe로 들어와 느끼는 가장 큰 어려움 가운데 하나가 소스를 이해하는 것입니다.

 

원래부터 php나 css에 대해 지식이 없는 터였으나.

 

제로보드 4의 경우 대충 짐작으로 때려 맞추면서 이해가 가능했기에

 

수정또한 아주 어려운 일은 아니었지요.

 

근데 Xe는 그렇지 않습니다. 이게 사용하는 Php버전이 달라서인지

 

아니면 개발자가 사용하는 방법이 달라서인지 몰라도

 

아무리 들여다 봐도 이해가 안될때가 너무 많습니다.

 

위젯 스타일 스킨을 하나 다운받아 설치해 봤습니다.

 

아래 그림 같은 것인데요.

 

자료실에서 받은   Xe기본 위젯스타일스킨입니다.

 

주소: http://www.xpressengine.com/?mid=download&category_srl=18322952&package_srl=18324403

 

wi1.gif  

 

 

현재 쓰시는 분도 있겠지만, 테두리의 색상을 변화시켜 사용할 수 있는

 

깔끔한 위젯스타일 스킨입니다.

 

그런데 위의 위젯스타일스킨이 다른것은 다 마음에 드는데  타이틀 아래 출력되는 본문사이에

 

경계가 없어서 선을 하나 넣고 싶었습니다.  아래 그림처럼요 

 

      wi2.gif

 

그래서 소스를 열어봤습니다.

 

위젯스타일 스킨의 소스파일은  widgetstyle.html하고 widgetBoxStyle.css 두개입니다.

그런데 두개의 파일을 아무리 열어넣고 살펴봐도 도무지 어디를 수정해야 할지 모르겠네요.

 

 뭐 알 수 없는게 어디 이런 위젯스타일 스킨 뿐이겠습니까?

 

레이아웃스킨 파일도 역시 다르지 않지만 아무튼 소스이해가 너무 어렵습니다.

 

스킨들이 많이 나오려면. 이런 소스를 이해할 수 있도록 설명해 주는 팁이나 강좌가

많이 나와야 할것 같습니다.

 

 

위의 오리지널 소스 widgetstyle.html 파일소스하고 widgetBoxStyle.css파일 소스를 올립니다.

 

좀 잘 아시는 분께서 좀 속시원하게 설명좀 해 주실 수 없을까요?

 

그리고 보너스로  위의 첫번째 위젯을  아래의 그림처럼 선을 하나 넣으려면

 

어디를 어떻게 수정해야 할지도 좀 가르쳐 주세요.

 

부디  무심히 지나치지 마시고 너그러운 마음으로 가르침을 배풀어 주시길 간청하옵나이다~

 

먼저 widgetstyle.html 파일소스 입니다.

  
<!--%import("css/widgetBoxStyle.css")-->
<div class="widgetBoxContainer {$widgetstyle_extar_var->ws_style}">
    <div class="widgetBox">

        <!--@if($widgetstyle_extar_var->ws_title_image || $widgetstyle_extar_var->ws_title)-->
            <h3 class="widgetBoxHeader" <!--@if($widgetstyle_extar_var->wws_title_colors_title_color)-->style="color:{$widgetstyle_extar_var->ws_title_color};"<!--@end-->>
            <!--@if($widgetstyle_extar_var->ws_title_icon)-->
                <img src="{$widgetstyle_extar_var->ws_title_icon}" />
            <!--@end-->
            <!--@if($widgetstyle_extar_var->ws_title_image)-->
                    <img src="{$widgetstyle_extar_var->ws_title_image}" />
            <!--@else-->
                <!--@if($widgetstyle_extar_var->ws_title)-->
                    {$widgetstyle_extar_var->ws_title}
                <!--@end-->
            <!--@end-->
            </h3>
        <!--@end-->
        {$widget_content}
        {@$widgetstyle_extar_var->ws_more_url=trim($widgetstyle_extar_var->ws_more_url);}
        <!--@if($widgetstyle_extar_var->ws_more_url)-->
            <!--@if(strtolower(substr($widgetstyle_extar_var->ws_more_url,0,4))=='http')-->
                <a href="{$widgetstyle_extar_var->ws_more_url}" class="widgetMore">
            <!--@else-->
                <a href="http://{$widgetstyle_extar_var->ws_more_url}" class="widgetMore">
            <!--@end-->
            <!--@if($widgetstyle_extar_var->ws_more_image)-->
                <img src="{$widgetstyle_extar_var->ws_more_image}" />
            <!--@else if($widgetstyle_extar_var->ws_more_text)-->
                {$widgetstyle_extar_var->ws_more_text}
            <!--@else-->
                more
            <!--@end-->
            </a>
        <!--@end-->
        <span class="rcContainer rcTop">
            <span class="rc tl"></span>
            <span class="rc tr"></span>
        </span>
        <span class="rcContainer rcBottom">
            <span class="rc bl"></span>
            <span class="rc br"></span>
        </span>
    </div>
</div>
 

 

 

 아래는 widgetBoxStyle.css파일 소스 입니다.

 

  
 @charset "utf-8";
/* NHN > UIT Center > Open UI Technology Team > Jeong Chan Myeong(dece24@nhncorp.com) */
.widgetBoxContainer{ position:relative;}
.widgetBox{ position:relative; *zoom:1; }
.widgetBox:after{content:""; display:block; clear:both; }
.widgetBox .widgetBoxHeader{ font-size:16px; font-family:Tahoma; margin:0; z-index:10;}
.widgetBox .widgetContainer{ position:relative; z-index:10;}
.widgetBox .widgetMore{ position:absolute; display:block; text-decoration:none; font-size:11px !important; white-space:nowrap; font-family:Tahoma; color:#000; text-align:center; z-index:20;}
.widgetBox .widgetMore img{ border:0;}
.widgetBox .rcContainer{ display:block; width:100%; font-size:0; line-height:0; z-index:1; *zoom:1; }
.widgetBox .rc{ position:absolute; display:block; font-size:0; line-height:0; overflow:hidden;}
.widgetBox .rcTop .tl{ top:0;}
.widgetBox .rcTop .tr{ top:0;}
.widgetBox .rcBottom .bl{ top:0;}
.widgetBox .rcBottom .br{ top:0;}
.widgetBoxDred{ padding:8px 0;}
.widgetBoxDred .widgetBox{ background:#fff; border-left:5px solid #ffcccc; border-right:5px solid #ffcccc; *zoom:1}
.widgetBoxDred .widgetBoxHeader{ position:relative; padding:3px 0; text-indent:15px; color:#ff3333;}
.widgetBoxDred .widgetMore{ top:5px; right:15px; width:35px; background:url(../img/moreBgDred.gif) no-repeat; color:#fff !important;}
.widgetBoxDred .rcTop,
.widgetBoxDred .rcBottom{ height:8px;} 
.widgetBoxDred .rcTop{ position:absolute; top:-8px; left:0;}
.widgetBoxDred .rcBottom{ position:relative; bottom:-8px;}
.widgetBoxDred .rc { width:100%; height:8px; background-image:url(../img/roundedCornerDred.png)undefinedundefinedundefinedundefined; _background-image:url(../img/roundedCornerDred.gif)undefinedundefinedundefinedundefined; background-repeat:no-repeat;}
.widgetBoxDred .rcTop .tl{ background-position:0 0; left:-5px;}
.widgetBoxDred .rcTop .tr{ background-position:right 0; left:5px;}
.widgetBoxDred .rcBottom .bl{ background-position:0 bottom; left:-5px;}
.widgetBoxDred .rcBottom .br{ background-position:right bottom; left:5px;}
.widgetBoxDgreen{ padding:8px 0;}
.widgetBoxDgreen .widgetBox{ background:#fff; border-left:5px solid #d9efb9; border-right:5px solid #d9efb9; *zoom:1}
.widgetBoxDgreen .widgetBoxHeader{ position:relative; padding:3px 0; text-indent:15px; color:#90d133;}
.widgetBoxDgreen .widgetMore{ top:5px; right:15px; width:35px; background:url(../img/moreBgDgreen.gif) no-repeat; color:#fff !important;}
.widgetBoxDgreen .rcTop,
.widgetBoxDgreen .rcBottom{ height:8px;} 
.widgetBoxDgreen .rcTop{ position:absolute; top:-8px; left:0;}
.widgetBoxDgreen .rcBottom{ position:relative; bottom:-8px;}
.widgetBoxDgreen .rc { width:100%; height:8px; background-image:url(../img/roundedCornerDgreen.png)undefinedundefinedundefinedundefined; _background-image:url(../img/roundedCornerDgreen.gif)undefinedundefinedundefinedundefined; background-repeat:no-repeat;}
.widgetBoxDgreen .rcTop .tl{ background-position:0 0; left:-5px;}
.widgetBoxDgreen .rcTop .tr{ background-position:right 0; left:5px;}
.widgetBoxDgreen .rcBottom .bl{ background-position:0 bottom; left:-5px;}
.widgetBoxDgreen .rcBottom .br{ background-position:right bottom; left:5px;}
.widgetBoxDblue{ padding:8px 0;}
.widgetBoxDblue .widgetBox{ background:#fff; border-left:5px solid #d8e6e7; border-right:5px solid #d8e6e7; *zoom:1}
.widgetBoxDblue .widgetBoxHeader{ position:relative; padding:3px 0; text-indent:15px; color:#55ccdd;}
.widgetBoxDblue .widgetMore{ top:5px; right:15px; width:35px; background:url(../img/moreBgDblue.gif) no-repeat; color:#fff !important;}
.widgetBoxDblue .rcTop,
.widgetBoxDblue .rcBottom{ height:8px;} 
.widgetBoxDblue .rcTop{ position:absolute; top:-8px; left:0;}
.widgetBoxDblue .rcBottom{ position:relative; bottom:-8px;}
.widgetBoxDblue .rc { width:100%; height:8px; background-image:url(../img/roundedCornerDblue.png)undefinedundefinedundefinedundefined; _background-image:url(../img/roundedCornerDblue.gif)undefinedundefinedundefinedundefined; background-repeat:no-repeat;}
.widgetBoxDblue .rcTop .tl{ background-position:0 0; left:-5px;}
.widgetBoxDblue .rcTop .tr{ background-position:right 0; left:5px;}
.widgetBoxDblue .rcBottom .bl{ background-position:0 bottom; left:-5px;}
.widgetBoxDblue .rcBottom .br{ background-position:right bottom; left:5px;}


선하나 넣는 것이 이렇고 어렵고 험한 길인것이 참 갑갑합니다.. 

 


 

 

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
김선정298 오류 페이지 배경색 바꾸기 [2] 2009.09.03 by 궁금이2
쥐엉 getBasePath()라는 함수를 쓰고싶습니다...  
겨레사랑 게시판 분류에서 xe처럼 상위분류 선택되지 않게 하는 방법??? [2] file 2009.09.03 by 겨레사랑
우주인 급질문...xe설치  
초보 레이아웃 등록하려는데 자꾸 오류가 뜹니다 !!  
배근배 안녕하세요. 미치겠네요 ㅠㅠ [1] 2009.09.03 by 백성찬
홍차 회원 등급을 더 나눌 순 없나요? [1] 2009.09.03 by 어쭈구리メ
잘살아 awstats 웹로그분석 결과 추출가능한지요?  
김태운555 첨부화일 에러 [1] file 2009.09.03 by 백성찬
apollos 이런 오류는 어떻게 잡나요 ? file  
apollos 다시한번 메뉴에 대해서 질문드립니다. [1] file 2009.09.03 by apollos
어쭈구리メ 확장변수에는 생일처럼 나오게 할수 없나요? [3] file 2009.09.03 by 백성찬
류태일 전에 보이던 자료 페이지가 안보이는데 혹시 사라졌나요.. [2] 2009.09.03 by 류태일
불패의초인 트래픽 보는 거요,,,ㅠ [1] 2009.09.03 by 불패의초인
zartin 이모티콘이 왜 안나오지요? [1] 2009.09.03 by apollos
공방 (홈)페이지가 갑자기 안나옵니다. [3] 2009.09.03 by 백성찬
마에야히 moduleModel::getModuleInfoXml() 이거 어떻게 쓰나요;;  
apollos 서브메뉴를 가로로 놓는 방법은 어떻게 하나요 ? file  
꿍꿍이 제발 답변 부탁드려요. 엮인글 [6] 2009.09.03 by 꿍꿍이
엠™ 서브도메인 로그인 연동하기 질문이요..  
多星 파비콘 관련 [2] 2009.09.03 by 多星
yb361 xe 설치 첫 화면에서 영어만 나와요 [3] 2009.09.03 by mc뷰
김수군 회사 홈페이지를 제작하는데 XE보드를 쓸려고 합니다. [3] 2009.09.03 by mc뷰
청춘개똥 기존 회원가입 폼에서 몇개를 지웠습니다. 괜찮을까요? [2] 2009.09.03 by mc뷰
블리히 게시판 양 옆이 너무 딱딱 달라붙어서 보기싫네요 [2] 2009.09.03 by 시니시즘
벼리507 이런 기능 구현할수 없을까요? [1] 2009.09.03 by mc뷰
apollos 이곳 메뉴 박스 배경에 색깔을 집어 넣으려면 어떻게 ? file  
mib 회원가입페이지요, [1] 2009.09.03 by 초보
난네오 첨부 파일 100%에서 사라지는 문제(해결완료) [2] 2009.09.03 by 난네오
dil 제로보드에서 게시판