mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
모바일에서 Member Menu를 지원합니다.
Member Menu가 있기 때문에 PC 버전의 회원 모듈은 많은 일을 코어 수정 없이 해낼 수 있습니다. 이를 모바일에서 가능하게 하는 커밋입니다.
This commit is contained in:
parent
ecce7e5efd
commit
9117c7bb96
8 changed files with 163 additions and 34 deletions
1
modules/member/m.skins/default/common_footer.html
Normal file
1
modules/member/m.skins/default/common_footer.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
</section>
|
||||
9
modules/member/m.skins/default/common_header.html
Normal file
9
modules/member/m.skins/default/common_header.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<load target="css/member.css" />
|
||||
<section class="xm">
|
||||
<div class="mtab" cond="$is_logged && $logged_info->menu_list && (!$member_srl || $member_srl == $logged_info->member_srl)">
|
||||
<ul class="mtab">
|
||||
<li loop="$logged_info->menu_list=>$key,$val" class="active"|cond="$key==$act">
|
||||
<a href="{getUrl('', 'act',$key, 'mid', $mid, 'vid', $vid)}"><span>{Context::getLang($val)}</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -31,4 +31,63 @@
|
|||
.xm .ba li:first-child{border:0}
|
||||
.xm .ba li>a,
|
||||
.xm .ba li>button,
|
||||
.xm .ba li>input{display:block;white-space:nowrap;padding:7px 10px;text-decoration:none;color:#000;background:#f4f4f4;text-shadow:0 1px 0 #fff;overflow:hidden;text-overflow:ellipsis}
|
||||
.xm .ba li>input{display:block;white-space:nowrap;padding:7px 10px;text-decoration:none;color:#000;background:#f4f4f4;text-shadow:0 1px 0 #fff;overflow:hidden;text-overflow:ellipsis}
|
||||
/* List */
|
||||
.lt{margin:0;padding:0;list-style:none;background:#f8f8f8;font-size:14px}
|
||||
.lt li{border-bottom:1px solid #ccc8be;overflow:hidden}
|
||||
.lt a{box-sizing: border-box;width:100%;display:inline-block;float:left;text-decoration:none;color:#000;padding:10px}
|
||||
.lt .memberInfo{float:right;}
|
||||
.lt .notice{display:inline-block;background:#a06acd;font-weight:bold;color:#fff;font-size:12px;padding:1px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px}
|
||||
.lt .title{display:block;margin:0 0 5px 0}
|
||||
.lt .title strong{font-size:14px;font-weight:bold}
|
||||
.lt .title em{font-size:12px;color:#333;color:#6352d2}
|
||||
.lt .auth{display:block;font-size:12px}
|
||||
.lt .auth .time{padding:0 5px;border-left:1px solid #bfbfbf}
|
||||
/* Pagination */
|
||||
.pn{font-size:12px;text-align:center;background:#f2f0ec;padding:15px 0;border-top:1px solid #fff}
|
||||
.pn a{color:#333;text-decoration:none}
|
||||
.pn strong{margin:0 10px}
|
||||
.pn .prev:before{content:"";display:inline-block;width:0;height:0;margin:0 4px 0 0;border:4px solid;border-color:transparent;border-right-color:#999}
|
||||
.pn .next:after{content:"";display:inline-block;width:0;height:0;margin:0 0 0 4px;border:4px solid;border-color:transparent;border-left-color:#999}
|
||||
/* MemberMenu */
|
||||
.xm div.mtab{
|
||||
overflow: hidden;
|
||||
width:100%;
|
||||
height: 52px;
|
||||
white-space: nowrap;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.xm ul.mtab{
|
||||
display: block;
|
||||
list-style: outside none none;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 6px 0px 100px;
|
||||
text-decoration: none;
|
||||
margin: 0;
|
||||
}
|
||||
.xm ul.mtab>li {
|
||||
display:inline-block;
|
||||
height: 40px;
|
||||
line-height: 18px;
|
||||
position: relative;
|
||||
}
|
||||
.xm ul.mtab>li a {
|
||||
display:inline-block;
|
||||
color: #000;
|
||||
font-weight: 400;
|
||||
letter-spacing: -1px;
|
||||
line-height: 40px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.xm ul.mtab>li a:hover, .xm ul.mtab>li.active a {
|
||||
font-weight: 700;
|
||||
}
|
||||
.xm ul.mtab>li a span {
|
||||
border-left: 1px solid #e0e0e0;
|
||||
padding: 0 15px;
|
||||
}
|
||||
.xm ul.mtab>li:first-child a span {
|
||||
border-left: 0 none;
|
||||
}
|
||||
18
modules/member/m.skins/default/document_list.html
Normal file
18
modules/member/m.skins/default/document_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<include target="./common_header.html" />
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$member_title = $lang->cmd_view_own_document}</h2>
|
||||
<ul class="lt">
|
||||
<li loop="$document_list => $no,$oDocument">
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false;">
|
||||
{$oDocument->getTitleText()}
|
||||
<span class="memberInfo">{$oDocument->getRegdate("Y-m-d")}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pn">
|
||||
<a cond="$page != 1" href="{getUrl('page',$page-1,'module_srl','','document_srl','')}" class="prev">{$lang->cmd_prev}</a>
|
||||
<strong>{$page} / {$page_navigation->last_page}</strong>
|
||||
<a cond="$page != $page_navigation->last_page" href="{getUrl('page',$page+1,'module_srl','','document_srl','')}" class="next">{$lang->cmd_next}</a>
|
||||
</div>
|
||||
</div>
|
||||
<include target="./common_footer.html" />
|
||||
|
|
@ -1,35 +1,36 @@
|
|||
<load target="css/member.css" />
|
||||
<include target="./common_header.html" />
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$lang->member_info}</h2>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/skins/default/modify_info/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<div class="table even">
|
||||
<table class="table table-striped table-hover">
|
||||
<tr loop="$displayDatas => $item">
|
||||
<th scope="row" >{$item->title} <em cond="$item->required || $item->mustRequired">*</em></th>
|
||||
<td class="text">{$item->value}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{$lang->member_group}</th>
|
||||
<td class="text">{implode(', ', $memberInfo['group_list'])}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->signup_date}</th>
|
||||
<td>{zdate($memberInfo[regdate],"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@if($memberInfo[member_srl] == $logged_info->member_srl || $logged_info->is_admin == 'Y' )-->
|
||||
<tr>
|
||||
<th>{$lang->last_login}</th>
|
||||
<td>{zdate($memberInfo[last_login],"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
</div>
|
||||
<div class="ba" cond="$memberInfo['member_srl'] == $logged_info->member_srl">
|
||||
<li><a class="bn" cond="$member_config->identifier == 'email_address'" href="{getUrl('act', 'dispMemberModifyEmailAddress')}">{$lang->cmd_modify_member_email_address}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberModifyInfo','member_srl','')}">{$lang->cmd_modify_member_info}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberModifyPassword','member_srl','')}">{$lang->cmd_modify_member_password}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberLeave','member_srl','')}">{$lang->cmd_leave}...</a></li>
|
||||
</div>
|
||||
<h2 class="hx h2">{$lang->member_info}</h2>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/member/skins/default/modify_info/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<div class="table even">
|
||||
<table class="table table-striped table-hover">
|
||||
<tr loop="$displayDatas => $item">
|
||||
<th scope="row" >{$item->title} <em cond="$item->required || $item->mustRequired">*</em></th>
|
||||
<td class="text">{$item->value}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{$lang->member_group}</th>
|
||||
<td class="text">{implode(', ', $memberInfo['group_list'])}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->signup_date}</th>
|
||||
<td>{zdate($memberInfo[regdate],"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@if($memberInfo[member_srl] == $logged_info->member_srl || $logged_info->is_admin == 'Y' )-->
|
||||
<tr>
|
||||
<th>{$lang->last_login}</th>
|
||||
<td>{zdate($memberInfo[last_login],"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
</div>
|
||||
<div class="ba" cond="$memberInfo['member_srl'] == $logged_info->member_srl">
|
||||
<li><a class="bn" cond="$member_config->identifier == 'email_address'" href="{getUrl('act', 'dispMemberModifyEmailAddress')}">{$lang->cmd_modify_member_email_address}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberModifyInfo','member_srl','')}">{$lang->cmd_modify_member_info}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberModifyPassword','member_srl','')}">{$lang->cmd_modify_member_password}...</a></li>
|
||||
<li><a class="bn" href="{getUrl('act','dispMemberLeave','member_srl','')}">{$lang->cmd_leave}...</a></li>
|
||||
</div>
|
||||
</div>
|
||||
<include target="./common_footer.html" />
|
||||
18
modules/member/m.skins/default/saved_list.html
Normal file
18
modules/member/m.skins/default/saved_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<include target="./common_header.html" />
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$member_title = $lang->cmd_view_saved_document}</h2>
|
||||
<ul class="lt">
|
||||
<li loop="$document_list=>$no,$val">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}" onclick="window.open(this.href);return false;">
|
||||
{$val->getTitle()}
|
||||
<span class="memberInfo">{$val->getRegdate("Y-m-d")}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pn">
|
||||
<a cond="$page != 1" href="{getUrl('page',$page-1,'module_srl','','document_srl','')}" class="prev">{$lang->cmd_prev}</a>
|
||||
<strong>{$page} / {$page_navigation->last_page}</strong>
|
||||
<a cond="$page != $page_navigation->last_page" href="{getUrl('page',$page+1,'module_srl','','document_srl','')}" class="next">{$lang->cmd_next}</a>
|
||||
</div>
|
||||
</div>
|
||||
<include target="./common_footer.html" />
|
||||
18
modules/member/m.skins/default/scrapped_list.html
Normal file
18
modules/member/m.skins/default/scrapped_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<include target="./common_header.html" />
|
||||
<div class="xm">
|
||||
<h2 class="hx h2">{$member_title = $lang->cmd_view_scrapped_document}</h2>
|
||||
<ul class="lt">
|
||||
<li loop="$document_list=>$no,$val">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}" onclick="window.open(this.href);return false;">
|
||||
{htmlspecialchars($val->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}
|
||||
<span class="memberInfo">{$val->nick_name} ({zdate($val->regdate,"Y-m-d")})</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="pn">
|
||||
<a cond="$page != 1" href="{getUrl('page',$page-1,'module_srl','','document_srl','')}" class="prev">{$lang->cmd_prev}</a>
|
||||
<strong>{$page} / {$page_navigation->last_page}</strong>
|
||||
<a cond="$page != $page_navigation->last_page" href="{getUrl('page',$page+1,'module_srl','','document_srl','')}" class="next">{$lang->cmd_next}</a>
|
||||
</div>
|
||||
</div>
|
||||
<include target="./common_footer.html" />
|
||||
|
|
@ -67,6 +67,11 @@ class memberMobile extends memberView
|
|||
Context::set('oMemberInfo', get_object_vars($this->member_info));
|
||||
}
|
||||
}
|
||||
|
||||
function dispMemberScrappedDocument()
|
||||
{
|
||||
parent::dispMemberScrappedDocument();
|
||||
}
|
||||
}
|
||||
/* End of file member.mobile.php */
|
||||
/* Location: ./modules/member/member.mobile.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue