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

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

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

#4019 fixed the link url of topics in the result of searching topics

File size: 695 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(
12      sprintf("%s(%d)",
13        op_truncate($communityTopic->getName(), 28),
14        $communityTopic->$getCommunityComment()->count()
15      ),
16      sprintf($link_to_detail, $communityTopic->getId()),
17      $communityTopic
18    ),
19    op_truncate($communityTopic->getCommunity()->getName(), 17)
20  );
21}
22op_include_list('communityTopic', $list, array('border' => true));
23?>
Note: See TracBrowser for help on using the repository browser.