Issue 2444. multilingual layer added.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11455 201d5d3c-b55e-5fd7-737f-ddc643e51545
|
|
@ -187,4 +187,15 @@ body>.x,.x table,.x input,.x textarea,.x select,.x button{font-size:13px}
|
||||||
.x .dashboard>section:nth-child(odd),
|
.x .dashboard>section:nth-child(odd),
|
||||||
.x .dashboard>section:nth-child(even){float:none;width:auto}
|
.x .dashboard>section:nth-child(even){float:none;width:auto}
|
||||||
}
|
}
|
||||||
|
.x .multilingual_item>.en{background:url(../img/flag.en.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.ko{background:url(../img/flag.ko.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.jp{background:url(../img/flag.jp.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.zh-CN{background:url(../img/flag.cn.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.zh-TW{background:url(../img/flag.cn.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.fr{background:url(../img/flag.fr.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.de{background:url(../img/flag.de.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.ru{background:url(../img/flag.ru.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.es{background:url(../img/flag.es.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.tr{background:url(../img/flag.tr.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.vi{background:url(../img/flag.vi.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.mn{background:url(../img/flag.mn.gif) no-repeat right center}
|
||||||
|
|
|
||||||
13
modules/admin/tpl/css/admin.min.css
vendored
|
|
@ -187,4 +187,15 @@ body>.x,.x table,.x input,.x textarea,.x select,.x button{font-size:13px}
|
||||||
.x .dashboard>section:nth-child(odd),
|
.x .dashboard>section:nth-child(odd),
|
||||||
.x .dashboard>section:nth-child(even){float:none;width:auto}
|
.x .dashboard>section:nth-child(even){float:none;width:auto}
|
||||||
}
|
}
|
||||||
|
.x .multilingual_item>.en{background:url(../img/flag.en.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.ko{background:url(../img/flag.ko.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.jp{background:url(../img/flag.jp.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.zh-CN{background:url(../img/flag.cn.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.zh-TW{background:url(../img/flag.cn.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.fr{background:url(../img/flag.fr.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.de{background:url(../img/flag.de.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.ru{background:url(../img/flag.ru.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.es{background:url(../img/flag.es.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.tr{background:url(../img/flag.tr.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.vi{background:url(../img/flag.vi.gif) no-repeat right center}
|
||||||
|
.x .multilingual_item>.mn{background:url(../img/flag.mn.gif) no-repeat right center}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 579 B |
BIN
modules/admin/tpl/img/flag.en.gif
Normal file
|
After Width: | Height: | Size: 583 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 577 B |
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 582 B |
BIN
modules/admin/tpl/img/flag.ko.gif
Normal file
|
After Width: | Height: | Size: 605 B |
|
Before Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 585 B |
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 581 B |
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 590 B |
|
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 585 B |
|
Before Width: | Height: | Size: 367 B |
BIN
modules/admin/tpl/img/flag.vi.gif
Normal file
|
After Width: | Height: | Size: 589 B |
|
Before Width: | Height: | Size: 370 B |
|
|
@ -46,7 +46,6 @@ jQuery(function($){
|
||||||
}, 100);
|
}, 100);
|
||||||
}).resize();
|
}).resize();
|
||||||
// GNB Click toggle
|
// GNB Click toggle
|
||||||
// Virtual click
|
|
||||||
$xGnb_li.find('ul').prev('a')
|
$xGnb_li.find('ul').prev('a')
|
||||||
.bind('click focus', function(){
|
.bind('click focus', function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
@ -89,4 +88,21 @@ jQuery(function($){
|
||||||
$xBody.addClass('wide');
|
$xBody.addClass('wide');
|
||||||
contentBugFix();
|
contentBugFix();
|
||||||
});
|
});
|
||||||
|
// Multilingual
|
||||||
|
function multilingual(){
|
||||||
|
$('.multilingual').each(function(){
|
||||||
|
var $this = $(this);
|
||||||
|
var $input = $this.parent('label').prev('input, textarea');
|
||||||
|
var $fieldset = $this.parent('label').next('fieldset');
|
||||||
|
if($this.is(':checked')){
|
||||||
|
$input.hide();
|
||||||
|
$fieldset.show();
|
||||||
|
} else {
|
||||||
|
$input.show();
|
||||||
|
$fieldset.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
multilingual();
|
||||||
|
$('.multilingual').change(multilingual);
|
||||||
});
|
});
|
||||||
18
modules/admin/tpl/js/admin.min.js
vendored
|
|
@ -46,7 +46,6 @@ jQuery(function($){
|
||||||
}, 100);
|
}, 100);
|
||||||
}).resize();
|
}).resize();
|
||||||
// GNB Click toggle
|
// GNB Click toggle
|
||||||
// Virtual click
|
|
||||||
$xGnb_li.find('ul').prev('a')
|
$xGnb_li.find('ul').prev('a')
|
||||||
.bind('click focus', function(){
|
.bind('click focus', function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
@ -89,4 +88,21 @@ jQuery(function($){
|
||||||
$xBody.addClass('wide');
|
$xBody.addClass('wide');
|
||||||
contentBugFix();
|
contentBugFix();
|
||||||
});
|
});
|
||||||
|
// Multilingual
|
||||||
|
function multilingual(){
|
||||||
|
$('.multilingual').each(function(){
|
||||||
|
var $this = $(this);
|
||||||
|
var $input = $this.parent('label').prev('input, textarea');
|
||||||
|
var $fieldset = $this.parent('label').next('fieldset');
|
||||||
|
if($this.is(':checked')){
|
||||||
|
$input.hide();
|
||||||
|
$fieldset.show();
|
||||||
|
} else {
|
||||||
|
$input.show();
|
||||||
|
$fieldset.hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
multilingual();
|
||||||
|
$('.multilingual').change(multilingual);
|
||||||
});
|
});
|
||||||
|
|
@ -87,8 +87,31 @@
|
||||||
<li>
|
<li>
|
||||||
<label for="menuName1">메뉴이름(브라우저 제목)</label>
|
<label for="menuName1">메뉴이름(브라우저 제목)</label>
|
||||||
<input id="menuName1" type="text" required />
|
<input id="menuName1" type="text" required />
|
||||||
|
<label><input type="checkbox" class="multilingual"> 다국어 사용</label>
|
||||||
|
<fieldset class="multilingual_item">
|
||||||
|
<select title="사용 가능한 다국어 목록">
|
||||||
|
<option>[새로 입력]</option>
|
||||||
|
<option>...</option>
|
||||||
|
<option>...</option>
|
||||||
|
</select><br>
|
||||||
|
<input type="text" class="en" title="English"><br>
|
||||||
|
<input type="text" class="ko" title="한국어"><br>
|
||||||
|
<input type="text" class="jp" title="日本語"><br>
|
||||||
|
<input type="text" class="zh-CN" title="中文(中国)"><br>
|
||||||
|
<input type="text" class="zh-TW" title="中文(臺灣)"><br>
|
||||||
|
<input type="text" class="fr" title="Français"><br>
|
||||||
|
<input type="text" class="de" title="Deutsch"><br>
|
||||||
|
<input type="text" class="ru" title="Русский"><br>
|
||||||
|
<input type="text" class="es" title="Español"><br>
|
||||||
|
<input type="text" class="tr" title="Türkçe"><br>
|
||||||
|
<input type="text" class="vi" title="Tiếng Việt"><br>
|
||||||
|
<input type="text" class="mn" title="Mongolian">
|
||||||
|
<p class="x_alert x_alert-info" style="width:169px">
|
||||||
|
지원하는 다국어 목록은 [<a href="{getUrl('','module','admin','act','dispAdminConfigGeneral')}">설정>일반</a>]에서 편집 가능
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li style="border-top:1px solid #ddd;padding-top:8px;margin-top:8px">
|
||||||
<label for="mid1">메뉴 아이디 <a href="#help_menuId" class="x_icon-question-sign" data-toggle="#mid1_help">?</a></label>
|
<label for="mid1">메뉴 아이디 <a href="#help_menuId" class="x_icon-question-sign" data-toggle="#mid1_help">?</a></label>
|
||||||
<div id="mid1_help" class="x_alert x_alert-info" style="display:none;width:169px">
|
<div id="mid1_help" class="x_alert x_alert-info" style="display:none;width:169px">
|
||||||
<button type="button" class="x_close" data-hide="#mid1_help">×</button>
|
<button type="button" class="x_close" data-hide="#mid1_help">×</button>
|
||||||
|
|
@ -110,8 +133,31 @@
|
||||||
<li>
|
<li>
|
||||||
<label for="menuName2">메뉴이름(브라우저 제목)</label>
|
<label for="menuName2">메뉴이름(브라우저 제목)</label>
|
||||||
<input id="menuName2" type="text" required />
|
<input id="menuName2" type="text" required />
|
||||||
|
<label><input type="checkbox" class="multilingual"> 다국어 사용</label>
|
||||||
|
<fieldset class="multilingual_item">
|
||||||
|
<select title="사용 가능한 다국어 목록">
|
||||||
|
<option>[새로 입력]</option>
|
||||||
|
<option>...</option>
|
||||||
|
<option>...</option>
|
||||||
|
</select><br>
|
||||||
|
<input type="text" class="en" title="English"><br>
|
||||||
|
<input type="text" class="ko" title="한국어"><br>
|
||||||
|
<input type="text" class="jp" title="日本語"><br>
|
||||||
|
<input type="text" class="zh-CN" title="中文(中国)"><br>
|
||||||
|
<input type="text" class="zh-TW" title="中文(臺灣)"><br>
|
||||||
|
<input type="text" class="fr" title="Français"><br>
|
||||||
|
<input type="text" class="de" title="Deutsch"><br>
|
||||||
|
<input type="text" class="ru" title="Русский"><br>
|
||||||
|
<input type="text" class="es" title="Español"><br>
|
||||||
|
<input type="text" class="tr" title="Türkçe"><br>
|
||||||
|
<input type="text" class="vi" title="Tiếng Việt"><br>
|
||||||
|
<input type="text" class="mn" title="Mongolian">
|
||||||
|
<p class="x_alert x_alert-info" style="width:169px">
|
||||||
|
지원하는 다국어 목록은 [<a href="{getUrl('','module','admin','act','dispAdminConfigGeneral')}">설정>일반</a>]에서 편집 가능
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li style="border-top:1px solid #ddd;margin-top:8px">
|
||||||
<div class="x_tabbable">
|
<div class="x_tabbable">
|
||||||
<ul class="x_nav x_nav-tabs">
|
<ul class="x_nav x_nav-tabs">
|
||||||
<li class="x_active"><a href="#linkUrl">URL 링크</a></li>
|
<li class="x_active"><a href="#linkUrl">URL 링크</a></li>
|
||||||
|
|
@ -169,12 +215,31 @@
|
||||||
<li>
|
<li>
|
||||||
<label for="menuName">메뉴 이름</label>
|
<label for="menuName">메뉴 이름</label>
|
||||||
<input type="text" id="menuName">
|
<input type="text" id="menuName">
|
||||||
|
<label><input type="checkbox" class="multilingual"> 다국어 사용</label>
|
||||||
|
<fieldset class="multilingual_item">
|
||||||
|
<select title="사용 가능한 다국어 목록">
|
||||||
|
<option>[새로 입력]</option>
|
||||||
|
<option>...</option>
|
||||||
|
<option>...</option>
|
||||||
|
</select><br>
|
||||||
|
<input type="text" class="en" title="English"><br>
|
||||||
|
<input type="text" class="ko" title="한국어"><br>
|
||||||
|
<input type="text" class="jp" title="日本語"><br>
|
||||||
|
<input type="text" class="zh-CN" title="中文(中国)"><br>
|
||||||
|
<input type="text" class="zh-TW" title="中文(臺灣)"><br>
|
||||||
|
<input type="text" class="fr" title="Français"><br>
|
||||||
|
<input type="text" class="de" title="Deutsch"><br>
|
||||||
|
<input type="text" class="ru" title="Русский"><br>
|
||||||
|
<input type="text" class="es" title="Español"><br>
|
||||||
|
<input type="text" class="tr" title="Türkçe"><br>
|
||||||
|
<input type="text" class="vi" title="Tiếng Việt"><br>
|
||||||
|
<input type="text" class="mn" title="Mongolian">
|
||||||
|
<p class="x_alert x_alert-info" style="width:169px">
|
||||||
|
지원하는 다국어 목록은 [<a href="{getUrl('','module','admin','act','dispAdminConfigGeneral')}">설정>일반</a>]에서 편집 가능
|
||||||
|
</p>
|
||||||
|
</fieldset>
|
||||||
</li>
|
</li>
|
||||||
<!--li>
|
<li style="padding-top:8px;margin-top:8px;border-top:1px solid #ddd">
|
||||||
<label for="pageTitle">페이지 제목</label>
|
|
||||||
<input type="text" id="pageTitle">
|
|
||||||
</li-->
|
|
||||||
<li>
|
|
||||||
<label for="mid2">메뉴 아이디 <a href="#help_menuId" class="x_icon-question-sign" data-toggle="#mid2_help">?</a></label>
|
<label for="mid2">메뉴 아이디 <a href="#help_menuId" class="x_icon-question-sign" data-toggle="#mid2_help">?</a></label>
|
||||||
<div id="mid2_help" class="x_alert x_alert-info" style="display:none;width:169px">
|
<div id="mid2_help" class="x_alert x_alert-info" style="display:none;width:169px">
|
||||||
<button type="button" class="x_close" data-hide="#mid2_help">×</button>
|
<button type="button" class="x_close" data-hide="#mid2_help">×</button>
|
||||||
|
|
@ -1198,19 +1263,16 @@ setTimeout(function(){
|
||||||
$('.fileRemover').click(function(){
|
$('.fileRemover').click(function(){
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
});
|
});
|
||||||
function fileRemoverDisplay(){
|
setTimeout(function(){
|
||||||
setTimeout(function(){
|
$('.fileRemover').each(function(){
|
||||||
$('.fileRemover').each(function(){
|
var $this = $(this);
|
||||||
var $this = $(this);
|
if($this.closest('form').find('>figure>img').length){
|
||||||
if($this.closest('form').find('>figure>img').length){
|
$this.show(); // Show remover
|
||||||
$this.show(); // Show remover
|
} else {
|
||||||
} else {
|
$this.hide(); // Hide remover
|
||||||
$this.hide(); // Hide remover
|
}
|
||||||
}
|
});
|
||||||
});
|
}, 1000);
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
$(window).load(fileRemoverDisplay);
|
|
||||||
// Theme(layout | skin) list toggle
|
// Theme(layout | skin) list toggle
|
||||||
$('.theme .list').each(function(){
|
$('.theme .list').each(function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
|
||||||