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

source: OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/modules/communityTopic/templates/_communityTopicList.php @ 10412

Last change on this file since 10412 was 10412, checked in by ebihara, 11 years ago

#3372:added checking permissions to display links

File size: 854 bytes
Line 
1<?php if ($community->isViewableCommunityTopic($sf_user->getMemberId())): ?>
2<?php use_helper('Date'); ?>
3<tr>
4<th>コミュニティ掲示板</th>
5<td>
6<ul>
7<?php if (count($communityTopics)): ?>
8<?php foreach ($communityTopics as $key => $communityTopic): ?>
9<li>
10<?php echo format_datetime($communityTopic->getUpdatedAt(), 'f'); ?>
11&nbsp;
12<?php echo link_to(sprintf('%s(%d)', $communityTopic->getName(), $communityTopic->countCommunityTopicComments()), 'communityTopic_show', $communityTopic) ?>
13</li>
14<?php endforeach; ?>
15<li><?php echo link_to('もっと読む', 'communityTopic_list_community', $community); ?></li>
16<?php endif; ?>
17<?php if ($community->isCreatableCommunityTopic($sf_user->getMemberId())): ?>
18<li><?php echo link_to('トピック作成', 'communityTopic_new', $community); ?></li>
19<?php endif; ?>
20</ul>
21</td>
22</tr>
23<?php endif; ?>
Note: See TracBrowser for help on using the repository browser.