mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
content (기본 정보) 위젯의 속성에 table태그를 쓰지 않는 옵션 추가 (여러형태의 스킨에서 사용하기 위함)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6395 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
afaed6792d
commit
a6ad202271
5 changed files with 255 additions and 95 deletions
|
|
@ -633,5 +633,38 @@
|
|||
<name xml:lang="ru">Feed(RSS/ATOM) URL</name>
|
||||
<name xml:lang="zh-TW">Feed(RSS/ATOM) URL</name>
|
||||
</var>
|
||||
<var id="markup_type">
|
||||
<type>select</type>
|
||||
<name xml:lang="ko">HTML 출력 방식</name>
|
||||
<name xml:lang="jp">HTML 출력 방식</name>
|
||||
<name xml:lang="zh-CN">HTML 출력 방식</name>
|
||||
<name xml:lang="en">HTML 출력 방식</name>
|
||||
<name xml:lang="ru">HTML 출력 방식</name>
|
||||
<name xml:lang="zh-TW">HTML 출력 방식</name>
|
||||
<description xml:lang="ko">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<description xml:lang="jp">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<description xml:lang="zh-CN">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<description xml:lang="en">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<description xml:lang="ru">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<description xml:lang="zh-TW">TABLE(표)태그와 UL(목록형) 태그를 선택하여 출력하게 할 수 있습니다. (기본은 TABLE입니다)</description>
|
||||
<options>
|
||||
<value>table</value>
|
||||
<name xml:lang="ko">Table</name>
|
||||
<name xml:lang="jp">Table</name>
|
||||
<name xml:lang="zh-CN">Table</name>
|
||||
<name xml:lang="en">Table</name>
|
||||
<name xml:lang="ru">Table</name>
|
||||
<name xml:lang="zh-TW">Table</name>
|
||||
</options>
|
||||
<options>
|
||||
<value>list</value>
|
||||
<name xml:lang="ko">UL (list)</name>
|
||||
<name xml:lang="jp">UL (list)</name>
|
||||
<name xml:lang="zh-CN">UL (list)</name>
|
||||
<name xml:lang="en">UL (list)</name>
|
||||
<name xml:lang="ru">UL (list)</name>
|
||||
<name xml:lang="zh-TW">UL (list)</name>
|
||||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -55,6 +55,9 @@
|
|||
// 보기 옵션
|
||||
$args->option_view_arr = explode(',',$args->option_view);
|
||||
|
||||
// markup 옵션
|
||||
if(!$args->markup_type) $args->markup_type = 'table';
|
||||
|
||||
// 내부적으로 쓰이는 변수 설정
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_srls = $args->modules_info = $args->module_srls_info = $args->mid_lists = array();
|
||||
|
|
@ -619,6 +622,8 @@
|
|||
$widget_info->list_type = $args->list_type;
|
||||
$widget_info->tab_type = $args->tab_type;
|
||||
|
||||
$widget_info->markup_type = $args->markup_type;
|
||||
|
||||
// 탭형태일경우 탭에 대한 정보를 정리하고 module_srl로 되어 있는 key값을 index로 변경
|
||||
if($args->tab_type != 'none' && $args->tab_type) {
|
||||
$tab = array();
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
.widgetTabA li a{ position:relative; left:2px; float:left; height:20px; padding:8px 15px 0 15px; text-decoration:none; font-size:12px; background-repeat:no-repeat; background-position:right 0;}
|
||||
.widgetTabA li.active a{ background-position:right -30px; font-weight:bold; letter-spacing:-1px;}
|
||||
|
||||
ul.widgetA { margin:0; padding:0; list-style:none; }
|
||||
ul.widgetA li { margin:0; padding:0; list-style:none; }
|
||||
.widgetTableA { width:100%; font-size:12px; position:relative; border:0;}
|
||||
.widgetTableA td{ border:0; line-height:1.5; white-space:nowrap; vertical-align:top; padding:1px 5px 1px 5px;}
|
||||
.widgetTableA td.title{ width:100%; white-space:normal;}
|
||||
|
|
@ -107,6 +109,15 @@ dl.widgetDivider dd{ display:none; margin:0;}
|
|||
.widgetTabA li a{ background-image:url(../img/white/buttonWidgetTab.gif);}
|
||||
.widgetTabA li a{ color:#333;}
|
||||
|
||||
.widgetA a.board { color:#333; padding-right:5px; background:url(../img/white/lineTextDiv.gif) no-repeat right center;}
|
||||
.widgetA .notice{ color:#ff1a1a; background:url(../img/white/lineTextDiv.gif) no-repeat right center;}
|
||||
.widgetA .category{ color:#333; background:url(../img/white/lineTextDiv.gif) no-repeat right center;}
|
||||
.widgetA .replyNum a{ color:#ff1a1a;}
|
||||
.widgetA .trackbackNum a{ color:#66c;}
|
||||
.widgetA .author { color:#333;}
|
||||
.widgetA .date{ color:#333;}
|
||||
.widgetA .hour{ color:#888;}
|
||||
|
||||
.widgetTableA td.title a{ color:#333;}
|
||||
.widgetTableA td .board{ color:#333; background:url(../img/white/lineTextDiv.gif) no-repeat right center;}
|
||||
.widgetTableA td .notice{ color:#ff1a1a; background:url(../img/white/lineTextDiv.gif) no-repeat right center;}
|
||||
|
|
|
|||
|
|
@ -1,60 +1,121 @@
|
|||
{@$have_first_thumbnail=false}
|
||||
<!--@if(count($widget_info->content_items) && $widget_info->content_items[0]->haveFirstThumbnail())-->
|
||||
{@$thumbnail_idx = $widget_info->content_items[0]->getFirstThumbnailIdx() }
|
||||
{@$have_first_thumbnail=true}
|
||||
<p class="widgetThumb floatLeft" style="margin-right:-{$widget_info->thumbnail_width}px">
|
||||
<a href="{$widget_info->content_items[$thumbnail_idx]->getLink()}" class="thumb"><img src="{$widget_info->content_items[$thumbnail_idx]->getThumbnail()}" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px"></a>
|
||||
</p>
|
||||
<!--@end-->
|
||||
<!--// 목록형 출력 -->
|
||||
<!--@if($widget_info->markup_type=="list")-->
|
||||
{@$have_first_thumbnail=false}
|
||||
<!--@if(count($widget_info->content_items) && $widget_info->content_items[0]->haveFirstThumbnail())-->
|
||||
{@$thumbnail_idx = $widget_info->content_items[0]->getFirstThumbnailIdx() }
|
||||
{@$have_first_thumbnail=true}
|
||||
<p class="widgetThumb floatLeft" style="margin-right:-{$widget_info->thumbnail_width}px">
|
||||
<a href="{$widget_info->content_items[$thumbnail_idx]->getLink()}" class="thumb"><img src="{$widget_info->content_items[$thumbnail_idx]->getThumbnail()}" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px"></a>
|
||||
</p>
|
||||
<!--@end-->
|
||||
|
||||
<div<!--@if($have_first_thumbnail)--> style="padding-left:{$widget_info->thumbnail_width+10}px"<!--@end-->>
|
||||
<table class="widgetTableA" 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="title">
|
||||
<div<!--@if($have_first_thumbnail)--> style="padding-left:{$widget_info->thumbnail_width+10}px"<!--@end-->>
|
||||
<ul class="widgetA">
|
||||
{@$_idx=0}
|
||||
<!--@foreach($widget_info->content_items as $key => $item)-->
|
||||
<li<!--@if($_idx >= $widget_info->list_count)--> style="display:none"<!--@end-->>
|
||||
<!--@foreach($widget_info->option_view_arr as $k => $v)-->
|
||||
<!--@if($v=='title')-->
|
||||
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
<a href="{getSiteUrl($item->domain, '', 'mid', $item->get('mid'))}" class="board"><strong>{$item->getBrowserTitle()}</strong></a>
|
||||
<!--@end-->
|
||||
|
||||
<!--@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-->
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
<a href="{getSiteUrl($item->domain,'','mid',$item->get('mid'),'category',$item->get('category_srl'))}"><strong class="category">{$item->getCategory()}</strong></a>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
<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()}">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
|
||||
<a href="{$item->getLink()}">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
|
||||
<!--@end-->
|
||||
<!--@if($widget_info->show_icon=='Y')-->
|
||||
<span class="icon">{$item->printExtraImages()}</span>
|
||||
<!--@end-->
|
||||
<!--@else if($v=='nickname')-->
|
||||
<a href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}">{$item->getNickName()}</a>
|
||||
<!--@else if($v=='regdate')-->
|
||||
<span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</li>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!--@if($widget_info->show_icon=='Y')-->
|
||||
<span class="icon">{$item->printExtraImages()}</span>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<!--@else if($v=='nickname')-->
|
||||
<td><a href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}">{$item->getNickName()}</a></td>
|
||||
<!--@else if($v=='regdate')-->
|
||||
<td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span></td>
|
||||
<!--@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('div').children('table.widgetTableA'),{$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('div').children('table.widgetTableA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
|
||||
<!--// 테이블형 출력 -->
|
||||
<!--@else-->
|
||||
{@$have_first_thumbnail=false}
|
||||
<!--@if(count($widget_info->content_items) && $widget_info->content_items[0]->haveFirstThumbnail())-->
|
||||
{@$thumbnail_idx = $widget_info->content_items[0]->getFirstThumbnailIdx() }
|
||||
{@$have_first_thumbnail=true}
|
||||
<p class="widgetThumb floatLeft" style="margin-right:-{$widget_info->thumbnail_width}px">
|
||||
<a href="{$widget_info->content_items[$thumbnail_idx]->getLink()}" class="thumb"><img src="{$widget_info->content_items[$thumbnail_idx]->getThumbnail()}" style="width:{$widget_info->thumbnail_width}px;height:{$widget_info->thumbnail_height}px"></a>
|
||||
</p>
|
||||
<!--@end-->
|
||||
|
||||
<div<!--@if($have_first_thumbnail)--> style="padding-left:{$widget_info->thumbnail_width+10}px"<!--@end-->>
|
||||
<table class="widgetTableA" 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="title">
|
||||
|
||||
<!--@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-->
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
<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()}">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><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><a href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}">{$item->getNickName()}</a></td>
|
||||
<!--@else if($v=='regdate')-->
|
||||
<td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span></td>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</tr>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--@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('div').children('table.widgetTableA'),{$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('div').children('table.widgetTableA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</tr>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!--@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('div').children('table.widgetTableA'),{$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('div').children('table.widgetTableA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
|
|
|
|||
|
|
@ -1,50 +1,100 @@
|
|||
<table class="widgetTableA" 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="title">
|
||||
<!--// 목록형 출력 -->
|
||||
<!--@if($widget_info->markup_type=="list")-->
|
||||
<ul class="widgetA">
|
||||
{@$_idx=0}
|
||||
<!--@foreach($widget_info->content_items as $key => $item)-->
|
||||
<li<!--@if($_idx >= $widget_info->list_count)--> style="display:none"<!--@end-->>
|
||||
|
||||
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
<!--@foreach($widget_info->option_view_arr as $k => $v)-->
|
||||
<!--@if($v=='title')-->
|
||||
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
<a href="<!--@if($item->contents_link)-->{$item->contents_link}<!--@else-->{getSiteUrl($item->domain, '', 'mid', $item->get('mid'))}<!--@end-->" class="board"><strong>{$item->getBrowserTitle()}</strong></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'))}"><strong class="category">{$item->getCategory()}</strong></a>
|
||||
<!--@end-->
|
||||
|
||||
<a href="<!--@if($item->contents_link)-->{$item->contents_link}<!--@else-->{getSiteUrl($item->domain, '', 'mid', $item->get('mid'))}<!--@end-->"><strong class="board">{$item->getBrowserTitle()}</strong></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'))}"><strong class="category">{$item->getCategory()}</strong></a>
|
||||
<!--@end-->
|
||||
<a href="{$item->getLink()}" class="title">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
|
||||
<a href="{$item->getLink()}">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><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->show_icon=='Y')-->
|
||||
<span class="icon">{$item->printExtraImages()}</span>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<!--@else if($v=='nickname')-->
|
||||
<td><a <!--@if($item->getMemberSrl())-->href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}"<!--@elseif($item->getAuthorSite())-->href="{$item->getAuthorSite()}" onclick="window.open(this.href); return false;" class="author member"<!--@else-->href="#" onclick="return false;" class="author member"<!--@end--> >{$item->getNickName()}</a></td>
|
||||
<!--@else if($v=='regdate')-->
|
||||
<td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span></td>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</tr>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<!--@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('table.widgetTableA'),{$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('table.widgetTableA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@else if($v=='nickname')-->
|
||||
<a <!--@if($item->getMemberSrl())-->href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}"<!--@elseif($item->getAuthorSite())-->href="{$item->getAuthorSite()}" onclick="window.open(this.href); return false;" class="author member"<!--@else-->href="#" onclick="return false;" class="author member"<!--@end--> >{$item->getNickName()}</a>
|
||||
|
||||
<!--@else if($v=='regdate')-->
|
||||
<span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</li>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</ul>
|
||||
|
||||
<!--@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.widgetA'),{$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.widgetA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
|
||||
<!--// 테이블형 출력 -->
|
||||
<!--@else-->
|
||||
<table class="widgetTableA" 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="title">
|
||||
|
||||
<!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
|
||||
<a href="<!--@if($item->contents_link)-->{$item->contents_link}<!--@else-->{getSiteUrl($item->domain, '', 'mid', $item->get('mid'))}<!--@end-->"><strong class="board">{$item->getBrowserTitle()}</strong></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'))}"><strong class="category">{$item->getCategory()}</strong></a>
|
||||
<!--@end-->
|
||||
|
||||
<a href="{$item->getLink()}">{$item->getTitle($widget_info->subject_cut_size)}</a>
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<sup class="replyNum"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<sup class="trackbackNum"><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><a <!--@if($item->getMemberSrl())-->href="#" onclick="return false;" class="author member_{$item->getMemberSrl()}"<!--@elseif($item->getAuthorSite())-->href="{$item->getAuthorSite()}" onclick="window.open(this.href); return false;" class="author member"<!--@else-->href="#" onclick="return false;" class="author member"<!--@end--> >{$item->getNickName()}</a></td>
|
||||
<!--@else if($v=='regdate')-->
|
||||
<td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</span></td>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</tr>
|
||||
{@$_idx++}
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
<!--@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('table.widgetTableA'),{$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('table.widgetTableA'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
|
||||
</ul>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue