묻고답하기

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



 <!--@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 남기남
EricChoi 언어 선택 국기 달기(위젯말고 레이아웃으로) file  
소린 wiki 계층수정 문제 file  
디스커스 로그인정보 위젯에 회원정보의 확장변수 내용을 출력하려고 합니다.  
청춘개똥 스샷 올립니다. 게시판 추가기능이 없어졌어요;; [1] file 2010.08.14 by 디스커스
망꼬준 지식인 질문있어요^^  
나르니즘 페이지 소스 보기 막을 수 없나요? [1] 2010.08.14 by SMaker
totok 플래닛의 낚인글과 낚은글이 뭔지 좀 부탁좀 드립니다(굽신굽신)  
BlogJh 편한 이미지 추가는 없을까요?  
샤프샤프 게시판 게시글 안에 위젯을 삽입하고 싶은데요??  
jayyang 권한없는 사용자 alert 창 대신 로그인페이지로  
라커 cu3er 위젯 최근 게시물 어떻게 하면 나오나요?  
안혜진214 메인페이지가 어느 경로에 있는지요? [1] 2010.08.14 by jayyang
euny 자체 로그인을 사용하고 싶은데요. [1] file 2010.08.14 by jayyang
쿄시로 우편번호 서버  
임완수283 최근게시물이 깨져서 나오네요 [1] 2010.08.14 by 공듀
<Hoonie> 주소를 간단하게 쓰면 페이지가 열리지 않습니다 [2] 2010.08.14 by 스모킹맨
에스토리아 $oModule->setLayoutPath("./modules/admin/tpl");  
mae 게시판 속에 게시판 어떻게 하죠  
mae 게시판 XE 쓰는데 익명만 IP공개 할순 없나요?  
괴적인격 글삭제가되면 복구? [2] 2010.08.15 by 구가
괴적인격 글삭제를 하면. [1] 2010.08.15 by 구가
물비늘 표생성 , 링크생성 컴포넌트 찾습니다. [1] file 2010.08.15 by 구가
orb 사이트설정 메뉴에서 모튤과 새창링크동시에 가능한가요?  
크롬_crom 코멘트에 그룹명 표시하는 방법을 알고 싶습니다. [1] 2010.08.15 by 팔공산
베릴임 홈피 회원가입 메일인증 문제  
innofuture XE core 업데이트 후 모바일 보기가 안 됩니다. [1] 2010.08.15 by 백성찬
마이콘 모바일페이지와 관련하여 질문... [1] 2010.08.15 by 백성찬
trutheyes 게시판 기능때문에 질문드립니다.  
베릴임 회원가입 이메일인증 오류 문제  
김래환 게시판 첨부 이미지 본문 삽입 하지 않아도 들어가게 하는법? [1] 2010.08.15 by LutZ