테스트 사이트 - 개발 중인 베타 버전입니다

그런데, 왜 get_it_image 에서 it 있는 거죠? 채택완료

alexseo 4년 전 조회 890

/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개

채택된 답변
+20 포인트
s
sinbi Expert
4년 전

해당 파일에 get_it_image 함수도 별도로 존재합니다.

function get_it_image($it_id, $width, $height=0, $anchor=false, $img_id='', $img_alt='', $is_crop=false)

 

PS. it :  상품(item) 의미

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

a
4년 전

네,

sinbi 님, 답변 감사합니다.

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인