공지 스타일 문의

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
공지 스타일 문의

QA

공지 스타일 문의

본문

<td class="sumimgm">

<?php

                    if (!$list[$i]['is_notice']) {

                        $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

 

                        if($thumb['src']) {

                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';

                        } else {

                            $img_content = '<img src="'.$board_skin_url.'/img/noimage.gif" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="list_img">';

                        }

                    }

                    ?>

 

 

                    <?php if(!$list[$i]['is_notice'] && $thumb['src']) { ?>

                        <a href="<?php echo $list[$i]['href']?>" class="thumbnail" src="<?php echo $thumb['ori'] ?>"><?php echo $img_content ?></a>

                    <?php } else { ?>

                        <?php echo $img_content ?>

                    <?php } ?>

               

 

  </td>

 

공지가 아닐때만 썸네일이 출력되게 나오는데요 

두번째 코드는 썸네일 마우스오버시 크게보이게 하는 문장으로 알고있습니다 


공지여도 썸네일이 똑같이 출력되게 하고 싶습니다 

게시물과 스타일을 똑같이 하려면 

조건문을 어떻게 걸어야 될까요?

부탁드립니다 

이 질문에 댓글 쓰기 :

답변 1

빨간색 부분 삭제해보세요.

if (!$list[$i]['is_notice']) {

    $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

....

.....

......

........

}

 

<?php if(!$list[$i]['is_notice'] && $thumb['src']) { ?> 

답변을 작성하시기 전에 로그인 해주세요.
전체 204
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT