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

Changeset 10609


Ignore:
Timestamp:
Feb 3, 2009, 5:28:05 PM (11 years ago)
Author:
ebihara
Message:

#3546:fixed links of the join community list gadget is not a valid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsNineTable.php

    r10349 r10609  
    1 <?php if (count($options['list'])): ?>
     1<?php if (count($options->list)): ?>
    22
    33<?php
     
    88
    99<table>
    10 <?php $row = ceil(count($options['list']) / $options['row']) ?>
     10<?php $row = ceil(count($options->list) / $options->row) ?>
    1111<?php for ($i = $j = 1; $row >= $i; $i++): ?>
    12 <?php if ($options['type'] === 'full' || $options['type'] === 'only_image'): ?>
     12<?php if ($options->type === 'full' || $options->type === 'only_image'): ?>
    1313<tr class="photo">
    14 <?php for ($j = ($i * $options['col']) - $options['col']; ($i * $options['col']) > $j; $j++): ?>
    15 <td><?php if (!empty($options['list'][$j])): ?>
    16 <?php echo link_to(image_tag_sf_image($options['list'][$j]->getImageFileName(), array('size' => '76x76')), $options['link_to'].$options['list'][$j]->getId()) ?>
     14<?php for ($j = ($i * $options->col) - $options->col; ($i * $options->col) > $j; $j++): ?>
     15<td><?php if (!empty($options->list[$j])): ?>
     16<?php echo link_to(image_tag_sf_image($options->list[$j]->getImageFileName(), array('size' => '76x76')), $options->link_to.$options->list[$j]->getId()) ?>
    1717<?php endif; ?></td>
    1818<?php endfor; ?>
    1919</tr>
    2020<?php endif; ?>
    21 <?php if ($options['type'] === 'full' || $options['type'] === 'only_name'): ?>
     21<?php if ($options->type === 'full' || $options->type === 'only_name'): ?>
    2222<tr class="text">
    23 <?php for ($j = ($i * $options['col']) - $options['col']; ($i * $options['col']) > $j; $j++): ?>
    24 <td><?php if (!empty($options['list'][$j])): ?>
    25 <?php echo link_to($options['list'][$j]->getName(), 'member/profile?id='.$options['list'][$j]->getId()) ?>
     23<?php for ($j = ($i * $options->col) - $options->col; ($i * $options->col) > $j; $j++): ?>
     24<td><?php if (!empty($options->list[$j])): ?>
     25<?php echo link_to($options->list[$j]->getName(), $options->link_to.$options->list[$j]->getId()) ?>
    2626<?php endif; ?></td>
    2727<?php endfor; ?>
Note: See TracChangeset for help on using the changeset viewer.