썸네일 생성 함수명 변경

This commit is contained in:
chicpro
2013-02-20 09:27:42 +09:00
parent ea85e07302
commit 325997138a
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,8 @@ function it_img_thumb($filename, $filepath, $thumb_width, $thumb_height, $is_cre
return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create); return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create);
} }
function get_board_contents($contents) // 게시글보기 썸네일 생성
function get_view_thumbnail($contents)
{ {
if(!G4_IS_MOBILE) if(!G4_IS_MOBILE)
return $contents; return $contents;

View File

@ -127,7 +127,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
for ($i=0; $i<=count($view['file']); $i++) { for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) { if ($view['file'][$i]['view']) {
//echo $view['file'][$i]['view']; //echo $view['file'][$i]['view'];
echo get_board_contents($view['file'][$i]['view']); echo get_view_thumbnail($view['file'][$i]['view']);
} }
} }
@ -135,7 +135,7 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
} }
?> ?>
<div id="bo_v_con"><?=get_board_contents($view['content']);?></div> <div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?> <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a> <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>