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

Changeset 10514


Ignore:
Timestamp:
Jan 27, 2009, 5:07:29 PM (11 years ago)
Author:
nagasawa
Message:

#3493:fixed The inside of templates is changed so that a text may be acquired by getRaws

Location:
OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/accessSuccess.php

    r9957 r10514  
    55  $member = $member_list['model'][$i];
    66  $list[$i][sprintf(__('No%s'), $member_list['rank'][$i])] = $member->getName() . sprintf(__(' :%saccess'), $member_list['count'][$i]);
    7   $list[$i][$member->getProfile('self_intro')->getCaption()] = nl2br($member->getProfile('self_intro'));
     7  if ($member->getProfile('self_intro'))
     8  {
     9    $list[$i][$member->getProfile('self_intro')->getCaption()] = nl2br($member->getProfile('self_intro'));
     10  }
    811}
    912
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/modules/ranking/templates/friendSuccess.php

    r9957 r10514  
    55  $member = $member_list['model'][$i];
    66  $list[$i][sprintf(__('No%s'), $member_list['rank'][$i])] = $member->getName() . sprintf(__(' :%smember'), $member_list['count'][$i]);
    7   $list[$i][$member->getProfile('self_intro')->getCaption()] = nl2br($member->getProfile('self_intro'));
     7  if ($member->getProfile('self_intro'))
     8  {
     9    $list[$i][$member->getProfile('self_intro')->getCaption()] = nl2br($member->getProfile('self_intro'));
     10  }
    811}
    912
  • OpenPNE3/plugins/opRankingPlugin/trunk/apps/pc_frontend/templates/_partsRankingResultList.php

    r10319 r10514  
     1<?php $list = $options->getRaw('list') ?>
    12<?php foreach ($options['model'] as $key => $model): ?>
    23
     
    1617
    1718<tr>
    18 <td rowspan="<?php echo count($options['list'][$key]) + 1 ?>" class="photo">
     19<td rowspan="<?php echo count($list[$key]) + 1 ?>" class="photo">
    1920<?php echo link_to(image_tag_sf_image($model->getImageFilename(), array('size' => '76x76')), sprintf($options['link_to_detail'], $model->getId())); ?>
    2021</td>
    2122</tr>
    2223
    23 <?php foreach ($options['list'][$key] as $caption => $item) : ?>
     24<?php foreach ($list[$key] as $caption => $item) : ?>
    2425<tr>
    2526<th><?php echo $caption ?></th>
Note: See TracChangeset for help on using the changeset viewer.