공지 스타일 문의

공지 스타일 문의

QA

공지 스타일 문의

답변 1

본문

<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']) { ?> 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 204
© SIRSOFT
현재 페이지 제일 처음으로