1 | <?php slot('op_sidemenu'); ?> |
---|
2 | <?php use_helper('Date'); ?> |
---|
3 | <?php |
---|
4 | $moreInfo = array( |
---|
5 | '('.__('最終ログイン').':'.distance_of_time_in_words($member->getLastLoginTime()).')' |
---|
6 | ); |
---|
7 | if ($relation->isSelf()) |
---|
8 | { |
---|
9 | $moreInfo[] = link_to(__('写真を編集'), 'member/configImage'); |
---|
10 | } |
---|
11 | |
---|
12 | $options = array( |
---|
13 | 'name' => $member->getName(), |
---|
14 | 'image' => $member->getImageFileName(), |
---|
15 | 'moreInfo' => $moreInfo, |
---|
16 | ); |
---|
17 | op_include_parts('memberImageBox', 'memberImageBox', $options); |
---|
18 | ?> |
---|
19 | |
---|
20 | <?php |
---|
21 | $options = array( |
---|
22 | 'title' => __('フレンドリスト'), |
---|
23 | 'list' => $member->getFriends(9), |
---|
24 | 'link_to' => 'member/profile?id=', |
---|
25 | 'moreInfo' => array(link_to(sprintf('%s(%d)', __('全てを見る'), $member->countFriends()), 'friend/list?id='.$member->getId())), |
---|
26 | ); |
---|
27 | op_include_parts('nineTable', 'frendList', $options); |
---|
28 | ?> |
---|
29 | |
---|
30 | <?php |
---|
31 | $options = array( |
---|
32 | 'title' => __('コミュニティリスト'), |
---|
33 | 'list' => $communities, |
---|
34 | 'link_to' => 'community/home?id=', |
---|
35 | 'moreInfo' => array(link_to(sprintf('%s(%d)', __('全てを見る'), $member->countCommunityMembers()), 'community/joinlist')), |
---|
36 | ); |
---|
37 | op_include_parts('nineTable', 'communityList', $options); |
---|
38 | ?> |
---|
39 | <?php end_slot(); ?> |
---|
40 | |
---|
41 | <?php slot('op_top'); ?> |
---|
42 | <?php if ($relation->isSelf()): ?> |
---|
43 | <?php ob_start() ?> |
---|
44 | <p>※他のメンバーから見たあなたのページはこのようになります。</p> |
---|
45 | <p>他のメンバーにあなたのページを教える場合は、以下のURLを使ってください。<br /> |
---|
46 | <?php echo url_for('member/profile?id='.$member->getId(), true) ?></p> |
---|
47 | <p>プロフィールを変更する場合は「<?php echo link_to(__('プロフィール変更'), 'member/editProfile') ?>」よりおこなってください。</p> |
---|
48 | <?php $content = ob_get_clean() ?> |
---|
49 | <?php op_include_parts('descriptionBox', 'informationAboutThisIsYourProfilePage', array('body' => $content)) ?> |
---|
50 | <?php endif; ?> |
---|
51 | <?php end_slot(); ?> |
---|
52 | |
---|
53 | <?php |
---|
54 | $list = array(); |
---|
55 | foreach ($member->getProfiles() as $profile) |
---|
56 | { |
---|
57 | $caption = $profile->getCaption(); |
---|
58 | if ($profile->getFormType() === 'textarea') |
---|
59 | { |
---|
60 | $profile = nl2br($profile); |
---|
61 | } |
---|
62 | $list[$caption] = $profile; |
---|
63 | } |
---|
64 | $options = array( |
---|
65 | 'title' => __('プロフィール'), |
---|
66 | 'list' => $list, |
---|
67 | ); |
---|
68 | op_include_parts('listBox', 'profile', $options); |
---|
69 | ?> |
---|