상품이미지가 원본대로 나오게 하고 싶습니다. 채택완료
메인에서 위로 스크롤되는 main.20.skin.php 파일입니다.
사진원본은 세로가 긴 사진인데 리스트에서는 정사각형으로 사진이 뚱뚱(?)하게 나오네요.
아래의 소스를 어떻게 고쳐야 사진이 원본 그대로 나오게 되나요?
도와주세요~~
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0);
/* 상품리스트가 일정 시간마다 위로 롤링되는 스킨 롤링되기 위해서는 상품이 2줄 이상이어야 함 */ ?>
1 && $i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
if ($i == 1) { if ($this->css) { echo "
- \n";
}
if ($i>1 && $i%$this->list_mod == 1) { echo "
- \n";
}
- img_width}px\">";
if ($this->href) { echo "
\n"; }if ($this->view_it_icon) { echo "
".item_icon($row)."\n"; }if ($this->view_it_id) { echo "
<".stripslashes($row['it_id']).">\n"; }if ($this->href) { echo "
\n"; }if ($this->view_it_basic && $row['it_basic']) { echo "
".stripslashes($row['it_basic'])."\n"; }if ($this->view_it_cust_price || $this->view_it_price) {
echo "
\n";\n";if ($this->view_it_cust_price && $row['it_cust_price']) { echo "
".display_price($row['it_cust_price'])."\n"; }if ($this->view_it_price) { echo display_price(get_price($row), $row['it_tel_inq'])."\n"; }
echo "
}
if ($this->view_sns) { $sns_top = $this->img_height + 10; $sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id']; $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); echo "
"; echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_fb_s.png'); echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_twt_s.png'); echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo_s.png'); echo "\n"; }echo "
\n";
}
echo "
if ($i > 1) { echo "
if($i == 1) echo "
등록된 상품이 없습니다.
\n"; ?>
답변 2개
echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name']))."\n";
윗부분 지우거나 주석 처리하고 해당 자리에 아래 내용을 넣어보세요.
for($i=1; $i<=10; $i++) {
$img_file = G5_DATA_PATH.'/item/'.$row['it_img'.$i];
if(!file_exists($img_file) || !is_file($img_file))
continue;
$img_src = G5_DATA_URL.'/item/'.$row['it_img'.$i];
echo '';
}
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인