묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이미지 자동출력 애드온 - 이미지를 본문 밑으로
2013.06.28 02:35
이미지 자동출력 애드온에서 자동출력되는 이미지를 본문 밑으로 보내려면 어딜 수정해주어야 하나요....?
//본문 강제삽입 if($addon_info->insert_mode !='N' && $called_position == 'after_module_proc' && in_array($this->act,$document_act) ) { $oFileModel = &getModel('file'); $var = $this->variables; $document_srl = $var[document_srl]; $args->document_srl = $document_srl; $output = executeQuery('document.getDocument', $args); $content = $output->data->content; $title = $output->data->title; $files = $oFileModel->getFiles($document_srl); if(count($files)) { $target_list = getTargetImg($content,$files); if(count($target_list)) { if($addon_info->insert_sequence =='Y') krsort($target_list); $obj->document_srl = $document_srl; foreach($target_list as $key=>$val) { $content = $p."<img src=\"".$val->uploaded_filename."\" alt=\"".$val->source_filename." : ".$title."\" title=\"".$val->source_filename." : ".$title."\" $style>".$ep.$content; } $obj->content = $content; $output = executeQuery('addons.auto_image.updateDocument', $obj); } } }
$content
=
$p
.
"<img src=\""
.
$val
->uploaded_filename.
"\" alt=\""
.
$val
->source_filename.
" : "
.
$title
.
"\" title=\""
.
$val
->source_filename.
" : "
.
$title
.
"\" $style>"
.
$ep
.
$content
;
를
$content
=
$content.$p
.
"<img src=\""
.
$val
->uploaded_filename.
"\" alt=\""
.
$val
->source_filename.
" : "
.
$title
.
"\" title=\""
.
$val
->source_filename.
" : "
.
$title
.
"\" $style>"
.
$ep
;
로 변경하시면 됩니다.