묻고답하기

안녕하세요? 한가지 궁금한 점이 있어서 글을 올리는데요.  언어 선택 위젯을 쓰지 않고 다른 홈페이지 레이아웃에 코드를 가져다 쓸 수 있는지 여부와 어떻게 하는 방법을 부탁드립니다. (만약에 안된다면 위젯을 써서라도 달고 싶습니다)



 <!--@if($layout_info->use_slanguage == 'Y')-->
        <div id="select_language">
            {$lang_supported[$lang_type]}<br/>
{@ $small_key = strtolower($key)}
            <!--@foreach($lang_supported as $key => $val)-->
            <!--@if($key!= $lang_type)-->
            <img src="./images/flag/{$small_key}.png" title="{$val}" alt="{$val}"  onclick="doChangeLangType('{$key}');return false;" />
            <!--@endif--> 
            <!--@endif--> 
        </div>


위에 코드가 다른 홈페이지 레이아웃에서 가져와서 편집한 코드인데요.

어디에 두어야 우측 위젯들 과 함께 뜰지 모르겠네요.

추가설명을 하자면,

images 폴더 안에 flag 폴더를 넣었습니다. 파일명은 소문자로 되어 있구요.

클릭하면 언어를 선택할 수 있게 해줍니다.


결국 얻으려는 결과는 아래의 이미지와 같습니다.


flags.JPG



하지만, 가능하다면 영국 국기를 지우고 그 대신에 캐나다 국기를 추가하고 싶습니다. layout 편집에 가서 이래저래 해봐도 잘 안되네요...;; 


아래에 레이아웃 코드는 Blackcity 입니다.


<!--%import("css/layout.css")-->
<!--%import("css/colorset.css")-->

<!--%import("js/default.js")-->
<!--%import("lang")-->

<style type="text/css">

    <!--@if($layout_info->bg_select == 'N')-->

        body { background:url(./images/none.gif) {$layout_info->bg_color} }

    <!--@else-->

        <!--@if($layout_info->bg_img)-->

            body {
           
                background:url({$layout_info->bg_img}) 

                center top
       
                {$layout_info->bg_type}

                    <!--@if($layout_info->bg_fixed == 'Y')-->

                            fixed

                    <!--@end-->

                {$layout_info->bg_color}
               
                ;
               
                }

        <!--@end-->

    <!--@end-->

    <!--@if($layout_info->bg_grid == 'N')-->

        #bgWrap {background:none;}

    <!--@end-->

    <!--@if($layout_info->title_img)-->

        .titleWrapper { background: url({$layout_info->title_img}) left top; }

    <!--@end-->

</style>


<div id="bgWrap">

</div>

