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

Changeset 10100


Ignore:
Timestamp:
Jan 11, 2009, 9:05:12 PM (14 years ago)
Author:
ogawa
Message:

#3417:added the camera icon to diaries which have images in list views

Location:
OpenPNE3/plugins/opDiaryPlugin/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_diaryList.php

    r10073 r10100  
    77<ul>
    88<?php foreach ($diaryList as $diary): ?>
    9 <li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?></li>
     9<li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1010<?php endforeach; ?>
    1111</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_friendDiaryList.php

    r9878 r10100  
    77<ul>
    88<?php foreach ($diaryList as $diary): ?>
    9 <li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)</li>
     9<li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1010<?php endforeach; ?>
    1111</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_memberDiaryList.php

    r9878 r10100  
    77<ul>
    88<?php foreach ($diaryList as $diary): ?>
    9 <li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?></li>
     9<li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1010<?php endforeach; ?>
    1111</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_myDiaryList.php

    r10077 r10100  
    77<ul>
    88<?php foreach ($diaryList as $diary): ?>
    9 <li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?></li>
     9<li><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?> <?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1010<?php endforeach; ?>
    1111</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listFriendSuccess.php

    r9878 r10100  
    88<dl>
    99<dt><?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
    10 <dd><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)</dd>
     10<dd><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></dd>
    1111</dl>
    1212<?php endforeach; ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listMemberSuccess.php

    r9878 r10100  
    1111<dl>
    1212<dt><?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
    13 <dd><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?></dd>
     13<dd><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></dd>
    1414</dl>
    1515<?php endforeach; ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listSuccess.php

    r9878 r10100  
    1111<th><?php echo __('Nickname') ?></th><td><?php echo $diary->getMember()->getName() ?></td>
    1212</tr><tr>
    13 <th><?php echo __('Title') ?></th><td><?php echo $diary->getTitleAndCount() ?></td>
     13<th><?php echo __('Title') ?></th><td><?php echo $diary->getTitleAndCount() ?><?php if ($diary->hasDiaryImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></td>
    1414</tr><tr>
    1515<th><?php echo __('Body') ?></th><td><?php echo $diary->getBody() ?></td>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/model/Diary.php

    r10090 r10100  
    8484    return $result;
    8585  }
     86
     87  public function hasDiaryImages()
     88  {
     89    return (bool)self::countDiaryImages();
     90  }
    8691}
Note: See TracChangeset for help on using the changeset viewer.