Warning: Undefined array key "mobile_dir" in /home/kagla/new-sir/old/common.php on line 315
슬라이드 갤러리 형태의 최신글의 제목 추출 방법이 궁금해요!

슬라이드 갤러리 형태의 최신글의 제목 추출 방법이 궁금해요!

슬라이드 갤러리 형태의 최신글의 제목 추출 방법이 궁금해요!

QA

슬라이드 갤러리 형태의 최신글의 제목 추출 방법이 궁금해요!

답변 2

본문

http://tamjin-eco.com/

 

중간의 뉴스를 슬라이드 갤러리 형태로 추출했는데요...
이미지 아래에 게시글의 제목을 나오게 할려면 어떻게 해야 할까요??

 

  <div class="splide__track">

    <ul class="splide__list">

    <?php

    for ($i=0; $i<$list_count; $i++) {

    $thumb = get_list_thumbnail($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'].'" >';

    $wr_href = get_pretty_url($bo_table, $list[$i]['wr_id']);

        ?>

        <li class="splide__slide" style="margin: 0 10px;">

            <a href="<?php echo $wr_href; ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>

        </li>

    <?php }  ?>

    <?php if ($list_count == 0) { //게시물이 없을 때  ?>

    <li>게시물이 없습니다.</li>

    <?php }  ?>

    </ul>

  </div>

 

 

<li>의 이미지 추출을 따라서 
<a href="<?php echo $wr_href; ?>"><?php echo $list[$i]['subject']; ?></a>
이렇게 넣어 봤는데 제목이 추출이 되지 않아서요.
 

이 질문에 댓글 쓰기 :

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