diff --git a/adm/board_form.php b/adm/board_form.php index c91fbb273..1d3664147 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -1117,7 +1117,7 @@ $frm_submit .= ''; -$#i', '', $frm_submit); ?> +$#i', '', $frm_submit); ?>

게시판 포인트 설정

@@ -1241,7 +1241,7 @@ $(function(){ }); $(".get_theme_galc").on("click", function() { - if(!confirm("현재 테마의 갤러리 이미지 설정을 적용하시겠습니까?")) + if(!confirm("현재 테마의 게시판 이미지 설정을 적용하시겠습니까?")) return false; $.ajax({ @@ -1257,7 +1257,7 @@ $(function(){ return false; } - var field = Array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height'); + var field = Array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width'); var count = field.length; var key; diff --git a/adm/theme.js b/adm/theme.js index ad113c0fc..d20c53a60 100644 --- a/adm/theme.js +++ b/adm/theme.js @@ -8,7 +8,7 @@ $(function() { var set_default_skin = 0; if($(this).data("set_default_skin") == true) { - if(confirm("기본환경설정의 스킨을 테마에서 설정된 스킨으로 변경하시겠습니까?")) + if(confirm("기본환경설정, 1:1문의 스킨을 테마에서 설정된 스킨으로 변경하시겠습니까?\n\n변경을 선택하시면 테마에서 지정된 스킨으로 회원스킨 등이 변경됩니다.")) set_default_skin = 1; } @@ -36,7 +36,7 @@ $(function() { var theme = $(this).data("theme"); var name = $(this).data("name"); - if(!confirm(name+" 테마 사용설정을 해제하시겠습니까?")) + if(!confirm(name+" 테마 사용설정을 해제하시겠습니까?\n\n테마 설정을 해제하셔도 게시판 등의 스킨은 변경되지 않으므로 개별 변경작업이 필요합니다.")) return false; $.ajax({ diff --git a/adm/theme_config_load.php b/adm/theme_config_load.php index 69cc1acde..66561d960 100644 --- a/adm/theme_config_load.php +++ b/adm/theme_config_load.php @@ -29,7 +29,7 @@ if(!in_array($type, $arr_type)) { } if($type == 'board') { - $keys = array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height'); + $keys = array('bo_gallery_cols', 'bo_gallery_width', 'bo_gallery_height', 'bo_mobile_gallery_width', 'bo_mobile_gallery_height', 'bo_image_width'); $tconfig = get_theme_config_value($config['cf_theme'], implode(',', $keys)); $i = 0; @@ -41,7 +41,7 @@ if($type == 'board') { } if($i == 0) - $data['error'] = '적용할 갤러리 이미지 설정이 없습니다.'; + $data['error'] = '적용할 게시판 이미지 설정이 없습니다.'; } else if($type == 'conf_skin') { $keys = array('cf_new_skin', 'cf_mobile_new_skin', 'cf_search_skin', 'cf_mobile_search_skin', 'cf_connect_skin', 'cf_mobile_connect_skin', 'cf_faq_skin', 'cf_mobile_faq_skin'); diff --git a/adm/theme_update.php b/adm/theme_update.php index ca7f3e43f..e40f310d8 100644 --- a/adm/theme_update.php +++ b/adm/theme_update.php @@ -23,13 +23,26 @@ sql_query($sql); // 테마 설정 스킨 적용 if($_POST['set_default_skin'] == 1) { - $keys = 'set_default_skin, cf_member_skin, cf_mobile_member_skin, cf_new_skin, cf_mobile_new_skin, cf_search_skin, cf_mobile_search_skin, cf_connect_skin, cf_mobile_connect_skin, cf_faq_skin, cf_mobile_faq_skin'; + $keys = 'set_default_skin, cf_member_skin, cf_mobile_member_skin, cf_new_skin, cf_mobile_new_skin, cf_search_skin, cf_mobile_search_skin, cf_connect_skin, cf_mobile_connect_skin, cf_faq_skin, cf_mobile_faq_skin, qa_skin, qa_mobile_skin'; $tconfig = get_theme_config_value($theme, $keys); if($tconfig['set_default_skin']) { $sql_common = array(); + $qa_sql_common = array(); + foreach($tconfig as $key => $val) { + if(preg_match('#^qa_.+$#', $key)) { + if($val) { + if(!preg_match('#^theme/.+$#', $val)) + $val = 'theme/'.$val; + + $qa_sql_common[] = " $key = '$val' "; + } + + continue; + } + if(!isset($config[$key])) continue; @@ -45,6 +58,11 @@ if($_POST['set_default_skin'] == 1) { $sql = " update {$g5['config_table']} set " . implode(', ', $sql_common); sql_query($sql); } + + if(!empty($qa_sql_common)) { + $sql = " update {$g5['qa_config_table']} set " . implode(', ', $qa_sql_common); + sql_query($sql); + } } } diff --git a/theme/basic/theme.config.php b/theme/basic/theme.config.php index ea81ad259..f900e773f 100644 --- a/theme/basic/theme.config.php +++ b/theme/basic/theme.config.php @@ -10,6 +10,7 @@ $theme_config = array(); // 갤러리 이미지 수 등의 설정을 지정하시면 게시판관리에서 해당 값을 // 가져오기 기능을 통해 게시판 설정의 해당 필드에 바로 적용할 수 있습니다. +// 사용하지 않는 스킨 설정은 값을 비워두시면 됩니다. $theme_config = array( 'set_default_skin' => false, // 기본환경설정의 최근게시물 등의 기본스킨 변경여부 true, false @@ -29,6 +30,9 @@ $theme_config = array( 'bo_gallery_width' => 174, // 갤러리 이미지 폭 'bo_gallery_height' => 124, // 갤러리 이미지 높이 'bo_mobile_gallery_width' => 125, // 모바일 갤러리 이미지 폭 - 'bo_mobile_gallery_height' => 100 // 모바일 갤러리 이미지 높이 + 'bo_mobile_gallery_height' => 100, // 모바일 갤러리 이미지 높이 + 'bo_image_width' => 600, // 게시판 뷰 이미지 폭 + 'qa_skin' => 'basic', // 1:1문의 스킨 + 'qa_mobile_skin' => 'basic' // 1:1문의 모바일 스킨 ); ?> \ No newline at end of file