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

source: OpenPNE3/trunk/apps/mobile_frontend/modules/member/templates/profileSuccess.php @ 11012

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

#3726:fixed community/homeSuccess template and fixed some link misses on the mobile_frontend

File size: 2.8 KB
Line 
1<?php op_mobile_page_title($member->getName()) ?>
2
3<?php if ($member == $sf_user->getMember()) : ?>
4<font color="#ff0000">
5<?php echo __('This is your page other member see.') ?><br>
6<?php echo __('If you edit profile, access %1%.', array('%1%' => link_to('「'. __('Edit profile') .'」', 'member/editProfile'))) ?>
7</font>
8<?php endif; ?>
9
10<table width="100%" bgcolor="#EEEEFF">
11<tr><td colspan="2" align="center">
12<?php include_customizes('menu', 'top') ?>
13<hr color="#0D6DDF" size="3">
14</td></tr>
15
16<tr><td align="center" width="50%" valign="top">
17<?php echo image_tag_sf_image($member->getImageFileName(), array('size' => '120x120', 'format' => 'jpg')) ?>
18<?php if ($relation->isSelf()) : ?>
19<?php //TODO: Add ability to edit image on mobile_frontend ?>
20<?php elseif ($member->getImageFileName()) : ?>
21<br><?php echo link_to(__('Show Photo'), 'friend/showImage?id='.$member->getId()) ?>
22<?php endif; ?>
23</td>
24<td valign="top">
25<?php foreach ($member->getProfiles(true) as $profile) : ?>
26<font color="#999966"><?php echo $profile->getCaption() ?>:</font><br>
27<?php echo $profile ?><br>
28<?php endforeach; ?>
29</td>
30</tr>
31
32<tr><td colspan="2" align="center">
33<hr color="#0d6ddf" size="3">
34</td></tr>
35
36<tr><td colspan="2">
37
38<?php if (!$relation->isFriend() && !$relation->isSelf()) : ?>
39<?php echo link_to(__('Makes friends'), 'friend/link?id='.$member->getId()) ?><br>
40<?php endif; ?>
41
42<?php include_component('default', 'nav', array('type' => 'mobile_community', 'id' => $member->getId())) ?>
43
44<?php include_customizes('menu', 'bottom') ?>
45</td></tr>
46</table>
47
48<br>
49
50<?php
51$list = array();
52foreach ($member->getFriends(5) as $friendMember)
53{
54  $list[] = link_to(sprintf('%s(%d)', $friendMember->getName(), $friendMember->countFriends()), 'member/profile?id='.$friendMember->getId());
55}
56$option = array(
57  'title' => __('Friend list'),
58  'border' => true,
59  'moreInfo' => array(
60    link_to(__('More'), 'friend/list?id='.$member->getId())
61  ),
62);
63op_include_list('friendList', $list, $option);
64?>
65
66<?php
67$list = array();
68foreach ($communities as $community)
69{
70  $list[] = link_to($community->getName(), 'community/home?id='.$community->getId());
71}
72$option = array(
73  'title' => __('Community list with this member'),
74  'border' => true,
75  'moreInfo' => array(
76    link_to(__('More'), 'community/joinlist?id='.$member->getId())
77  ),
78);
79op_include_list('communityList', $list, $option);
80?>
81
82<?php slot('op_mobile_footer') ?>
83<table width="100%">
84<tbody><tr><td align="center" bgcolor="#0d6ddf">
85<font color="#eeeeee"><a href="<?php echo url_for('member/home') ?>" accesskey="0"><font color="#eeeeee">0. <?php echo __('home') ?></font></a> / <a href="#top"><font color="#eeeeee"><?php echo __('top') ?></font></a> / <a href="#bottom" accesskey="8"><font color="#eeeeee">8. <?php echo __('bottom') ?></font></a></font><br>
86</td></tr></tbody></table>
87<?php end_slot(); ?>
Note: See TracBrowser for help on using the repository browser.