From fa6c798f06d4f51c1d39ead58069af6fb132be04 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 2 Oct 2013 11:56:45 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1=EC=8B=9C=20width=20?= =?UTF-8?q?=EA=B3=84=EC=82=B0=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) 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); From c2fcdfc2c78be3484592d6f386b73fbd3695f991 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 2 Oct 2013 11:58:59 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EC=9E=91=EB=8F=99=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/head.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mobile/head.php b/mobile/head.php index aa323232d..0f4481fb3 100644 --- a/mobile/head.php +++ b/mobile/head.php @@ -107,7 +107,8 @@ include_once(G5_LIB_PATH.'/popular.lib.php');

- - - + + + +
\ No newline at end of file From a1a70086acb6290df810266f232808a0304aaf05 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 2 Oct 2013 12:54:42 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=ED=81=AC=EA=B8=B0=20=EC=BF=A0=ED=82=A4=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.sub.php | 1 - 1 file changed, 1 deletion(-) diff --git a/head.sub.php b/head.sub.php index 50917e9f7..7609d275b 100644 --- a/head.sub.php +++ b/head.sub.php @@ -81,7 +81,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')) From e969fff0a8bb809ca71fe99ffb920b7df56eb8ca Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 2 Oct 2013 13:03:22 +0900 Subject: [PATCH 4/5] =?UTF-8?q?sns=20kakao=5Fappname=20urlencode=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/sns/view.sns.skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sns/view.sns.skin.php b/plugin/sns/view.sns.skin.php index 1e177053d..3b02f4b3b 100644 --- a/plugin/sns/view.sns.skin.php +++ b/plugin/sns/view.sns.skin.php @@ -9,7 +9,7 @@ $msg_url = $sns_msg.' : '.$sns_url; // 카카오톡 매뉴얼 : https://github.com/kakao/kakaolink-web $kakao_appid = $_SERVER['HTTP_HOST']; // Mobile Site Domain 정확히 입력하지 않을 경우 이용이 제한될 수 있습니다. -$kakao_appname = $g5['title']; +$kakao_appname = urlencode(str_replace('\"', '"', $g5['title'])); $facebook_url = 'http://www.facebook.com/sharer/sharer.php?s=100&p[url]='.$sns_url.'&p[title]='.$sns_msg; $twitter_url = 'http://twitter.com/home?status='.$msg_url; From 23fd49704127999db3532f5c0ec39fd7d449a148 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 2 Oct 2013 17:28:59 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=EB=A6=AC=EC=82=AC=EC=9D=B4=EC=A6=88=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=EC=8B=9C=20width=20=EA=B5=AC=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/viewimageresize.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/viewimageresize.js b/js/viewimageresize.js index 40e436143..7893ae45c 100644 --- a/js/viewimageresize.js +++ b/js/viewimageresize.js @@ -14,10 +14,12 @@ } var $img = this.find(cfg.selector); - var width = this.width(); + var $this = this; function image_resize() { + var width = $this.width(); + $img.each(function() { $(this).removeAttr("width") .removeAttr("height")