<div id="bodyWrap">

    <div id="headerWrap">

        <!--@if($layout_info->logo_type == 'text')-->

            <h1 class="title text">

                <a href="{$layout_info->home_url}">{$layout_info->site_title}</a>

            </h1>

        <!--@else-->

            <h1 class="title">

                <a href="{$layout_info->home_url}">

                    <!--@if($layout_info->logo_img)-->
               
                        <img src="{$layout_info->logo_img}" alt="{$layout_info->site_title}" class="iePngFix" />
               
                    <!--@else-->

                        <img src="./images/logo.png" alt="{$layout_info->site_title}" class="iePngFix" />

                    <!--@end-->

                </a>

            </h1>

        <!--@end-->

        <ul id="mainMenu">
                 
            <!--@foreach($main_menu->list as $key => $val)-->
               
                <!--@if($val['link'])-->

                <!--@if($val['selected'])-->

                    <li class="select">

                    {@ $menu_1st = $val }

                <!--@else-->
           
                    <li class="off" >

                    <!--@end-->
                       

                        <a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>   

                            {$val['link']}
                       
                        </a>

                    </li>

                <!--@endif-->
           
            <!--@endforeach-->

        </ul>

    </div>

    <div class="titleWrapper">

        <div class="shadowLayer"></div>       

        <h3 class="menuTitle {$layout_info->menu_color}">

            <!--@if($layout_info->sub_title)-->

                {$layout_info->sub_title}

            <!--@else-->
       
                {$menu_1st['text']}
             
            <!--@end-->

        </h3>

    </div>



    <div class="contentWrap {$layout_info->content_color}">
   
        <div class="leftColumn">

            {$content}

        </div>

        <div class="rightColumn {$layout_info->content_color}">

            <div id="loginNav">

                <ul>
   
                <!--@if(!$is_logged)-->   

                    <li >
                   
                        <a href="{getUrl('act','+ '+ 'dispMemberLoginForm')}"><img class="iePngFix" src="./images/login.png" alt="{$lang->cmd_login}" /></a></a>

                    </li>

                    <li >
                   
                        <a href="{getUrl('act','dispMemberSignUpForm')}"><img class="iePngFix" src="./images/join.png" alt="{$lang->cmd_signup}" /></a></a>
                       
                    </li>
               
                <!--@else-->

                    <!--@if($grant->is_admin)-->

                        <li>
                       
                            <a href="{getUrl(','module','admin')}" onclick="window.open(this.href); return false;">
                           
                                <img class="iePngFix" src="./images/setup.png" alt="{$lang->cmd_management}" />
                           
                            </a>
                           
                        </li>
                       
                    <!--@end-->

                    <li>

                        <a href="{geturl('act','dispMemberInfo')}">
                       
                            <img class="iePngFix" src="./images/info.png" alt="{$lang->userinfo}" />
                           
                        </a>
                   
                    </li>
                   
                    <li>
                   
                        <a href="{getUrl('act','dispMemberLogout')}">
                       
                            <img class="iePngFix" src="./images/logout.png" alt="{$lang->logout}" />
                           
                        </a>
                       
                    </li>

                <!--@end-->

                <!--@if($layout_info->rss)-->

                    <li>
                   
                        <a href="{$layout_info->rss}">
                       
                            <img class="iePngFix" src="./images/feed.png" alt="RSS FEED" />
                           
                        </a>
                       
                    </li>

                <!--@end-->
               
                </ul>

                <div class="clear"></div>

            </div>

            <div id="searchWrap">

                <form action="{getUrl()}" method="post" id="isSearch">

                    <!--@if($vid)-->

                        <input type="hidden" name="vid" value="{$vid}" />

                    <!--@end-->

                    <input type="hidden" name="mid" value="{$mid}" />

                    <input type="hidden" name="act" value="IS" />

                    <input type="hidden" name="search_target" value="title_content" />

                    <input name="is_keyword" type="text" class="searchText" title="keyword" />

                    <input type="submit" value="SEARCH" alt="{$lang->cmd_search}" class="submit" />

                </form>

            </div>

            <div class="clear"></div>

            <div class="menuWrapper">
                   
                <ul class="submenu">

                    <li class="top">

                       

                    </li>
               
                    {@ $idx = 1 }

                        <!--@foreach($menu_1st['list'] as $key => $val)-->
                       
                            <!--@if($val['link'])-->

                            <li <!--@if($val['selected'])-->class="selected"<!--@end-->>

                                <a href="{$val['href']}"<!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>
                               
                                    {$val['link']}
                                   
                                </a>

                            </li>

                            {@$idx++}
                           
                            <!--@end-->
                       
                        <!--@end-->

                </ul>
                   
            </div>



<h3 class="widgetTitle"></h3>

<div class="widgetWrapper"><script type="text/javascript"><!--
google_ad_client = "pub-8906163759382736";
/* 200x200, created 8/7/10 */
google_ad_slot = "5441711669";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>





            <!--@if($layout_info->widget1_title)-->

                    <h3 class="widgetTitle">{$layout_info->widget1_title}</h3>

                <!--@end-->

                <!--@if($layout_info->widget1)-->

                    <div class="widgetWrapper">{$layout_info->widget1}</div>

                <!--@end-->

                <!--@if($layout_info->widget2_title)-->

                    <h3 class="widgetTitle">{$layout_info->widget2_title}</h3>

                <!--@end-->

                <!--@if($layout_info->widget2)-->

                    <div class="widgetWrapper">{$layout_info->widget2}</div>

                <!--@end-->

                <!--@if($layout_info->widget3_title)-->

                    <h3 class="widgetTitle">{$layout_info->widget3_title}</h3>

                <!--@end-->

                <!--@if($layout_info->widget3)-->

                    <div class="widgetWrapper">{$layout_info->widget3}</div>

                <!--@end-->

