묻고답하기
컨텐츠 위젯 댓글 추출 관련!!!
2010.07.23 03:28
컨텐츠 위젯 댓글 추출 부분에서, 댓글이 나오는데, 해당이미지는 댓글에 첨부한 이미지만 출력되서요.
이부분 댓글이 달린 본래의 게시물에 첨부된 이미지가 출력되게끔 할 수 없을가요?
다음에서 어느부분을 어떻게 고쳐야 할지...
제발 좀 도와주세요.
미리 감사드립니다~
<ul class="widgetZineA">
{@$_idx=0}
<content_items">!--@foreach($widget_info->content_items as $key => $item)-->
<li><!--@if($_idx >= $widget_info->list_count)--> style="display:none"<>">!--@end-->>
<p class="thumbArea" style="width:{$widget_info->thumbnail_width}px;margin-right:-{$widget_info->thumbnail_width}px;">
<a href="{$item->getLink()}" class="thumb" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px">
<getThumbnail">!--@if($item->getThumbnail())-->
<img src="{$item->getThumbnail()}" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px" />
<!--@else-->
<span class="imgNone">{$lang->none_image}</span>
<!--@end-->
<show_category=='Y'">!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
<strong class="category">{$item->getCategory()}</strong>
<!--@end-->
</a>
</p>
<option_view_arr);$j<$c;$j">!--@for($j=0,$c=count($widget_info->option_view_arr);$j<$c;$j++)-->
<option_view_arr[$j]=='title'">!--@if($widget_info->option_view_arr[$j]=='title')-->
<p class="titleArea" style="margin-left:{$widget_info->thumbnail_width+20}px;">
<show_browser_title=='Y'">!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
<a href="{getSiteUrl($item->domain, '+
'+
', 'mid', $item->get('mid'))}"><strong class="board">{$item->getBrowserTitle()}</strong></a>
<!--@end-->
<show_category=='Y'">!--@if($widget_info->show_category=='Y' && $item->get('category_srl') )-->
<a href="{getSiteUrl($item->domain,','mid',$item->get('mid'),'+
'category',$item->get('category_srl'))}"><strong class="category">{$item->getCategory()}</strong></a>
<!--@end-->
<a href="{$item->getLink()}" class="title">{$item->getTitle($widget_info->subject_cut_size)}</a>
<show_comment_count=='Y'+
'">!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
<sup class="replyNum" title="Replies"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
<!--@end-->
<show_trackback_count=='Y'">!--@if($widget_info->show_trackback_count=='Y'+
' && $item->getTrackbackCount())-->
<sup class="trackbackNum" title="Trackbacks"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
<!--@end-->
<show_icon=='Y'">!--@if($widget_info->show_icon=='Y')-->
<span class="icon">{$item->printExtraImages()}</span>
<!--@end-->
<option_view_arr[$j+1]=='regdate'">!--@if($widget_info->option_view_arr[$j+1]=='regdate')-->
<span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span>
<!--@end-->
</p>
<!--@else if($widget_info->option_view_arr[$j]=='content')-->
<p class="text" style="margin-left:{$widget_info->thumbnail_width+20}px;">
{$item->getContent()}
<option_view_arr[$j+1]=='regdate'">!--@if($widget_info->option_view_arr[$j+1]=='regdate')-->
<span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span>
<!--@end-->
</p>
<!--@else if($widget_info->option_view_arr[$j]=='nickname')-->
<p class="authorArea" style="margin-left:{$widget_info->thumbnail_width+20}px;">
<a href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}">{$item->getNickName()}</a>
<option_view_arr[$j+1]=='regdate'">!--@if($widget_info->option_view_arr[$j+1]=='regdate')-->
<span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span>
<!--@end-->
</p>
<!--@end-->
<!--@end-->
</li>
{@$_idx++}
<!--@end-->
</ul>
<page_count">!--@if($widget_info->page_count > 1 && $widget_info->list_count<$_idx)-->
<ul class="widgetNavigator">
<li><button type="button" class="prev" title="{$lang->cmd_prev}" onclick="content_widget_prev(jQuery(this).parents('ul.widgetNavigator').prev('ul.widgetZineA'),{$widget_info->list_count})"><span>{$lang->cmd_prev}</span></button></li>
<li><button type="button" class="next" title="{$lang->cmd_next}" onclick="content_widget_next(jQuery(this).parents('ul.widgetNavigator').prev('ul.widgetZineA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
</ul>
<!--@end-->