RSS 리더 위젯 수정

- 날짜, 스킨 관련

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6013 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
k10206 2009-04-02 05:30:33 +00:00
parent d0f4ec811c
commit 883bae440b
33 changed files with 3 additions and 356 deletions

View file

@ -102,7 +102,7 @@
}
$date = $item->pubdate;
$item->date = date($DATE_FORMAT, strtotime($date));
$item->date = $date ? date($DATE_FORMAT, strtotime($date)) : '';
$array_date[$key] = strtotime($date);
$item->description = preg_replace('!<a href=!is','<a onclick="window.open(this.href);return false" href=', $item->description);

View file

@ -1,33 +0,0 @@
.rss_reader_sz_select { width:100%; padding-bottom:15px; overflow:hidden; position:relative;}
.rss_reader_sz_select h2 { margin:0; padding:0; height:21px; padding:9px 0 0 9px; font-size:1em;}
.rss_reader_sz_select h2 a,
.rss_reader_sz_select .tabcontent_rss a { text-decoration:none; color:#000000;}
.rss_reader_sz_select h2 a:hover,
.rss_reader_sz_select .tabcontent_rss a:hover { text-decoration:underline;}
.rss_reader_sz_select .tabcontentcontainer {width:100%;}
.rss_reader_sz_select .tabcontent_rss {display:none;width:100%; color:#555555;}
.rss_reader_sz_select .date { color:#999999; font:.9em Tahoma; white-space:nowrap; margin-right:5px;}
.rss_reader_sz_select .sz_Box_000{ margin:1px; border:solid 0;padding:0;}
.rss_reader_sz_select .sz_Box_001{ margin:1px; border:solid 1px;border-color:#E7E7E7;background-color:#F4F4F4;color:#696969;}
.rss_reader_sz_select .sz_Box_002{ margin:1px; border:solid 1px;border-color:#DDEAA8;background-color:#FBFDF1;color:#99B81A;}
.rss_reader_sz_select .sz_Box_003{ margin:1px; border:solid 1px;border-color:#F9D5D5;background-color:#FEF6F6;color:#D98383;}
.rss_reader_sz_select .sz_Box_004{ margin:1px; border:solid 1px;border-color:#EFDAF4;background-color:#FCF7FD;color:#AF69C0;}
.rss_reader_sz_select .sz_Box_005{ margin:1px; border:solid 1px;border-color:#DCDFF6;background-color:#F6F7FE;color:#7381EA;}
.rss_reader_sz_select .sz_Box_006{ margin:1px; border:solid 1px;border-color:#DAEAEE;background-color:#F0F6F8;color:#619DAC;}
.rss_reader_sz_select .sz_Box_007{ margin:1px; border:solid 1px;border-color:#D5EDDD;background-color:#EFF9F2;color:#6FB587;}
.rss_reader_sz_select .sz_Box_008{ margin:1px; border:solid 1px;border-color:#FFEC15;background-color:#FFFCDF;color:#FF9900;}
.rss_reader_sz_select .sz_Box_009{ margin:1px; border:solid 1px;border-color:#9DD7E8;background-color:#F8FDFF;color:#0A8DBD;}
.rss_reader_sz_select .sz_Box_001 h2 a { text-decoration:none; color:#696969;}
.rss_reader_sz_select .sz_Box_002 h2 a { text-decoration:none; color:#99B81A;}
.rss_reader_sz_select .sz_Box_003 h2 a { text-decoration:none; color:#D98383;}
.rss_reader_sz_select .sz_Box_004 h2 a { text-decoration:none; color:#AF69C0;}
.rss_reader_sz_select .sz_Box_005 h2 a { text-decoration:none; color:#7381EA;}
.rss_reader_sz_select .sz_Box_006 h2 a { text-decoration:none; color:#619DAC;}
.rss_reader_sz_select .sz_Box_007 h2 a { text-decoration:none; color:#6FB587;}
.rss_reader_sz_select .sz_Box_008 h2 a { text-decoration:none; color:#FF9900;}
.rss_reader_sz_select .sz_Box_009 h2 a { text-decoration:none; color:#0A8DBD;}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

View file

@ -1,17 +0,0 @@
function tab_menu_select(tab_id, tabs, t, tab_obj){
for(var i = 1; i <= tabs; i++) {
eval("document.getElementById('tab"+tab_id+i+"')").style.display="none";
if ( t == i ) {
eval("document.getElementById('tab"+tab_id+i+"')").style.display="block";
}
}
tab_obj.className="current"
}
/* 높이 조절 */
function resize_rss_tabcontent(tab_id, ms_height) {
var obj = xGetElementById(tab_id)
if(xHeight(obj) > ms_height) obj.style.height = ms_height + 'px'
obj.style.overflow = "auto"
}

View file

@ -1,34 +0,0 @@
<!--%import("css/select.css")-->
<!--%import("js/tab.js")-->
{@ $tab_id = mt_rand()}
<div class="rss_reader_sz_select">
<div class="sz_{$colorset}">
<!--@if($widget_info->title)-->
<h2 title="{date('Y-m-d H:i:s')}"><a href="{$widget_info->rss->link}" onclick="window.open(this.href);return false">{$widget_info->title}</a></h2>
<!--@end-->
<table>
<tr><td>
<div id="tablist">
{@$i=1}
<select onchange="tab_menu_select({$tab_id}, {count($widget_info->rss_list)}, this.value, this);resize_rss_tabcontent('tab{$tab_id}',{$widget_info->rss_height})">
<!--@foreach($widget_info->rss_list as $key => $item)-->
<option value="{$i}">{htmlspecialchars($item->title)}</option>
{@$i++}
<!--@end-->
</select>
</div>
</td></tr>
</table>
{@$i=1}
<DIV id="tab{$tab_id}" class="tabcontentcontainer">
<!--@foreach($widget_info->rss_list as $key => $item)-->
<div id="tab{$tab_id.$i}" class="tabcontent_rss" style="height:{$widget_info->rss_height}px;overflow:auto;<!--@if($i==1)-->display:block;<!--@end-->">
<div class="date">{$item->date} | {$item->author} <a href="{$item->link}" onclick="window.open(this.href);return false"><img src="./images/forward.png" align="absmiddle" class="iePngFix"></a></div>
{$item->description}
</div>
{@$i++}
<!--@end-->
</DIV>
</div>
</div>

View file

@ -1,109 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">Simulz 스킨 (Select 메뉴)</title>
<title xml:lang="jp">Simulz スキン (Select メニュー)</title>
<title xml:lang="zh-CN">Simulz样式Select菜单型皮肤</title>
<title xml:lang="en">Simulz Skin (Select menu)</title>
<title xml:lang="es">Simulz Cuidado de la Piel (menú Selección)</title>
<title xml:lang="zh-TW">Simulz 下拉式選單面板</title>
<description xml:lang="ko">Simulz 스킨입니다.</description>
<description xml:lang="jp">Simulz スキンです。</description>
<description xml:lang="zh-CN">Simulz样式Select菜单型皮肤。</description>
<description xml:lang="en">This is Simulz skin.</description>
<description xml:lang="es">Esto es Simulz piel.</description>
<description xml:lang="zh-TW">Simulz 下拉式選單面板。</description>
<version>0.1</version>
<date>2007-11-05</date>
<link>http://www.zeroboard.com</link>
<author email_address="simulz@simulz.com" link="http://php.simulz.com">
<name xml:lang="ko">Simulz</name>
<name xml:lang="jp">Simulz</name>
<name xml:lang="zh-CN">Simulz</name>
<name xml:lang="en">Simulz</name>
<name xml:lang="es">Simulz</name>
<name xml:lang="zh-TW">Simulz</name>
</author>
<colorset>
<color name="Box_000">
<title xml:lang="ko">기본</title>
<title xml:lang="jp">デフォルト</title>
<title xml:lang="zh-CN">默认</title>
<title xml:lang="en">Default</title>
<title xml:lang="es">Default</title>
<title xml:lang="zh-TW">預設</title>
</color>
<color name="Box_001">
<title xml:lang="ko">회색</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">灰色</title>
<title xml:lang="en">Gray</title>
<title xml:lang="es">Gray</title>
<title xml:lang="zh-TW">灰色</title>
</color>
<color name="Box_002">
<title xml:lang="ko">연두</title>
<title xml:lang="zh-CN">淡绿</title>
<title xml:lang="en">Yellowish Green</title>
<title xml:lang="es">Verde amarillento</title>
<title xml:lang="zh-TW">淡綠</title>
</color>
<color name="Box_003">
<title xml:lang="ko">분홍</title>
<title xml:lang="jp">ピンク</title>
<title xml:lang="zh-CN">粉红</title>
<title xml:lang="en">Pink</title>
<title xml:lang="es">Pink</title>
<title xml:lang="zh-TW">粉紅</title>
</color>
<color name="Box_004">
<title xml:lang="ko">보라</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">淡青</title>
<title xml:lang="en">Purple</title>
<title xml:lang="es">Púrpura</title>
<title xml:lang="zh-TW">紫色</title>
</color>
<color name="Box_005">
<title xml:lang="ko">밝은 파랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">浅蓝</title>
<title xml:lang="en">Bright Blue</title>
<title xml:lang="es">Bright Blue</title>
<title xml:lang="zh-TW">淡藍</title>
</color>
<color name="Box_006">
<title xml:lang="ko">청록</title>
<title xml:lang="jp">青緑</title>
<title xml:lang="zh-CN">青绿</title>
<title xml:lang="en">Bluish Green</title>
<title xml:lang="es">Verde azulado</title>
<title xml:lang="zh-TW">青綠</title>
</color>
<color name="Box_007">
<title xml:lang="ko">초록</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">草绿</title>
<title xml:lang="en">Green</title>
<title xml:lang="es">Verde</title>
<title xml:lang="zh-TW">綠色</title>
</color>
<color name="Box_008">
<title xml:lang="ko">노랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">黄色</title>
<title xml:lang="en">Yellow</title>
<title xml:lang="es">Amarillo</title>
<title xml:lang="zh-TW">黃色</title>
</color>
<color name="Box_009">
<title xml:lang="ko">파랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">蓝色</title>
<title xml:lang="en">Blue</title>
<title xml:lang="es">Azul</title>
<title xml:lang="zh-TW">藍色</title>
</color>
</colorset>
</skin>

View file

@ -1,34 +0,0 @@
.rss_reader_sz_xe { position:relative;}
.rss_reader_sz_xe h2 { margin:0; padding;0; height:21px; padding:9px 0 0 0; font-size:1em;}
.rss_reader_sz_xe ul { margin:0; padding:0; height:20px; overflow:hidden; list-style:none; white-space:nowrap; }
.rss_reader_sz_xe ul li { height:20px; overflow:hidden; list-style:none; white-space:nowrap; }
.rss_reader_sz_xe ul li .title a { color:#555555; font:0.9em Tahoma; text-decoration:none; }
.rss_reader_sz_xe ul li .title a:hover { text-decoration:underline; }
.rss_reader_sz_xe ul li .date { color:#999999; font:.8em Tahoma; white-space:nowrap; margin-right:5px;}
.rss_reader_sz_xe .sz_Box_000{ margin:1px; border:solid 0;padding:0;}
.rss_reader_sz_xe .sz_Box_001{ margin:1px; border:solid 1px;border-color:#E7E7E7;padding:5px 5px 2px 5px;background-color:#F4F4F4;color:#696969;}
.rss_reader_sz_xe .sz_Box_002{ margin:1px; border:solid 1px;border-color:#DDEAA8;padding:5px 5px 2px 5px;background-color:#FBFDF1;color:#99B81A;}
.rss_reader_sz_xe .sz_Box_003{ margin:1px; border:solid 1px;border-color:#F9D5D5;padding:5px 5px 2px 5px;background-color:#FEF6F6;color:#D98383;}
.rss_reader_sz_xe .sz_Box_004{ margin:1px; border:solid 1px;border-color:#EFDAF4;padding:5px 5px 2px 5px;background-color:#FCF7FD;color:#AF69C0;}
.rss_reader_sz_xe .sz_Box_005{ margin:1px; border:solid 1px;border-color:#DCDFF6;padding:5px 5px 2px 5px;background-color:#F6F7FE;color:#7381EA;}
.rss_reader_sz_xe .sz_Box_006{ margin:1px; border:solid 1px;border-color:#DAEAEE;padding:5px 5px 2px 5px;background-color:#F0F6F8;color:#619DAC;}
.rss_reader_sz_xe .sz_Box_007{ margin:1px; border:solid 1px;border-color:#D5EDDD;padding:5px 5px 2px 5px;background-color:#EFF9F2;color:#6FB587;}
.rss_reader_sz_xe .sz_Box_008{ margin:1px; border:solid 1px;border-color:#FFEC15;padding:5px 5px 2px 5px;background-color:#FFFCDF;color:#FF9900;}
.rss_reader_sz_xe .sz_Box_009{ margin:1px; border:solid 1px;border-color:#9DD7E8;padding:5px 5px 2px 5px;background-color:#F8FDFF;color:#0A8DBD;}
.rss_reader_sz_xe .sz_Box_001 h2 a { text-decoration:none; color:#696969;}
.rss_reader_sz_xe .sz_Box_002 h2 a { text-decoration:none; color:#99B81A;}
.rss_reader_sz_xe .sz_Box_003 h2 a { text-decoration:none; color:#D98383;}
.rss_reader_sz_xe .sz_Box_004 h2 a { text-decoration:none; color:#AF69C0;}
.rss_reader_sz_xe .sz_Box_005 h2 a { text-decoration:none; color:#7381EA;}
.rss_reader_sz_xe .sz_Box_006 h2 a { text-decoration:none; color:#619DAC;}
.rss_reader_sz_xe .sz_Box_007 h2 a { text-decoration:none; color:#6FB587;}
.rss_reader_sz_xe .sz_Box_008 h2 a { text-decoration:none; color:#FF9900;}
.rss_reader_sz_xe .sz_Box_009 h2 a { text-decoration:none; color:#0A8DBD;}
.rss_reader_sz_xe h2 a:hover { text-decoration:underline;}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 B

View file

@ -1,17 +0,0 @@
<!--%import("css/default.css")-->
<div class="rss_reader_sz_xe">
<div class="sz_{$colorset}">
<!--@if($widget_info->title)-->
<h2 title="{date('Y-m-d H:i:s')}"><a href="{$widget_info->rss->link}" onclick="window.open(this.href);return false">{$widget_info->title}</a></h2>
<!--@end-->
<ul>
<!--@foreach($widget_info->rss_list as $key => $item)-->
<li title="{strip_tags($item->description)}">
<span class="date">{$item->date}</span>
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{htmlspecialchars($item->title)}</a></span>
</li>
<!--@end-->
</ul>
</div>
</div>

View file

@ -1,109 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">Simulz 스킨 (목록형)</title>
<title xml:lang="jp">Simulz スキン (リストスタイル)</title>
<title xml:lang="zh-CN">Simulz样式目录型皮肤</title>
<title xml:lang="en">Simulz Skin (List Style)</title>
<title xml:lang="es">Simulz Cuidado de la Piel (Lista Estilo)</title>
<title xml:lang="zh-TW">Simulz 面板(列表樣式)</title>
<description xml:lang="ko">Simulz 스킨입니다.</description>
<description xml:lang="jp">Simulz スキンです。</description>
<description xml:lang="zh-CN">Simulz样式目录型皮肤。</description>
<description xml:lang="en">This is Simulz skin.</description>
<description xml:lang="es">Esto es Simulz piel.</description>
<description xml:lang="zh-TW">Simulz 面板</description>
<version>0.1</version>
<date>2007-10-26</date>
<link>http://www.zeroboard.com</link>
<author email_address="simulz@simulz.com" link="http://www.simulz.com">
<name xml:lang="ko">Simulz</name>
<name xml:lang="jp">Simulz</name>
<name xml:lang="zh-CN">Simulz</name>
<name xml:lang="en">Simulz</name>
<name xml:lang="es">Simulz</name>
<name xml:lang="zh-TW">Simulz</name>
</author>
<colorset>
<color name="Box_000">
<title xml:lang="ko">기본</title>
<title xml:lang="jp">デフォルト</title>
<title xml:lang="zh-CN">默认</title>
<title xml:lang="en">Default</title>
<title xml:lang="es">Default</title>
<title xml:lang="zh-TW">預設</title>
</color>
<color name="Box_001">
<title xml:lang="ko">회색</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">灰色</title>
<title xml:lang="en">Gray</title>
<title xml:lang="es">Gray</title>
<title xml:lang="zh-TW">灰色</title>
</color>
<color name="Box_002">
<title xml:lang="ko">연두</title>
<title xml:lang="zh-CN">淡绿</title>
<title xml:lang="en">Yellowish Green</title>
<title xml:lang="es">Verde amarillento</title>
<title xml:lang="zh-TW">淡綠</title>
</color>
<color name="Box_003">
<title xml:lang="ko">분홍</title>
<title xml:lang="jp">ピンク</title>
<title xml:lang="zh-CN">粉红</title>
<title xml:lang="en">Pink</title>
<title xml:lang="es">Pink</title>
<title xml:lang="zh-TW">粉紅</title>
</color>
<color name="Box_004">
<title xml:lang="ko">보라</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">淡青</title>
<title xml:lang="en">Purple</title>
<title xml:lang="en">Púrpura</title>
<title xml:lang="zh-TW">紫色</title>
</color>
<color name="Box_005">
<title xml:lang="ko">밝은 파랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">浅蓝</title>
<title xml:lang="en">Bright Blue</title>
<title xml:lang="es">Bright Blue</title>
<title xml:lang="zh-TW">淺藍</title>
</color>
<color name="Box_006">
<title xml:lang="ko">청록</title>
<title xml:lang="jp">青緑</title>
<title xml:lang="zh-CN">青绿</title>
<title xml:lang="en">Bluish Green</title>
<title xml:lang="es">Verde azulado</title>
<title xml:lang="zh-TW">青綠</title>
</color>
<color name="Box_007">
<title xml:lang="ko">초록</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">草绿</title>
<title xml:lang="en">Green</title>
<title xml:lang="es">Verde</title>
<title xml:lang="zh-TW">綠色</title>
</color>
<color name="Box_008">
<title xml:lang="ko">노랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">黄色</title>
<title xml:lang="en">Yellow</title>
<title xml:lang="es">Amarillo</title>
<title xml:lang="zh-TW">黃色</title>
</color>
<color name="Box_009">
<title xml:lang="ko">파랑</title>
<title xml:lang="jp"></title>
<title xml:lang="zh-CN">蓝色</title>
<title xml:lang="en">Blue</title>
<title xml:lang="es">Azul</title>
<title xml:lang="zh-TW">藍色</title>
</color>
</colorset>
</skin>

View file

@ -12,7 +12,7 @@
<ul>
<!--@foreach($widget_info->rss_list as $key => $item)-->
<li>
<span class="date">{$item->date}</span>
<!--@if($item->date)--><span class="date">{$item->date}</span><!--@end-->
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{htmlspecialchars(cut_str($item->title, $widget_info->subject_cut_size))}</a></span>
</li>
<!--@end-->

View file

@ -23,7 +23,7 @@
<div id="tab{$tab_id}" class="tabcontentcontainer">
<!--@foreach($widget_info->rss_list as $key => $item)-->
<div id="tab{$tab_id.$i}" class="tabcontent_rss" style="height:{$widget_info->rss_height}px;overflow:auto;<!--@if($i==1)-->display:block;<!--@end-->">
<div class="date">{$item->date} | {$item->author} <a href="{$item->link}" onclick="window.open(this.href);return false"><img src="./images/forward.png" align="absmiddle" class="iePngFix"></a></div>
<div class="date"><!--@if($item->date)-->{$item->date} | <!--@end-->{$item->author} <a href="{$item->link}" onclick="window.open(this.href);return false"><img src="./images/forward.png" align="absmiddle" class="iePngFix"></a></div>
{$item->description}
</div>
{@$i++}