diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 4eb5a9c21..ef620e915 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -14,14 +14,11 @@ function get_cart_count($uq_id) } // 이미지를 얻는다 -function get_image($img, $width=0, $height=0, $type='') +function get_image($img, $width=0, $height=0, $img_id='') { global $g4, $default; $full_img = G4_DATA_PATH.'/item/'.$img; - if($type != '') { - $img_id = 'type'.$type.'_'.$img; - } if (file_exists($full_img) && $img) { @@ -31,7 +28,12 @@ function get_image($img, $width=0, $height=0, $type='') $width = $size[0]; $height = $size[1]; } - $str = ''; + $str = ''; + + if($img_id) + $str .= ' id="'.$img_id.'"'. + $str .= '>'; } return $str; } // 상품 이미지를 얻는다 -function get_it_image($img, $width=0, $height=0, $id="", $type='') +function get_it_image($img, $width=0, $height=0, $id='', $img_id='') { - $str = get_image($img, $width, $height, $type); + $str = get_image($img, $width, $height, $img_id); if ($id) { $str = ''.$str.''; }