ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/trunk/apps/pc_frontend/modules/member/templates/profileSuccess.php @ 11013

Last change on this file since 11013 was 11013, checked in by ShogoKawahara, 13 years ago

fixed Profile page doesn't shuffle friend and community list

File size: 2.6 KB
Line 
1<?php slot('op_sidemenu'); ?>
2<?php use_helper('Date'); ?>
3<?php
4$moreInfo = array(
5  '('.__('Last Login').':'.distance_of_time_in_words($member->getLastLoginTime()).')'
6);
7
8
9if ($relation->isSelf())
10{
11  $moreInfo[] = link_to(__('Edit Photo'), 'member/configImage');
12}
13else if ($member->getImageFileName())
14{
15    $moreInfo[] = link_to(__("Show more Photos"), 'friend/showImage?id='.$member->getId());
16}
17
18$options = array(
19  'object'   => $member,
20  'moreInfo' => $moreInfo,
21);
22op_include_parts('memberImageBox', 'memberImageBox', $options);
23?>
24
25<?php
26$options = array(
27  'title' => __('Friends List'),
28  'list' => $friends,
29  'link_to' => 'member/profile?id=',
30  'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countFriends()), 'friend/list?id='.$member->getId())),
31);
32op_include_parts('nineTable', 'frendList', $options);
33?>
34
35<?php
36$options = array(
37  'title' => __('Communities List'),
38  'list' => $communities,
39  'crownIds' => $sf_data->getRaw('crownIds'),
40  'link_to' => 'community/home?id=',
41  'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countCommunityMembers()), 'community/joinlist?id='.$member->getId())),
42);
43op_include_parts('nineTable', 'communityList', $options);
44?>
45<?php end_slot(); ?>
46
47<?php slot('op_top'); ?>
48<?php if ($relation->isSelf()): ?>
49<?php ob_start() ?>
50<p><?php echo __('Other members look your page like this.') ?></p>
51<p><?php echo __('If you teach your page to other members, please use following URL.') ?><br />
52<?php echo url_for('member/profile?id='.$member->getId(), true) ?></p>
53<p><?php echo __('If you edit this page, please visit %1%.', array('%1%' => link_to(__('Edit profile'), 'member/editProfile'))) ?></p>
54<?php $content = ob_get_clean() ?>
55<?php op_include_parts('descriptionBox', 'informationAboutThisIsYourProfilePage', array('body' => $content)) ?>
56<?php elseif (!$relation->isFriend()): ?>
57<?php ob_start() ?>
58<p><?php echo __('If %1% is your friend, let us add to friends it!', array('%1%' => $member->getName())) ?><br />
59<?php echo link_to(__('Add friends'), 'friend/link?id='.$member->getId()) ?>
60</p>
61<?php $content = ob_get_clean() ?>
62<?php op_include_parts('descriptionBox', 'informationAboutThisIsYourProfilePage', array('body' => $content)) ?>
63<?php endif; ?>
64<?php end_slot(); ?>
65
66<?php
67$list = array();
68foreach ($member->getProfiles(true) as $profile)
69{
70  $caption = $profile->getCaption();
71  if ($profile->getFormType() === 'textarea')
72  {
73    $profile = op_auto_link_text(nl2br($profile));
74  }
75  $list[$caption] = $profile;
76}
77$options = array(
78  'title' => __('Profile'),
79  'list' => $list,
80);
81op_include_parts('listBox', 'profile', $options);
82?>
Note: See TracBrowser for help on using the repository browser.