|
diff --git a/adm/board_form_update.php b/adm/board_form_update.php
index 7e55c0759..bcb674469 100644
--- a/adm/board_form_update.php
+++ b/adm/board_form_update.php
@@ -100,7 +100,6 @@ $sql_common = " gr_id = '{$_POST['gr_id']}',
bo_gallery_cols = '{$_POST['bo_gallery_cols']}',
bo_gallery_width = '{$_POST['bo_gallery_width']}',
bo_gallery_height = '{$_POST['bo_gallery_height']}',
- bo_mobile_gallery_cols = '{$_POST['bo_mobile_gallery_cols']}',
bo_mobile_gallery_width = '{$_POST['bo_mobile_gallery_width']}',
bo_mobile_gallery_height= '{$_POST['bo_mobile_gallery_height']}',
bo_upload_count = '{$_POST['bo_upload_count']}',
@@ -264,7 +263,6 @@ if (is_checked('chk_grp_mobile_skin')) $grp_fields .= " , bo_mobile_ski
if (is_checked('chk_grp_gallery_cols')) $grp_fields .= " , bo_gallery_cols = '{$bo_gallery_cols}' ";
if (is_checked('chk_grp_gallery_width')) $grp_fields .= " , bo_gallery_width = '{$bo_gallery_width}' ";
if (is_checked('chk_grp_gallery_height')) $grp_fields .= " , bo_gallery_height = '{$bo_gallery_height}' ";
-if (is_checked('chk_grp_mobile_gallery_cols')) $grp_fields .= " , bo_mobile_gallery_cols = '{$bo_mobile_gallery_cols}' ";
if (is_checked('chk_grp_mobile_gallery_width')) $grp_fields .= " , bo_mobile_gallery_width = '{$bo_mobile_gallery_width}' ";
if (is_checked('chk_grp_mobile_gallery_height'))$grp_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_grp_table_width')) $grp_fields .= " , bo_table_width = '{$bo_table_width}' ";
@@ -349,7 +347,6 @@ if (is_checked('chk_all_mobile_skin')) $all_fields .= " , bo_mobile_ski
if (is_checked('chk_all_gallery_cols')) $all_fields .= " , bo_gallery_cols = '{$bo_gallery_cols}' ";
if (is_checked('chk_all_gallery_width')) $all_fields .= " , bo_gallery_width = '{$bo_gallery_width}' ";
if (is_checked('chk_all_gallery_height')) $all_fields .= " , bo_gallery_height = '{$bo_gallery_height}' ";
-if (is_checked('chk_all_mobile_gallery_cols')) $all_fields .= " , bo_mobile_gallery_cols = '{$bo_mobile_gallery_cols}' ";
if (is_checked('chk_all_mobile_gallery_width')) $all_fields .= " , bo_mobile_gallery_width = '{$bo_mobile_gallery_width}' ";
if (is_checked('chk_all_mobile_gallery_height'))$all_fields .= " , bo_mobile_gallery_height = '{$bo_mobile_gallery_height}' ";
if (is_checked('chk_all_table_width')) $all_fields .= " , bo_table_width = '{$bo_table_width}' ";
diff --git a/css/mobile.css b/css/mobile.css
index f5c81d89b..8f0d99279 100644
--- a/css/mobile.css
+++ b/css/mobile.css
@@ -56,10 +56,6 @@ pre {overflow-x:scroll;font-size:1.1em}
#lnb a {display:block;padding:0.5em 0;border-right:1px solid #e7f1ed;border-bottom:1px solid #e7f1ed;color:#000;text-align:center;text-decoration:none}
#lnb li:nth-of-type(5n) a {border-right:0}
-/* 배포시에는 필요없는 부분 */
-#sirgle_title {padding:0 1em;height:100px;color:#fff;font-size:2em}
-#sirgle_title_span {display:block;position:relative;top:33px;left:0}
-
/* 중간 레이아웃 */
#wrapper {margin:2em 0}
#wrapper:after {display:block;visibility:hidden;clear:both;content:""}
@@ -179,8 +175,8 @@ li.empty_list {padding:5em 0;text-align:center}
/* 새창 기본 스타일 */
.new_win {}
-.new_win h1 {margin-bottom:1.5em;padding:0 1.5em;height:3em;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;font-size:1.2em;line-height:3.5em}
-.new_win table {margin:0 auto 1.5em;width:90%}
+#new_win_title {margin-bottom:1.5em;padding:0 1.5em;height:3em;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;font-size:1.2em;line-height:3.5em}
+.new_win .basic_tbl {margin:0 auto 1.5em;width:90%}
.new_win caption {padding:1em}
.new_win_ul {margin:-1.8em 0 1.5em 0;padding:0 0 0 1.5em;border-bottom:1px solid #455255;background:#484848;list-style:none}
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
diff --git a/head.sub.php b/head.sub.php
index 9d82f58c0..32e614f8f 100644
--- a/head.sub.php
+++ b/head.sub.php
@@ -87,7 +87,6 @@ if ($is_admin) {
set_cookie("device_width", $(window).width(), 6, g5_cookie_domain); '.PHP_EOL;
echo ''.PHP_EOL; // overflow scroll 감지
}
//if(!defined('G5_IS_ADMIN'))
diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql
index cc1a03e0d..8b6cf0eda 100644
--- a/install/gnuboard5.sql
+++ b/install/gnuboard5.sql
@@ -81,7 +81,6 @@ CREATE TABLE IF NOT EXISTS `g5_board` (
`bo_gallery_cols` int(11) NOT NULL DEFAULT '0',
`bo_gallery_width` int(11) NOT NULL DEFAULT '0',
`bo_gallery_height` int(11) NOT NULL DEFAULT '0',
- `bo_mobile_gallery_cols` int(11) NOT NULL DEFAULT '0',
`bo_mobile_gallery_width` int(11) NOT NULL DEFAULT '0',
`bo_mobile_gallery_height` int(11) NOT NULL DEFAULT '0',
`bo_upload_size` int(11) NOT NULL DEFAULT '0',
diff --git a/js/viewimageresize.js b/js/viewimageresize.js
new file mode 100644
index 000000000..40e436143
--- /dev/null
+++ b/js/viewimageresize.js
@@ -0,0 +1,44 @@
+(function($) {
+ $.fn.viewimageresize = function(selector)
+ {
+ var cfg = {
+ selector: "img"
+ };
+
+ if(typeof selector == "object") {
+ cfg = $.extend(cfg, selector);
+ } else {
+ if(selector) {
+ cfg = $.extend({ selector: selector });
+ }
+ }
+
+ var $img = this.find(cfg.selector);
+ var width = this.width();
+
+ function image_resize()
+ {
+ $img.each(function() {
+ $(this).removeAttr("width")
+ .removeAttr("height")
+ .css("width","")
+ .css("height", "");
+
+ if($(this).data("width") == undefined)
+ $(this).data("width", $(this).width());
+
+ if($(this).data("width") > width) {
+ $(this).css("width", "100%");
+ }
+ });
+ }
+
+ $(window).on("load", function() {
+ image_resize();
+ });
+
+ $(window).on("resize", function() {
+ image_resize();
+ });
+ }
+}(jQuery));
\ No newline at end of file
diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php
index e6f7b05ff..337b92d42 100644
--- a/lib/thumbnail.lib.php
+++ b/lib/thumbnail.lib.php
@@ -80,27 +80,8 @@ function get_view_thumbnail($contents, $thumb_width=0)
{
global $board, $config;
- if (!$thumb_width) {
- $dvc_width = intval($_COOKIE['device_width']);
- if(G5_IS_MOBILE && $dvc_width) {
- // 썸네일 width 설정
- $thumb_width = 320;
-
- if($dvc_width > $board['bo_image_width']) {
- $thumb_width = $board['bo_image_width'];
- } else {
- if($dvc_width >= 1000) {
- $thumb_width = 1000;
- } else if($dvc_width >= 760 && $dvc_width < 1000) {
- $thumb_width = 760;
- } else if($dvc_width >= 480 && $dvc_width < 760) {
- $thumb_width = 480;
- }
- }
- } else {
- $thumb_width = $board['bo_image_width'];
- }
- }
+ if (!$thumb_width)
+ $thumb_width = $board['bo_image_width'];
// $contents 중 img 태그 추출
$matchs = get_editor_image($contents);
diff --git a/mobile/head.php b/mobile/head.php
index 3926b76ab..28dbb3357 100644
--- a/mobile/head.php
+++ b/mobile/head.php
@@ -110,7 +110,8 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/mobile/skin/board/basic/view.skin.php b/mobile/skin/board/basic/view.skin.php
index 1b2f044a9..3d87b7366 100644
--- a/mobile/skin/board/basic/view.skin.php
+++ b/mobile/skin/board/basic/view.skin.php
@@ -4,6 +4,7 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php');
?>
+
@@ -226,6 +227,9 @@ $(function() {
excute_good(this.href, $(this), $tx);
return false;
});
+
+ // 이미지 리사이즈
+ $("#bo_v_atc").viewimageresize();
});
function excute_good(href, $el, $tx)
diff --git a/mobile/skin/board/gallery/list.skin.php b/mobile/skin/board/gallery/list.skin.php
index 881eb665b..038237083 100644
--- a/mobile/skin/board/gallery/list.skin.php
+++ b/mobile/skin/board/gallery/list.skin.php
@@ -4,25 +4,12 @@ include_once(G5_LIB_PATH.'/thumbnail.lib.php');
?>
+
-
-
-
-
-
-
+
+
+
|