메인 최신글 링크가 안잡히는 이유~!

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
메인 최신글 링크가 안잡히는 이유~!

QA

메인 최신글 링크가 안잡히는 이유~!

본문


<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// Load LightBox
add_javascript('<script src="'.$latest_skin_url.'/magnific-popup/jquery.magnific-popup.min.js"></script>', 10);
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/magnific-popup/magnific-popup.css">', 10);
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
add_javascript('<script src="'.$latest_skin_url.'/load.script.js"></script>', 10);
//썸네일 설정
$thumb_width = (isset($options['thumb_w']) && $options['thumb_w'] > 0) ? $options['thumb_w'] : 500;
$thumb_height = (isset($options['thumb_h']) && $options['thumb_h'] > 0) ? $options['thumb_h'] : 350;
$l_columns = (isset($options['l_columns']) && $options['l_columns']) ? $options['l_columns'] : 4;
$l_type = (isset($options['l_type']) && $options['l_type']) ? 'image' : 'gallery';
$l_hover = (isset($options['l_hover']) && $options['l_hover']) ? 'light' : 'dark';
$list_count = (is_array($list) && $list) ? count($list) : 0;
?>
<div class="gallery-simple gallery-simple-columns-3 " >
    <?php
    for ($i=0; $i<$list_count; $i++) {
    //$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
    $thumb = get_list_thumbnail($list[$i]['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);

    if($thumb['src']) {
        $img = $thumb['src'];
    } else {
        $img = G5_IMG_URL.'/no_img.png';
        $thumb['alt'] = '이미지가 없습니다.';
    }
    $img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" >';
    ?>
    <a href="<?php echo $wr_href; ?>" class="thumbWrap ">
        <div class="thumb">
            <?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?>
        </div>
        <?php
        // if ($list[$i]['icon_secret']) echo "<i class=\"fa fa-lock\" aria-hidden=\"true\"></i><span class=\"sound_only\">비밀글</span> ";
        //if ($list[$i]['icon_new']) echo "<span class=\"new_icon\">N<span class=\"sound_only\">새글</span></span>";
        //if ($list[$i]['icon_hot']) echo "<span class=\"hot_icon\">H<span class=\"sound_only\">인기글</span></span>";
        // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
        // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
        // echo $list[$i]['icon_reply']." ";
        // if ($list[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ;
        // if ($list[$i]['icon_link']) echo " <i class=\"fa fa-link\" aria-hidden=\"true\"></i>" ;
        if ($list[$i]['comment_cnt'])  echo "
        <span class=\"lt_cmt\">".$list[$i]['wr_comment']."</span>";
        ?>
        <div class="text-area">
            <!--<div class="category"><?php echo $list[$i]['ca_name'] ?></div>-->
            <div class="subject"><?php echo cut_str($list[$i]['bo_subject'], 10, "..."); ?></div>
            <div class="productTitle"><?php echo cut_str($list[$i]['wr_subject'], 25, "..."); ?></div>
        </div>
    </a>
<?php }  ?>
    <?php if ($list_count == 0) { //게시물이 없을 때  ?>
    <div class="empty_li">게시물이 없습니다.</div>
    <?php }  ?>
</div>
<!--<div class="btn-more-link">
    <a href="#"><span>더 알아보기</span></a>
</div>-->
 

 

33102762_1683165822.4981.png

 

 

링크는 잡혀있는데 사이트에서 보면 없는걸로 나와요~~

머가 문제일까요?

 

 

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 2

회원로그인

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