상품이미지 크게 보기에서 하단 썸네일 파일이 존재할 때만 출력되도록 수정

This commit is contained in:
chicpro
2013-05-03 18:30:38 +09:00
parent b664cd0ce2
commit 270f470a5c

View File

@ -26,10 +26,11 @@ include_once(G4_PATH.'/head.sub.php');
for ($i=1; $i<=5; $i++)
{
if ($i == 1) echo '<ul>';
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}"))
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}")) {
?>
<li><a href="#" id="<?php echo $it_id; ?>_l<?php echo $i; ?>" class="img_thumb"><img id="large<?php echo $i; ?>" src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it_id; ?>_l<?php echo $i; ?>" alt=""></a></li>
<?php
}
}
if ($i > 1) echo '</ul>';
?>