그런데, 왜 get_it_image 에서 it 있는 거죠? 채택완료
/theme/basic/shop/orderinquiryview.php
$image = get_it_image($row['it_id'], 55, 55); 위의 코드는 아래의 라이브러리에서 이미지를 불러오는 코드 같아요.
그런데, get_it_image 에서 왜 it 가 있는 거죠?
아래의 라이브러리는
function get_image($img, $width=0, $height=0, $img_id='')
it 가 없고 get_image 인데 ..
어떻게 get_it_image 가 get_image를 불러올 수 있는지요?
/lib/shop.lib.php
// 이미지를 얻는다 function get_image($img, $width=0, $height=0, $img_id='') { global $g5, $default;
$full_img = G5_DATA_PATH.'/item/'.$img;
if (file_exists($full_img) && $img)
{
if (!$width)
{
$size = getimagesize($full_img);
$width = $size[0];
$height = $size[1];
}
$str = '
if($img_id) $str .= ' id="'.$img_id.'"';
$str .= '>';
}
else
{
$str = '
if($img_id) $str .= ' id="'.$img_id.'"'. $str .= '>'; }
return $str; }
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인