mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
모바일 전용 콘텐트 위젯인 mcontent 위젯 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7613 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
54e75da57f
commit
9fca3e4929
8 changed files with 1431 additions and 0 deletions
11
widgets/mcontent/skins/default/content.html
Normal file
11
widgets/mcontent/skins/default/content.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!--%import("mcontent.css")-->
|
||||
<!--%unload("../../../../common/css/default.css")-->
|
||||
<!--%unload("../../../../common/css/button.css")-->
|
||||
|
||||
<!--@if($widget_info->list_type == "image_title")-->
|
||||
<!--#include("./image_title.html")-->
|
||||
<!--@elseif($widget_info->list_type == "image_title_content")-->
|
||||
<!--#include("./image_title_content.html")-->
|
||||
<!--@else-->
|
||||
<!--#include("./normal.html")-->
|
||||
<!--@end-->
|
||||
52
widgets/mcontent/skins/default/image_title.html
Normal file
52
widgets/mcontent/skins/default/image_title.html
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<div class="mcw">
|
||||
<!--@if($widget_info->modules_info && count($widget_info->modules_info)==1)-->
|
||||
{@$__module_info=$widget_info->modules_info;}
|
||||
{@$__module_info=array_pop($__module_info);}
|
||||
<h2>{$__module_info->browser_title}</h2>
|
||||
<!--@end-->
|
||||
|
||||
<ul>
|
||||
<!--@foreach($widget_info->content_items as $key => $item)-->
|
||||
<li>
|
||||
<a href="{$item->getLink()}">
|
||||
<!--@if($item->getThumbnail())-->
|
||||
<img src="{$item->getThumbnail()}" alt="" class="th" />
|
||||
<!--@else-->
|
||||
<span class="th">No Image</span>
|
||||
<!--@end-->
|
||||
|
||||
<!--@for($j=0,$c=count($widget_info->option_view_arr);$j<$c;$j++)-->
|
||||
<!--@if($widget_info->option_view_arr[$j]=='title')-->
|
||||
<span class="title">
|
||||
<!--@if(!$__module_info && $widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
{$item->getBrowserTitle()} ›
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
{$item->getCategory()} ›
|
||||
<!--@end-->
|
||||
|
||||
<strong>{$item->getTitle($widget_info->subject_cut_size)}</strong>
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<em title="Replies">[{$item->getCommentCount()}]</em>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<em title="Trackbacks">[{$item->getTrackbackCount()}]</em>
|
||||
<!--@end-->
|
||||
</span>
|
||||
|
||||
<!--@else if($widget_info->option_view_arr[$j]=='nickname')-->
|
||||
<span class="auth">
|
||||
<strong>{$item->getNickName()}</strong>
|
||||
{$item->getRegdate("Y-m-d")}
|
||||
{$item->getRegdate("H:i")}
|
||||
</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</a>
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
55
widgets/mcontent/skins/default/image_title_content.html
Normal file
55
widgets/mcontent/skins/default/image_title_content.html
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<div class="mcw">
|
||||
<!--@if($widget_info->modules_info && count($widget_info->modules_info)==1)-->
|
||||
{@$__module_info=$widget_info->modules_info;}
|
||||
{@$__module_info=array_pop($__module_info);}
|
||||
<h2>{$__module_info->browser_title}</h2>
|
||||
<!--@end-->
|
||||
|
||||
<ul>
|
||||
<!--@foreach($widget_info->content_items as $key => $item)-->
|
||||
<li>
|
||||
<a href="{$item->getLink()}">
|
||||
<!--@if($item->getThumbnail())-->
|
||||
<img src="{$item->getThumbnail()}" alt="" class="th" />
|
||||
<!--@else-->
|
||||
<span class="th">No Image</span>
|
||||
<!--@end-->
|
||||
|
||||
<!--@for($j=0,$c=count($widget_info->option_view_arr);$j<$c;$j++)-->
|
||||
<!--@if($widget_info->option_view_arr[$j]=='title')-->
|
||||
<span class="title">
|
||||
<!--@if(!$__module_info && $widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
{$item->getBrowserTitle()} ›
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
{$item->getCategory()} ›
|
||||
<!--@end-->
|
||||
|
||||
<strong>{$item->getTitle($widget_info->subject_cut_size)}</strong>
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<em title="Replies">[{$item->getCommentCount()}]</em>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<em title="Trackbacks">[{$item->getTrackbackCount()}]</em>
|
||||
<!--@end-->
|
||||
</span>
|
||||
|
||||
<!--@else if($widget_info->option_view_arr[$j]=='nickname')-->
|
||||
<span class="auth">
|
||||
<strong>{$item->getNickName()}</strong>
|
||||
{$item->getRegdate("Y-m-d")}
|
||||
{$item->getRegdate("H:i")}
|
||||
</span>
|
||||
|
||||
<!--@else if($widget_info->option_view_arr[$j]=='content')-->
|
||||
<span class="text">{$item->getContent()}</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</a>
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
14
widgets/mcontent/skins/default/mcontent.css
Normal file
14
widgets/mcontent/skins/default/mcontent.css
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@charset "utf-8";
|
||||
/* Mobile Content Widget */
|
||||
.mcw h2{position:relative;margin:-1px 0; padding:10px;background:#ddd;border:1px solid #999;border-left:0;border-right:0;text-shadow:1px 1px #fff;font-size:20px}
|
||||
.mcw ul{margin:0;padding:0;list-style:none}
|
||||
.mcw li{border-bottom:1px solid #999}
|
||||
.mcw li:last-child{border:0}
|
||||
.mcw ul a{display:block;text-decoration:none;padding:10px;color:#000;*zoom:1}
|
||||
.mcw ul a:after{content:"";display:block;clear:both}
|
||||
.mcw ul a:visited{color:#666}
|
||||
.mcw .th{float:left;margin:0 10px 5px 0;border:1px solid #fff;background:#eee;color:#666;text-align:center;line-height:80px;width:80px;height:80px;font-size:14px;box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;-webkit-box-shadow:0 0 3px #333}
|
||||
.mcw .title{display:block;margin:0 0 8px 0}
|
||||
.mcw .title em{color:#f60;font-size:12px}
|
||||
.mcw .auth{font-size:12px;color:#666}
|
||||
.mcw .text{color:#666}
|
||||
46
widgets/mcontent/skins/default/normal.html
Normal file
46
widgets/mcontent/skins/default/normal.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<div class="mcw">
|
||||
<!--@if($widget_info->modules_info && count($widget_info->modules_info)==1)-->
|
||||
{@$__module_info=$widget_info->modules_info;}
|
||||
{@$__module_info=array_pop($__module_info);}
|
||||
<h2>{$__module_info->browser_title}</h2>
|
||||
<!--@end-->
|
||||
|
||||
<ul>
|
||||
<!--@foreach($widget_info->content_items as $key => $item)-->
|
||||
<li>
|
||||
<a href="{$item->getLink()}">
|
||||
<!--@for($j=0,$c=count($widget_info->option_view_arr);$j<$c;$j++)-->
|
||||
<!--@if($widget_info->option_view_arr[$j]=='title')-->
|
||||
<span class="title">
|
||||
<!--@if(!$__module_info && $widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
|
||||
{$item->getBrowserTitle()} ›
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_category=='Y' && $item->getCategory())-->
|
||||
{$item->getCategory()} ›
|
||||
<!--@end-->
|
||||
|
||||
<strong>{$item->getTitle($widget_info->subject_cut_size)}</strong>
|
||||
|
||||
<!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
|
||||
<em title="Replies">[{$item->getCommentCount()}]</em>
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
|
||||
<em title="Trackbacks">[{$item->getTrackbackCount()}]</em>
|
||||
<!--@end-->
|
||||
</span>
|
||||
|
||||
<!--@else if($widget_info->option_view_arr[$j]=='nickname')-->
|
||||
<span class="auth">
|
||||
<strong>{$item->getNickName()}</strong>
|
||||
{$item->getRegdate("Y-m-d")}
|
||||
{$item->getRegdate("H:i")}
|
||||
</span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</a>
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
15
widgets/mcontent/skins/default/skin.xml
Normal file
15
widgets/mcontent/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<skin version="0.2">
|
||||
<title xml:lang="ko">모바일 콘텐츠 위젯 스킨</title>
|
||||
<description xml:lang="ko">모바일 콘텐츠 전용 심플한 스킨 입니다.</description>
|
||||
<version>0.1</version>
|
||||
<date>2009-08-20</date>
|
||||
<author email_address="dece24@gmail.com" link="http://naradesign.net/">
|
||||
<name xml:lang="ko">Jeong, Chan Myeong</name>
|
||||
</author>
|
||||
<colorset>
|
||||
<color name="white">
|
||||
<title xml:lang="ko">흰색 바탕용</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
Loading…
Add table
Add a link
Reference in a new issue