그누보드에서,
에디터로 첨부된 이미지 불러오기 방법입니다.
* view.skin.php (뷰 스킨 페이지)
$matches = get_editor_image($view['content'], false);
$arr_img_src = $matches[1];
for ($i = 0; $i < count($arr_img_src); $i++) {
echo $arr_img_src[$i];
}
* list.skin.php (목록 스킨 페이지)
$matches = get_editor_image($list[$i]['content'], false);
$arr_img_src = $matches[1];
for ($j = 0; $j < count($arr_img_src); $j++) {
echo $arr_img_src[$j];
}
반응형