bxslider을 이용한 간단한 최근글 정보
최신글 bxslider을 이용한 간단한 최근글관련링크
첨부파일
본문
<?php
$options = array( 'latest_name' => 'glist1', 'thumb_width' => 450, 'thumb_height' => 250, 'box_row' => 5, 'first_img' => 1, 'bxslider' => 1);
echo latest('bxslider_glist', '게시판아이디', 15, 25, 0, $options);
?>
---------------------------------------------------------------------------------------------------------------------------------
이미지가 없는 최신글 사용방법
<?php
$options = array( 'latest_name' => 'glist2', 'thumb_width' => 450, 'thumb_height' => 200, 'box_row' => 5, 'first_img' => 0, 'bxslider' => 1);
echo latest('bxslider_glist', '게시판아이디', 10, 25, 0, $options);
?>
---------------------------------------------------------------------------------------------------------------------------------
bxslider가 제외된 최신글 사용방법
<?php
$options = array( 'latest_name' => 'glist2', 'thumb_width' => 450, 'thumb_height' => 200, 'box_row' => 5, 'first_img' => 0, 'bxslider' => 1);
echo latest('bxslider_glist', '게시판아이디', 10, 25, 0, $options);
?>
---------------------------------------------------------------------------------------------------------------------------------
$options 설명
1. latest_name : latest_name은 중복불가
2. thumb_width, thumb_height은 출력될 이미지 크기....
3. box_row : bxslider를 사용할 경우 슬라이더 개수 ( 최신글출력수 / box_row = 슬라이더개수, 10 / 5 = 2 )
4. first_img : 1 : 첫번째 게시물을 이미지와 제목을 출력 / 0 : 이미지 출력하지 않음
5. bxslider : bxslider사용 유무
6. bxslider_speed라는 옵션은 있으나 필요 없을것 같아 사용방법 설명에서는 넣지 않음.(기본 : 200)
!-->!-->!-->
10