모바일 레이아웃이 XE 전용이라 적용이안되네요.

 

기존 버전표시가

  $core_version =  preg_match('/^1.11/', __ZBXE_VERSION__) ? '11' : '';
  if(!$core_version) $core_version =  preg_match('/^1.5/', __ZBXE_VERSION__) ? '5' : '4';

 

이렇게 되어있는데 이걸 Rhymix 2.0.20으로 바꿀려면 어디를 수정해야될까요.ㅠㅠ 

 

레이아웃은 구매한건데 판매자가 날라서버려서 어디다 물어봐야될지 참 남감하네요.

  • profile

    코어 버전을 왜 비교하는지 모르겠지만

    __ZBXE_VERSION__ 을 RX_VERSION 으로 바꾸시면 될듯 합니다.

     

    그래도 해결안된다면 다른곳이 문제이겠지요.

     

    어떤 레이아웃인지 이런것들 자세하게 남겨주셔야 할듯합니다.

     

    특히 공지글 8번

     

    https://xetown.com/questions/585558

     

  • profile profile
    답변 너무 감사해요! 일단 RX_VERSION으로 변경하니..우선은 안되네요.
    좀더 찾아보고 해봐야겠습니다.
  • profile

    그러게요, 버전을 왜 알아야할까요... $core_version이 그 아래쪽에서 어떻게 사용되는지 알면, 더 좋은 방법이 나올것도 같습니다. (아니면 저 두줄을 지워버리고 임시 땜빵으로 $core_version = '11'; 이렇게 해서 시도해 볼수도 있겠네요).

  • profile profile
    우선 말씀해주신대로 위에 2줄 지우고 땜빵으로 $core_version = '11'; 하면 일단 몇몇 기능을 제외하곤 정상적으로 작동되긴합니다만...ㅠ 일부 기능이 작동이안되네요.

    혹시 몰라소스코드 첨부 해봤는데 도움이 될수있을까요.



    {@
    $core_version = preg_match('/^1.11/', __ZBXE_VERSION__) ? '11' : '';
    if(!$core_version) $core_version = preg_match('/^1.5/', __ZBXE_VERSION__) ? '5' : '4';
    }
    <[email protected]($core_version == '11')-->
    {@
    $layout_info->menu->main_menu->list = $main_menu->list;
    $layout_info->menu->top_menu->list = $top_menu->list;
    $layout_info->menu->footer_menu->list = $footer_menu->list;
    }
    <[email protected]>
    {@ Context::addCssFile("./m.layouts/comsin_tomato/layout.css", true, '') }
    <!-- lang -->
    <include target="lang.html" />
    <[email protected]($layout_info->jquery_load != 'N')-->
    <!-- jquery load -->
    <[email protected](file_exists('./common/js/jquery.min.js'))-->
    {@ Context::addJsFile("./common/js/jquery.min.js", true, '', -10000011) }
    <[email protected](file_exists('./common/js/jquery.js'))-->
    {@ Context::addJsFile("./common/js/jquery.js", true, '', -10000011) }
    <[email protected]>
    {@ Context::addJsFile("./m.layouts/comsin_tomato/js/jquery-1.7.2.min.js", true, '', -10000011) }
    <[email protected]>
    <[email protected]>
    <[email protected]($layout_info->submenu_start_open == 'M')-->
    {@ Context::addJsFile("./m.layouts/comsin_tomato/js/jquery-cookie.js", true, '', -10000010) }
    <[email protected]>

    <!-- block bug fix -->
    <block loop="$bf=0;$bf<1;$bf++"></block>
    <!-- top_menu designation -->
    {@ Context::addJsFile("./m.layouts/comsin_tomato/js/layout.js", true, '') }

    {@
    $top_menu_list = '';
    }
    <[email protected]($layout_info->top_menu_type == 'M' && $layout_info->layout_type == 'normal')-->
    <[email protected]($layout_info->menu->main_menu->menu_srl && $layout_info->menu->main_menu->list)-->
    {@ $top_menu_list = $layout_info->menu->main_menu->list; }
    <[email protected]($layout_info->top_menu_order > 1)-->
    {@ $top_menu_list = '';}
    <[email protected]($layout_info->menu->main_menu->list as $key => $val)-->
    <[email protected](strlen($val['text']) > 0 && $val['selected'] && $val['list'])-->
    {@ $top_menu_list = $val['list']; }
    <[email protected]($layout_info->top_menu_order > 2)-->
    {@ $top_menu_list = '';}
    <[email protected]($val['list'] as $skey => $sval)-->
    <[email protected](strlen($sval['text']) > 0 && $sval['selected'] && $sval['list'])-->
    {@ $top_menu_list = $sval['list']; }
    <[email protected]($layout_info->top_menu_order > 3)-->
    {@ $top_menu_list = '';}
    <[email protected]($sval['list'] as $sskey => $ssval)-->
    <[email protected](strlen($ssval['text']) > 0 && $ssval['selected'] && $ssval['list'])-->
    {@ $top_menu_list = $ssval['list'];}
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]($layout_info->menu->top_menu->menu_srl && $layout_info->menu->top_menu->list)-->
    {@$top_menu_list = $layout_info->menu->top_menu->list; }
    <[email protected]>
    <[email protected]>

    <!-- smenu designation~ -->
    {@
    $smenu_list = '';
    $selected_menu_title = '';
    }
    <[email protected]($layout_info->layout_type == 'sub')-->
    <[email protected]($layout_info->menu->main_menu->menu_srl && $layout_info->menu->main_menu->list)-->
    {@ $smenu_list = $layout_info->menu->main_menu->list; }
    <[email protected]($layout_info->menu->main_menu->list as $key => $val)-->
    <[email protected](strlen($val['text']) > 0 && $val['selected'])-->
    {@
    $selected_menu_title = $val['text'];
    $smenu_list = '';
    }
    <[email protected]($val['list'])-->
    {@$smenu_list = $val['list'];}
    <[email protected]($val['list'] as $skey => $sval)-->
    <[email protected](strlen($sval['text']) > 0 && $sval['selected'])-->
    {@
    $selected_menu_title = $sval['text'];
    $smenu_list = '';
    }
    <[email protected]($sval['list'])-->
    {@$smenu_list = $sval['list'];}
    <[email protected]($sval['list'] as $sskey => $ssval)-->
    <[email protected](strlen($ssval['text']) > 0 && $ssval['selected'])-->
    {@
    $selected_menu_title = $ssval['text'];
    $smenu_list = '';
    }
    <[email protected]($ssval['list'])-->
    {@$smenu_list = $ssval['list'];}
    <[email protected]($ssval['list'] as $ssskey => $sssval)-->
    <[email protected](strlen($sssval['text']) > 0 && $sssval['selected'])-->
    {@
    $selected_menu_title = $sssval['text'];
    $smenu_list = '';
    }
    <[email protected]($sssval['list'])-->
    {@$smenu_list = $sssval['list'];}
    <[email protected]($sssval['list'] as $sssskey => $ssssval)-->
    <[email protected](strlen($ssssval['text']) > 0 && $ssssval['selected'])-->
    {@
    $selected_menu_title = $ssssval['text'];
    $smenu_list = '';
    }
    <[email protected]($sssval['list'])-->
    {@$smenu_list = $ssssval['list'];}
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>
    <[email protected]>

    <[email protected](!$selected_menu_title)-->
    <[email protected]($layout_info->menu->footer_menu->menu_srl && $layout_info->menu->footer_menu->list)-->
    <[email protected]($layout_info->menu->footer_menu->list as $key => $val)-->
    <[email protected](strlen($val['text']) > 0 && $val['selected'])-->
    {@$selected_menu_title = $val['text'];}
    <[email protected]>
    <[email protected]>
    <[email protected]>
    {@$selected_menu_title = $layout_info->index_title;}
    <[email protected]>
    <[email protected]>

    <[email protected]>

    <!-- // act check -->
    {@
    $check_act_arr = array("dispMemberLoginForm","dispMenuMenu","dispModuleChangeLang","dispMemberSignUpForm","dispMemberFindAccount","MEIS");
    if( in_array( Context::get('act') , $check_act_arr) ) $act_check=true;
    else $act_check = false;
    }
    <[email protected]($act_check && $layout_info->act_type == 'Y')-->
    <[email protected](Context::get('act') == 'dispMemberLoginForm')-->
    {@ $selected_menu_title=$lang->cmd_login; }
    <[email protected](Context::get('act') == 'dispMenuMenu')-->
    {@ $selected_menu_title=$lang->view_sitemap; }
    <[email protected](Context::get('act') == 'dispModuleChangeLang')-->
    {@ $selected_menu_title=$lang->select_lang; }
    <[email protected](Context::get('act') == 'dispMemberSignUpForm')-->
    {@ $selected_menu_title=$lang->cmd_signup; }
    <[email protected](Context::get('act') == 'dispMemberFindAccount')-->
    {@ $selected_menu_title=$lang->cmd_find_member_account;}
    <[email protected](Context::get('act') == 'MEIS')-->
    {@ $selected_menu_title=$lang->meis;}
    <[email protected]>
    <[email protected]($layout_info->act_css_change == 'Y')-->
    {@ Context::addCssFile("./m.layouts/comsin_tomato/act.css", true, '') }
    <[email protected]>
    {@
    $layout_info->layout_type='sub';
    $smenu_list = '';
    }
    <[email protected]>

    <!-- header start -->
    <script type="text/javascript">
    <[email protected]($layout_info->layout_type=='sub')-->
    var layoutType = 'sub';
    <[email protected]($layout_info->layout_type=='index')-->
    var layoutType = 'index';
    <[email protected]>
    var layoutType = 'normal';
    <[email protected]>
    var widgetBoxResize = '{$layout_info->widget_resize_use}';
    if(!widgetBoxResize) widgetBoxResize = 'N';
    </script>

    <[email protected]($core_version == '4')-->
    <[email protected]($layout_info->favicon_image_apple)-->
    {@
    $shortcut_icon = '<link rel="apple-touch-icon" href="'.$layout_info->favicon_image_apple.'" />';
    Context::addHtmlHeader($shortcut_icon);
    unset($shortcut_icon);
    }
    <[email protected]>
    <[email protected]($layout_info->favicon_image_andrid)-->
    {@
    $shortcut_icon = '<link rel="shortcut icon" href="'.$layout_info->favicon_image_andrid.'" />';
    Context::addHtmlHeader($shortcut_icon);
    unset($shortcut_icon);
    }
    <[email protected]>
    <[email protected]>

    <[email protected]($layout_info->layout_type=='index')-->
    <load target="./css/_index.css"/>
    <load target="./js/layout.mnav.js" type="body"/>
    <include target="./inc/_nav_box.html" />
    <[email protected]($layout_info->colorset== 'gray')-->
    <load target="./css/colorset_idx/gray.css" />
    <[email protected]($layout_info->colorset == 'dark_blue')-->
    <load target="./css/colorset_idx/dark_blue.css" />
    <[email protected]($layout_info->colorset == 'dark_purple')-->
    <load target="./css/colorset_idx/dark_purple.css" />
    <[email protected]($layout_info->colorset == 'blue_black')-->
    <load target="./css/colorset_idx/blue_black.css" />
    <[email protected]($layout_info->colorset=='red')-->
    <load target="./css/colorset_idx/red.css" />
    <[email protected]($layout_info->colorset=='orange')-->
    <load target="./css/colorset_idx/orange.css" />
    <[email protected]($layout_info->colorset=='dark_brown')-->
    <load target="./css/colorset_idx/dark_brown.css" />
    <[email protected]>
    <[email protected]>
    <load target="./css/_normal.css"/>
    <[email protected]($layout_info->colorset=='gray')-->
    <load target="./css/colorset/gray.css" />
    <[email protected]($layout_info->colorset=='dark_blue')-->
    <load target="./css/colorset/dark_blue.css" />
    <[email protected]($layout_info->colorset=='dark_purple')-->
    <load target="./css/colorset/dark_purple.css" />
    <[email protected]($layout_info->colorset=='blue_black')-->
    <load target="./css/colorset/blue_black.css" />
    <[email protected]($layout_info->colorset=='red')-->
    <load target="./css/colorset/red.css" />
    <[email protected]($layout_info->colorset=='orange')-->
    <load target="./css/colorset/orange.css" />
    <[email protected]($layout_info->colorset=='dark_brown')-->
    <load target="./css/colorset/dark_brown.css" />
    <[email protected]>
    <[email protected]>

    <div id="content-wrapper">
    <header>
    <[email protected]($layout_info->banner_use_0 == 'Y' && $layout_info->banner_image_0)-->
    <!-- banner_box0 start -->
    <div class="banner_box">
    <a href="{$layout_info->banner_url_0}" title="top_banner" target="{$layout_info->banner_target_0}">
    <span style="background:<[email protected]($layout_info->banner_bg_image_0)-->url('{$layout_info->banner_bg_image_0}') repeat-x;<[email protected]($layout_info->banner_bg_color_0)-->#{$layout_info->banner_bg_color_0};<[email protected]>#000000;<[email protected]> background-size:auto;-webkit-background-size:auto;">
    <img width="320" data-content-type="image" alt="Banner Image" src="{$layout_info->banner_image_0}">
    </span>
    </a>
    </div>
    <!-- banner_box0 end -->
    <[email protected]>

    <[email protected]($layout_info->layout_type=='index')-->
    <include target="./inc/_index.html" />
    <[email protected]>
    <include target="./inc/_normal.html" />
    <[email protected]>
    </header>
    <!-- header end -->
    <!-- container start -->
    <div id="container">
    <[email protected]($layout_info->banner_use_1 == 'Y' && $layout_info->banner_image_1)-->
    <!-- banner_box1 start -->
    <div class="banner_box">
    <a href="{$layout_info->banner_url_1}" title="top_banner" target="{$layout_info->banner_target_1}">
    <span style="background:<[email protected]($layout_info->banner_bg_image_1)-->url('{$layout_info->banner_bg_image_1}') repeat-x;<[email protected]($layout_info->banner_bg_color_1)-->#{$layout_info->banner_bg_color_1};<[email protected]>#000000;<[email protected]> background-size:auto;-webkit-background-size:auto;">
    <img width="320" data-content-type="image" alt="Banner Image" src="{$layout_info->banner_image_1}">
    </span>
    </a>
    </div>
    <!-- banner_box1 end -->
    <[email protected]>
    <[email protected]($layout_info->google_ad_client_1 && $layout_info->google_ad_slot_1)-->
    <!-- google add1 start -->
    <div class="google_ad_box" style="{$layout_info->google_ad_box_style_1}">
    <div class="ad_box" id="googleAdBox1">
    <script type="text/javascript"><!--
    <[email protected]((int)$layout_info->google_ad_width_1 > 0)-->
    var gaw1 = {(int)$layout_info->google_ad_width_1};
    <[email protected]>
    var gaw1 = document.getElementById('googleAdBox1').offsetWidth;
    <[email protected]>
    google_ad_client = "{$layout_info->google_ad_client_1}";
    google_ad_slot = "{$layout_info->google_ad_slot_1}";
    google_ad_width = gaw1;
    <[email protected]((int)$layout_info->google_ad_height_1 > 0)-->
    google_ad_height = {(int)$layout_info->google_ad_height_1};
    <[email protected]>
    google_ad_height = 60;
    <[email protected]>
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    </div>
    <!-- google add1 end -->
    <[email protected]>
    <[email protected](!$act_check)-->
    <!-- top_widget_box start -->
    <[email protected]($layout_info->top_widget_code_1)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->top_widget_title_1)--><h2>{$layout_info->top_widget_title_1}</h2><[email protected]>
    <[email protected]($layout_info->top_widget_url_1)--><span class="more"><a href="{$layout_info->top_widget_url_1}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->top_widget_code_1}</div>
    </div>
    <[email protected]>
    <[email protected]($layout_info->top_widget_code_2)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->top_widget_title_2)--><h2 >{$layout_info->top_widget_title_2}</h2><[email protected]>
    <[email protected]($layout_info->top_widget_url_2)--><span class="more"><a href="{$layout_info->top_widget_url_2}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->top_widget_code_2}</div>
    </div>
    <[email protected]>
    <!-- top_widget_box end -->
    <[email protected]>
    <!-- contents_box start -->
    <div class="contents_box">
    <[email protected]($act_check && $layout_info->act_css_change == 'Y')-->
    <div id="actChangeBox">{$content}</div>
    <[email protected]>
    {$content}
    <[email protected]>
    </div>
    <!-- contents_box end -->
    <[email protected](!$act_check)-->
    <!-- bottom_widget_box start -->
    <[email protected]($layout_info->bottom_widget_code_1)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->bottom_widget_title_1)--><h2>{$layout_info->bottom_widget_title_1}</h2><[email protected]>
    <[email protected]($layout_info->bottom_widget_url_1)--><span class="more"><a href="{$layout_info->bottom_widget_url_1}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->bottom_widget_code_1}</div>
    </div>
    <[email protected]>
    <[email protected]($layout_info->bottom_widget_code_2)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->bottom_widget_title_2)--><h2>{$layout_info->bottom_widget_title_2}</h2><[email protected]>
    <[email protected]($layout_info->bottom_widget_url_2)--><span class="more"><a href="{$layout_info->bottom_widget_url_2}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->bottom_widget_code_2}</div>
    </div>
    <[email protected]>
    <[email protected]($layout_info->bottom_widget_code_3)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->bottom_widget_title_3)--><h2>{$layout_info->bottom_widget_title_3}</h2><[email protected]>
    <[email protected]($layout_info->bottom_widget_url_3)--><span class="more"><a href="{$layout_info->bottom_widget_url_3}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->bottom_widget_code_3}</div>
    </div>
    <[email protected]>
    <[email protected]($layout_info->bottom_widget_code_4)-->
    <div class="widget_box {$layout_info->colorset}">
    <[email protected]($layout_info->bottom_widget_title_4)--><h2>{$layout_info->bottom_widget_title_4}</h2><[email protected]>
    <[email protected]($layout_info->bottom_widget_url_4)--><span class="more"><a href="{$layout_info->bottom_widget_url_4}" title="{$lang->more}" >{$lang->more}</a></span><[email protected]>
    <div class="widgets">{$layout_info->bottom_widget_code_4}</div>
    </div>
    <[email protected]>
    <!-- bottom_widget_box end -->
    <[email protected]>

    <[email protected]($layout_info->dialing_link_use == 'Y' && $layout_info->dialing_tel_number)-->
    <!-- helpline_box -->
    <div class="helpline_box">
    <[email protected]($layout_info->dialing_title)-->{$layout_info->dialing_title}<[email protected]>{$lang->dialing}<[email protected]> <em class="num">{$layout_info->dialing_tel_number}</em>
    </a>
    </div>
    <[email protected]>
    <[email protected]($layout_info->google_ad_client_2 && $layout_info->google_ad_slot_2)-->
    <!-- google add2 start -->
    <div class="google_ad_box" style="{$layout_info->google_ad_box_style_2}">
    <div class="ad_box" id="googleAdBox2">
    <script type="text/javascript"><!--
    <[email protected]((int)$layout_info->google_ad_width_2 > 0)-->
    var gaw2 = {(int)$layout_info->google_ad_width_2};
    <[email protected]>
    var gaw2 = document.getElementById('googleAdBox2').offsetWidth;
    <[email protected]>
    google_ad_client = "{$layout_info->google_ad_client_2}";
    google_ad_slot = "{$layout_info->google_ad_slot_2}";
    google_ad_width = gaw2;
    <[email protected]((int)$layout_info->google_ad_height_2 > 0)-->
    google_ad_height = {(int)$layout_info->google_ad_height_2};
    <[email protected]>
    google_ad_height = 60;
    <[email protected]>
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    </div>
    <!-- google add2 end -->
    <[email protected]>

    </div>
    <!-- container end -->
    <!-- footer start -->
    <footer>
    <[email protected](!$layout_info->footer_type)-->
    <include target="inc/footer/default/footer.html" />
    <[email protected]>
    </footer>
    <!-- footer end -->
    </div>
    <[email protected]($layout_info->hide_address_bar == 'Y')-->
    <!-- address bar hide -->
    <script type="text/javascript">
    function scroll2Top(){var a=function(){var b=(document.documentElement&&document.documentElement.scrollTop)||document.body.scrollTop;if(b===0){window.setTimeout(scrollTo,0,0,1)}};window.setTimeout(a,500)}if(window.attachEvent){window.attachEvent("load",scroll2Top)}else{window.addEventListener("load",scroll2Top)};
    </script>
    <!-- //address bar hide -->
    <[email protected]>
  • profile

    소스만 왕창 복붙하기보다는 사이트 주소 + 무엇이 어떻게 안 되는지 자세히 써 주시면 해결에 도움이 됩니다. 안 된다는 일부 기능이 무엇인지에 대한 최소한의 정보도 없는 상황에서 누가 수백 줄의 소스를 하루종일 분석하고 앉아 있겠어요? 해당 소스에서 연결된 다른 파일이 원인일 수도 있기 때문에, 실제 작동하는 모습을 보지 않고서는 절반의 추측밖에 할 수 없습니다.

    윗분이 링크 남겨주신 공지가 괜히 공지인 것이 아닙니다. 공지 내용을 좀더 진지하게 지켜주시면 좋겠습니다. 어느 커뮤니티에서나 공지 필독은 기본적인 예의입니다.