add member template

This commit is contained in:
chiu 2021-08-31 14:59:32 +08:00
parent 8497bbffbd
commit 16aeeb4aeb
2 changed files with 49 additions and 0 deletions

View File

@ -16,6 +16,14 @@
},
"thumbnail" : "member_index2_thumb.png"
},
{
"filename" : "member_index2_1",
"name" : {
"zh_tw" : "2-1. (內容頁樣式)單欄式 ( 類別標題, 個人照片, 個人資料等自訂欄位 )",
"en" : "2-1. (Inner Page Style)Single Column (category title, photo and customized profile data)"
},
"thumbnail" : "member_index2_thumb.png"
},
{
"filename" : "member_index3",
"name" : {

View File

@ -0,0 +1,41 @@
<div class="i-member index-member-2-1">
<div data-list="roles" data-level="0">
<div class="i-member-section">
<div data-level="1" data-list="status-list">
<h3 class="i-member-status-title">{{status-title}}</h3>
<div class="i-member-list" data-level="2" data-list="members">
<div class="i-member-item row">
<div class="i-member-item-inner clearfix">
<div class="i-member-pic-wrap col-sm-3">
<a href="{{link_to_show}}" title="{{name}}">
<img class="i-member-pic img-thumbnail" src="{{image}}" alt="{{name}}" title="{{name}}">
</a>
</div>
<div class="i-member-profile-data-wrap col-sm-9">
<table class="table table-striped" data-list="profile_data" data-level="3">
<div data-list="profile_data" data-level="0">
<tr><th class="{{title_class}}">{{title}}</th><td class="{{value_class}}">{{value}}</td></tr>
</div>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{pagination_goes_here}}
<script>
for(var i = 0;i < $('.i-member img').length ; i++){
if($('.i-member img').eq(i).attr('alt')=="" ){
$('.i-member img').eq(i).attr('alt','noname');
$('.i-member img').eq(i).attr('title','noname');
$('.i-member img').eq(i).parent().attr('title','noname');
}
}
for(var i = 0;i < $('.i-member span a').length ; i++){
if($('.i-member span a').eq(i).html().trim().replace('&nbsp;','') == "")
$('.i-member span a').eq(i).html('noname');
}
</script>