갤러리 content 내용 출력?
본문
G5 어렵네요 . . .
갤러리 list_skin 게시판에서 그림 제목만 보이던데
write_skin.php 그림 밑에 쓴 내용은 어떻게 출력하나요?
블로그형식처럼 보일려구하는데 못 찾겠네요~!
달인에 도움이 필요합니다.
<ul class="list-unstyled thumbnail" style="padding:10px; margin-bottom:5px;">
<li>
<ul class="list-inline text-right h6">
<?php if ($is_good) { ?><li><i class="fa fa-fw fa-thumbs-up"></i><?php echo $list[$i]['wr_good'] ?></li><?php } ?>
<?php if ($is_nogood) { ?><li><i class="fa fa-fw fa-thumbs-down"></i><?php echo $list[$i]['wr_nogood'] ?></li><?php } ?>
<li><i class="fa fa-fw fa-eye"></i><?php echo $list[$i]['wr_hit'] ?></li>
<li><i class="fa fa-fw fa-calendar"></i><?php echo $list[$i]['datetime2'] ?></li>
</ul>
</li>
<li>
<a href="<?php echo $list[$i]['href'] ?>" data-title="<?php echo $list[$i]['comment_cnt']?>">
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>
<img src="http://placehold.it/<?php echo $board['bo_gallery_width'].'X'.$board['bo_gallery_height']; ?>/ffffff/?text=공지" class="img-responsive">
<?php } else {
$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'].'" class="img-responsive">';
} else {
$img_content = '<img src="http://placehold.it/'.$board['bo_gallery_width'].'X'.$board['bo_gallery_height'].'/ffffff/?text=no+image" class="img-responsive">';
}
echo $img_content;
}
?>
</a>
</li>
<li class="text-center h5"><i class="fa fa-fw fa-user"></i><?php echo $list[$i]['name'] ?></li>
</ul>
답변 2
<?php echo $list[$i]['content'];?>를
<?php
echo
$list
[
$i
][
'name'
] ?> 앞에 넣으시면 얼추 아실듯합니다 원하시는 박스안에 넣어보세요
게시판설정에서 목록에서 내용사용에 체크하시고
해당스킨에서 $list[$i]['content']
답변을 작성하시기 전에 로그인 해주세요.