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

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

Last change on this file since 10468 was 10468, checked in by ogawa, 11 years ago

#3244:fixed i18n

File size: 2.5 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);
7if ($relation->isSelf())
8{
9  $moreInfo[] = link_to(__('Edit Photo'), 'member/configImage');
10}
11
12$options = array(
13  'name'     => $member->getName(),
14  'image'    => $member->getImageFileName(),
15  'moreInfo' => $moreInfo,
16);
17op_include_parts('memberImageBox', 'memberImageBox', $options);
18?>
19
20<?php
21$options = array(
22  'title' => __('Friends List'),
23  'list' => $member->getFriends(9),
24  'link_to' => 'member/profile?id=',
25  'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countFriends()), 'friend/list?id='.$member->getId())),
26);
27op_include_parts('nineTable', 'frendList', $options);
28?>
29
30<?php
31$options = array(
32  'title' => __('Communities List'),
33  'list' => $communities,
34  'link_to' => 'community/home?id=',
35  'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countCommunityMembers()), 'community/joinlist')),
36);
37op_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><?php echo __('Other members look your page like this.') ?></p>
45<p><?php echo __('If you teach your page to other members, please use following URL.') ?><br />
46<?php echo url_for('member/profile?id='.$member->getId(), true) ?></p>
47<p><?php echo __('If you edit this page, please visit %1%.', array('%1%' => link_to(__('Edit profile'), 'member/editProfile'))) ?></p>
48<?php $content = ob_get_clean() ?>
49<?php op_include_parts('descriptionBox', 'informationAboutThisIsYourProfilePage', array('body' => $content)) ?>
50<?php elseif (!$relation->isFriend()): ?>
51<?php ob_start() ?>
52<p><?php echo __('If %1% is your friend, let us add to friends it!', array('%1%' => $member->getName())) ?><br />
53<?php echo link_to(__('Add friends'), 'friend/link?id='.$member->getId()) ?>
54</p>
55<?php $content = ob_get_clean() ?>
56<?php op_include_parts('descriptionBox', 'informationAboutThisIsYourProfilePage', array('body' => $content)) ?>
57<?php endif; ?>
58<?php end_slot(); ?>
59
60<?php
61$list = array();
62foreach ($member->getProfiles() as $profile)
63{
64  $caption = $profile->getCaption();
65  if ($profile->getFormType() === 'textarea')
66  {
67    $profile = op_auto_link_text(nl2br($profile));
68  }
69  $list[$caption] = $profile;
70}
71$options = array(
72  'title' => __('Profile'),
73  'list' => $list,
74);
75op_include_parts('listBox', 'profile', $options);
76?>
Note: See TracBrowser for help on using the repository browser.