웹진 게시판을 좀 수정하고 싶은데..

웹진 게시판을 좀 수정하고 싶은데..

QA

웹진 게시판을 좀 수정하고 싶은데..

답변 1

본문

https://sir.kr/g5_skin/10066?sfl=wr_subject%7C%7Cwr_content&stx=%EC%9B%B9%EC%A7%84&page=2

 

위에 웹진 게시판을 다운 받아서 사용할려고 수정을 좀 하고 있습니다.

 

3554547725_1524448356.3251.png

 

기본으로 첨부파일에 이미지가 없으면 공지사항처럼 나오고 (no image 표시 없이)

이미지가 있으면 공지사항 형식으로 왼쪽으로 이미지가 보이게 할려면 어찌 수정을 해야 할까요?

 

지금은 이미지가 기본 폭을 차지하고 있어서 별로 이쁘지 않아서 좀 수정 좀 하고 싶습니다.

 

 


            <td class="td_subject">
                <div class="sb_vimg">
                    <a href="<?php echo $list[$i]['href'] ?>">
                    <?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">';
                        }
                        echo $img_content;
                    }
                    ?>
                    </a>
                </div>
                <div class="sb_content"<?php if(!$list[$i]['is_notice']) { ?> style="margin-left:<?php echo $board['bo_gallery_width']+12; ?>px;height:<?php echo $board['bo_gallery_height'] ?>px"<?php } ?>>
                    <p class="">
                    <?php
                    echo $list[$i]['icon_reply'];
                    if ($is_category && $list[$i]['ca_name']) {
                     ?>
                    <a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
                    <?php } ?>
                    <a href="<?php echo $list[$i]['href'] ?>">
                        <span class=" sub1"><?php echo $list[$i]['subject'] ?></span>
                        <?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
                    </a>
                    <?php
                    // if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
                    // if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
                    if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
                    if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
                    if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
                    if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
                    if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
                    ?>
     <br>
     <span class=" sub">
     <?php echo cut_str(strip_tags($list[$i]['wr_content']),85);?>
     </span>
        </p>
                </div>
            </td>

 

 

 

 

이 질문에 댓글 쓰기 :

답변 1

else {

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

}

 

이부분을 삭제하면 될거같습니다.

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