묻고답하기
웹진형위젯 naradesign를 쓰려는데..좀 도와주세요
2010.04.08 15:26
normal.html 의 테이블형부분인데요..
여기를 수정하면 되나요?
<!--// 테이블형 출력 -->
<!--@else-->
<table class="ncwList" border="1" cellspacing="0">
<tbody>
{@$_idx=0}
<!--@foreach($widget_info->content_items as $key => $item)-->
<tr<!--@if($_idx >= $widget_info->list_count)--> style="display:none"<!--@end-->>
<!--@foreach($widget_info->option_view_arr as $k => $v)-->
<!--@if($v=='title')-->
<td class="titleArea">
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
<a href="<domain">!--@if($item->contents_link)-->{$item->contents_link}<!--@else-->{getSiteUrl("$item->domain, ', 'mid', $item->get('mid'))}<!--@end-->" class="moduleTitle">{$item->getBrowserTitle()}</a>
<!--@end-->
<!--@if($widget_info->show_category=='Y' && $item->get('category_srl') )-->
<a href="{getSiteUrl($item->domain,','mid',$item->get('mid'),'category',$item->get('category_srl'+
'+
'))}" class="categoryTitle">{$item->getCategory()}</a>
<!--@end-->
<a href="{$item->getLink()}" class="documentTitle">{$item->getTitle($widget_info->subject_cut_size)}</a>
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
<sup class="replyNum" title="Replies"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
<!--@end-->
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
<sup class="trackbackNum" title="Trackbacks"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
<!--@end-->
<!--@if($widget_info->show_icon=='Y')-->
<span class="icon">{$item->printExtraImages()}</span>
<!--@end-->
</td>
<!--@else if($v=='nickname')-->
<td><span class="author">{$item->getNickName()}</span></td>
<!--@else if($v=='regdate')-->
<td class="time"><span class="date">[{$item->getRegdate("Y-m-d")}]</span></td>
<!--@end-->
<!--@end-->
</tr>
{@$_idx++}
<!--@end-->
</tbody>
</table>
아래는 image_title_content.html 부분이에요.. 어디를 어떻게 수정해야할지 모르겠어요
{@$_idx=0}
<!--@foreach($widget_info->content_items as $key => $item)-->
<li<!--@if($_idx >= $widget_info->list_count)--> style="display:none"<!--@end-->>
<p class="ncwThumbArea" >
<a href="{$item->getLink()}" >
<!--@if($item->getThumbnail())-->
<img src="{$item->getThumbnail()}" class="thumb" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px" alt="" />
<!--@else-->
<!--@end-->
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
<strong class="categoryTitle" style="width:{$widget_info->thumbnail_width}px;">{$item->getCategory()}</strong>
<!--@end-->
</a>
</p>
<!--@for($j=0,$c=count($widget_info->option_view_arr);$j<$c;$j++)-->
<!--@if($widget_info->option_view_arr[$j]=='title')-->
<p class="titleArea" style="margin-left:{$widget_info->thumbnail_width+35}px;">
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
<a href="{getSiteUrl($item->domain, ', 'mid', $item->get('mid'))}" class="moduleTitle">{$item->getBrowserTitle()}</a>
<!--@end-->
<a href="{$item->getLink()}" class="documentTitle">{$item->getTitle($widget_info->subject_cut_size)}</a>
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
<sup class="replyNum" title="Replies"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
<!--@end-->
<!--@if($widget_info->show_trackback_count=='Y'+
' && $item->getTrackbackCount())-->
<sup class="trackbackNum" title="Trackbacks"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
<!--@end-->
<!--@if($widget_info->show_icon=='Y')-->
<span class="icon">{$item->printExtraImages()}</span>
<!--@end-->
<!--@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="textArea" style="margin-left:{$widget_info->thumbnail_width+35}px;margin-right:10pt">
{$item->getContent()}
<!--@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+35}px;">
<span class="author">{$item->getNickName()}</span>
<!--@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>