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

source: OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/communityTopic/templates/_partsSearchResultList.php @ 12213

Last change on this file since 12213 was 12213, checked in by fukamachi, 11 years ago

#4019 Add topic and event search to opCommunityTopicPlugin

File size: 630 bytes
Line 
1<?php use_helper('Date') ?>
2<?php
3$list = array();
4$getCommunityComment = 'event' === $type
5  ? 'getCommunityEventComment'
6  : 'getCommunityTopicComment';
7foreach ($pager->getResults() as $communityTopic)
8{
9  $list[] = sprintf("[%s]<br>%s(%s)",
10    op_format_date($communityTopic->getUpdatedAt(), 'XDateTime'),
11    link_to(sprintf("%s(%d)",
12      op_truncate($communityTopic->getName(), 28),
13      $communityTopic->$getCommunityComment()->count()
14    ), $link_to_detail, $communityTopic),
15    op_truncate($communityTopic->getCommunity()->getName(), 17)
16  );
17}
18op_include_list('communityTopic', $list, array('border' => true));
19?>
Note: See TracBrowser for help on using the repository browser.