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

source: OpenPNE3/trunk/apps/pc_frontend/modules/default/templates/_memberImageBox.php

Last change on this file was 12787, checked in by ebihara, 13 years ago

#4157:fixed the memberImageBox gadget that displays "Show Profile" link even if a viewer isn't himself

File size: 476 bytes
Line 
1<?php
2$moreInfo = array();
3if ($member->getId() === $id)
4{
5  $moreInfo[] = link_to(__('Edit Photo'), 'member/configImage');
6  $moreInfo[] = link_to(__('Show Profile'), 'member/profile');
7}
8elseif ($member->getImageFileName())
9{
10  $moreInfo[] = link_to(__('Show more Photos'), 'friend/showImage?id='.$member->getId());
11}
12
13$options = array(
14  'object'   => $member,
15  'moreInfo' => $moreInfo,
16);
17op_include_parts('memberImageBox', 'memberImageBox_'.$gadget->getId(), $options);
Note: See TracBrowser for help on using the repository browser.