<h3 class="widgetTitle">Clock</h3>
<div class="widgetWrapper"><img class="zbxe_widget_output" widget="DroArc_clock" skin="default" colorset="normal" /></div>



      

 



        </div>

        <div class="clear"></div>

    </div>

    <div id="bottom">

        <ul id="bottomMenu">
           
            <!--@foreach($bottom_menu->list as $key => $val)-->

            <li class="slush">

                |
           
            </li>

            <li>

                <a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a>
           
            </li>

            <!--@endforeach-->
                      
        </ul>

        <ul id="userMenu">

            <li>

                <a href="#">Top▲</a>
           
            </li>
                      
        </ul>

    </div>

    <div id="footer">

        <div class="copyright">

            <!--@if($layout_info->copyright)-->

                {$layout_info->copyright}

            <!--@else-->

                Copyright (c) 2010
               
                <span><!--@if($layout_info->site_title)-->{$layout_info->site_title}<!--@else-->XE Factory<!--@end--></span>.
               
                All rights reserved

            <!--@end-->

        </div>

        <div class="credit">

            skin by
           
            <a href="http://xefactory.kr" target="_blank" class="xf">XE Factory</a>
               
            / powered by
           
            <a href="http://xpressengine.com" target="_blank" class="xe">XpressEngine</a>

        </div>

    </div>

</div>



글이 엄청 기네요...;; (죄송) 답글 부탁드리겠습니다. 간절히...



추신)1. 캐나다 국기 아이콘이 gif 나 jpg 로는 구글로 찾을 수 있는데, png 는 찾을 수 없군요. 파일 확장자만 바꾸어도 괜찮을까요?
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
seokie 1.2.4 업데이트 후 경로 문제... [2] 2009.07.03 by seokie
글쓴이 게시판 제목이...  
개돌 CPU 사용량... [4] 2009.07.03 by 개돌
미지수 회원정보를 일괄 추가 할 수 있나요? [5] 2009.07.03 by 미지수
글쓴이 웹진형으로 게시판을 설정하면..  
zzoong2 동영상 파일 다운 받을수 있는 방법...?? [7] 2009.07.03
주영택 1.2.3 버전 작업시 달력 문제 [4] file 2009.07.03 by 주영택
글쓴이 제로보드4-> xe 갈아 타려하는데 기초적인 문제 질문좀 [2] 2009.07.03 by iceman237
noirzo XE 매뉴얼은 어디세 확인이 가능 한가요? (동영상 매뉴얼 말고요) [2] 2009.07.03 by iceman237
글쓴이 aaaa  
파블로 제로보드4 로 사용중인데 XE로 업그레이드하려면?? [2] 2009.07.03 by iceman237
파블로 간만에 여길 방문해서 그러는데 제로보드4 관련자료는? [1] 2009.07.03 by 넨네
dwdw 파일첨부 증발현상  
dwdw 로그인 계속 풀리  
참빛누리 제로보드4에서 XE로 갈아타려는데... [3] 2009.07.03 by 궁금이2
gguyy 파이어폭스에서 언어선택이 작동하지않습니다.  
학교 포인트 추가/삭감, 인증 질문이요. [1] 2009.07.03 by 궁금이2
글쓴이 제로보드4 사용할수 있게끔..  
ShopFree 레이아웃왼쪽메뉴 .. 수정법 [1] file 2009.07.03 by 넨네
글쓴이 파일첨부 불가능합니다. [4] 2009.07.03 by 글쓴이
모노로그 최근 게시물 관련, 오픈소스프로젝트 메인에 쓰인 것? [2] 2009.07.03 by June Oh
장단엽 파일첨부시 나타나는 오류메세지예요.. [3] file 2009.07.03 by 장단엽
글쓴이 최근 게시물 수정에 권한이 없다는데..  
글쓴이 급!!데이터 이전 xml 파일 업로드 질문  
moog 구글이나 다음 통계툴 이용하시는분들 ~~ [1] 2009.07.03 by 레진팩토리
글쓴이 xe->제로보드4 변환 방법 알려 주세요 그누보드 쓰게요 질문 3번째 답변 좀 주세요  
글쓴이 레이아웃편집 [2] 2009.07.04 by 글쓴이
글쓴이 "인증 메일 재발송" 영어로 안되나요? [3] 2009.07.04 by 글쓴이
라이프매니저 제로보드 글쓰기에 관해 질문입니다.. [2] 2009.07.04 by 라이프매니저
강진주 다운받은스킨을적용하려고하는데요.