mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
XE Smartphone 애드온에서 iui를 제거하고 자체 제작한 UI 로 변경
(아직 PC 브라우저에서 최적화 되었고 iphone, 옴니아등에서의 최적화는 다시 진행할 예정입니다) cafeXE, planet, page모듈에서도 스마트폰에 어울리는 컨텐츠로 스마트폰 환경을 제공하도록 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6283 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f8e98ddb0
commit
e48e2900e4
45 changed files with 590 additions and 1150 deletions
21
modules/planet/planet.smartphone.php
Normal file
21
modules/planet/planet.smartphone.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* @class planetSmartphone
|
||||
* @author zero (skklove@gmail.com)
|
||||
* @brief planet 모듈의 SmartPhone class
|
||||
**/
|
||||
|
||||
class planetSPhone extends planet {
|
||||
|
||||
function procSmartPhone(&$oSmartPhone) {
|
||||
$prev_date = Context::get('prev_date');
|
||||
if($prev_date) $oSmartPhone->setPrevUrl(getUrl('date',$prev_date, 'document_srl',''));
|
||||
$next_date = Context::get('next_date');
|
||||
if($next_date) $oSmartPhone->setNextUrl(getUrl('date',$next_date, 'document_srl',''));
|
||||
|
||||
$oTemplate = new TemplateHandler();
|
||||
$content = $oTemplate->compile($this->module_path.'tpl', 'smartphone');
|
||||
$oSmartPhone->setContent($content);
|
||||
}
|
||||
}
|
||||
?>
|
||||
30
modules/planet/tpl/smartphone.html
Normal file
30
modules/planet/tpl/smartphone.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<ul class="smartPhoneList">
|
||||
<li class="title">{zdate($date,'Y-m-d')}, {$page_navigation->total_count} planets, {$page_navigation->cur_page}/{$page_navigation->last_page} pages</li>
|
||||
|
||||
<!--@foreach($content_list as $no => $item)-->
|
||||
<li class="item noArrow">
|
||||
<a href="{getUrl('','mid',$item->getPlanetMid(),'smartphone','true')}"><img src="{$item->getPlanetPhotoSrc(40,40)}" width="40" height="40" alt="" align="left" class="thumbnail"/></a>
|
||||
|
||||
<span class="title">
|
||||
{$item->getContent(false)}
|
||||
ps. {htmlspecialchars($item->getPostScript())}</p>
|
||||
</span>
|
||||
<span class="info">
|
||||
{$item->get('regdate')}
|
||||
[{$item->getNickName()}]
|
||||
</span>
|
||||
</li>
|
||||
<!--@end-->
|
||||
<!--@if($page_navigation->total_page>1)-->
|
||||
<!--@if($page_navigation->cur_page<$page_navigation->last_page)-->
|
||||
<li class="item">
|
||||
<a href="{getUrl('page',$page_navigation->cur_page+1)}">{$lang->cmd_prev} ({$page_navigation->cur_page+1} page)</a>
|
||||
</li>
|
||||
<!--@end-->
|
||||
<!--@if($page_navigation->cur_page>1)-->
|
||||
<li class="item">
|
||||
<a href="{getUrl('page',$page_navigation->cur_page-1)}">{$lang->cmd_next} ({$page_navigation->cur_page-1} page)</a>
|
||||
<!--@end-->
|
||||
</li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue