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

Changeset 12787


Ignore:
Timestamp:
Aug 31, 2009, 4:48:33 PM (13 years ago)
Author:
ebihara
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/default/templates/_memberImageBox.php

    r12358 r12787  
    11<?php
    2 $photoLink = '';
     2$moreInfo = array();
    33if ($member->getId() === $id)
    44{
    5   $photoLink = link_to(__('Edit Photo'), 'member/configImage');
     5  $moreInfo[] = link_to(__('Edit Photo'), 'member/configImage');
     6  $moreInfo[] = link_to(__('Show Profile'), 'member/profile');
    67}
    78elseif ($member->getImageFileName())
    89{
    9   $photoLink = link_to(__('Show more Photos'), 'friend/showImage?id='.$member->getId());
     10  $moreInfo[] = link_to(__('Show more Photos'), 'friend/showImage?id='.$member->getId());
    1011}
     12
    1113$options = array(
    1214  'object'   => $member,
    13   'moreInfo' => array(
    14     $photoLink,
    15     link_to(__('Show Profile'), 'member/profile'),
    16   ),
     15  'moreInfo' => $moreInfo,
    1716);
    1817op_include_parts('memberImageBox', 'memberImageBox_'.$gadget->getId(), $options);
Note: See TracChangeset for help on using the changeset viewer.