최근게시물 클릭시 링크1로 보내기

최근게시물 클릭시 링크1로 보내기

QA

최근게시물 클릭시 링크1로 보내기

본문

수고하십니다.

최신게시물에서 클릭시 링크1로 보내는데 새창으로 띄우는 방법을 모르겠습니다.

 

조언 좀 부탁드려도 될까요. 

 

echo "<a href='{$list[$i]['href']}' {$notice_class}>"; 부분을 

echo "<a href="<?php if($list[$i]['wr_link1'])' {$notice_class}>"; 수정해봤는데

안되더라구요.

 

 

<code>

        <li class="l_sub">
            <?php
            if ($list[$i]['is_notice']) {
                $notice_class = "class='notice_class' ";
                $txt = "<i class='fa fa-volume-up' aria-hidden='true'></i> ";
            } else {
                $notice_class = "";
                $txt = "";
            }

            echo "<a href='{$list[$i]['href']}' {$notice_class}>";
            echo $txt;
            echo $list[$i]['subject'];
            echo "</a>";

            if ($list[$i]['comment_cnt'])
                echo "<span style='font-size:10px;color:red;'>(".$list[$i]['comment_cnt']." )</span>";

            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'];
             ?>
        </li>

</code>

이 질문에 댓글 쓰기 :

답변 1

echo "<a href='{$list[$i]['href']}' {$notice_class}>";

->

echo "<a href='{$list[$i]['wr_link1']}' target='_blank' {$notice_class}>";

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

회원로그인

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