diff --git a/adm/admin.head.php b/adm/admin.head.php index 7db226a72..c4551e739 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -84,7 +84,7 @@ function imageview(id, w, h) 홈페이지 메인 - +
쇼핑몰 설치 후 이용해 주십시오.
'); +define('_SHOP_', true); ?> \ No newline at end of file diff --git a/shop/itemrecommend.php b/shop/itemrecommend.php index 73f96f54a..6af0cdb5a 100644 --- a/shop/itemrecommend.php +++ b/shop/itemrecommend.php @@ -14,7 +14,6 @@ if (!$it['it_name']) alert_close("등록된 상품이 아닙니다."); $g4['title'] = $it['it_name'].' - 추천하기'; -define('_SHOP_', true); include_once(G4_PATH.'/head.sub.php'); ?> diff --git a/shop/largeimage.php b/shop/largeimage.php index b0528bf18..dac761183 100644 --- a/shop/largeimage.php +++ b/shop/largeimage.php @@ -1,5 +1,4 @@ res_width) { $(this).width(res_width); + var res_height = Math.round(res_width * $(this).data("height") / $(this).data("width")); + $(this).height(res_height); } else { $(this).width(this_width); + $(this).height(this_height); } }); } diff --git a/skin/board/gallery/view.skin.php b/skin/board/gallery/view.skin.php index 19ecc715b..7873cf3bd 100644 --- a/skin/board/gallery/view.skin.php +++ b/skin/board/gallery/view.skin.php @@ -277,17 +277,24 @@ function view_image_resize() $img.each(function() { var img_width = $(this).width(); + var img_height = $(this).height(); var this_width = $(this).data("width"); + var this_height = $(this).data("height"); if(this_width == undefined) { $(this).data("width", img_width); // 원래 이미지 사이즈 + $(this).data("height", img_height); this_width = img_width; + this_height = img_height; } if(this_width > res_width) { $(this).width(res_width); + var res_height = Math.round(res_width * $(this).data("height") / $(this).data("width")); + $(this).height(res_height); } else { $(this).width(this_width); + $(this).height(this_height); } }); }