get_view_thumbnail a태그를 삭제하고싶습니다!
본문
뷰페이지 모든이미지가 a태그 본인 이미지가 선택이 되어 target="_blank" 되는 기본옵션을 삭제하고 싶은데 어디서 수정해야할까요?
<?php
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "<div id=\"bo_v_img\">\n";
for ($i=1; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
echo $view['file'][$i]['view'];
//echo get_view_thumbnail($view['file'][$i]['view']);
}
}
echo "</div>\n";
}
?>
이부분이라고 생각이 됩니다.
thumbnail.lib.php 에서도 못찾겠네요
답변 2
1.a태그 삭제대신에 해당 a태그에 pointer-events: none; css만 추가해 주셔도 뷰페이지에서 이미지 클릭 및 팝업을 방지할 수 있습니다.
2. 삭제를 원하시면
/lib/common.lib.php 에 1325~ 1333번째 내용중 a태그 생성내용에 주석처리나 삭제하시면 a태그가 생성되지 않습니다.
if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) {
$img = '<a href="'.G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($file).'" target="_blank" class="view_image">';
$img .= '<img src="'.G5_DATA_URL.'/file/'.$board['bo_table'].'/'.urlencode($file).'" alt="'.$content.'" '.$attr.'>';
$img .= '</a>';
return $img;
}
}