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

Changeset 10490


Ignore:
Timestamp:
Jan 27, 2009, 2:22:49 PM (11 years ago)
Author:
ebihara
Message:

added the topicCommentList gadget to default gadgets

Location:
OpenPNE3/plugins/opCommunityTopicPlugin/trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/pc_frontend/modules/communityTopic/templates/_topicCommentListBox.php

    r10384 r10490  
    1 <?php
    2 $option = array(
    3   'title' => 'コミュニティ最新書き込み',
    4 );
    5 $list = array();
    6 foreach ($communityTopic as $key => $value)
    7 {
    8   $topicId = $value->getId();
    9   $topicName = $value->getName();
    10   $communityName = $value->getCommunity()->getName();
    11   $countComment = $value->countCommunityTopicComments();
    12   $updateTopic = $value->getUpdatedAt();
     1<div class="dparts homeRecentList"><div class="parts">
     2<div class="partsHeading"><h3><?php echo __('コミュニティ最新書き込み') ?></h3></div>
     3<div class="block">
    134
    14   $list[$updateTopic] = link_to($topicName.' ('.$countComment.')', 'communityTopic_show', $value).' ('.$communityName.')';
    15 }
     5<?php if (count($communityTopic)): ?>
     6<ul class="articleList">
     7<?php foreach ($communityTopic as $topic): ?>
     8<li><span class="date"><?php echo op_format_date($topic->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($topic->getName().' ('.$topic->countCommunityTopicComments().')', 'communityTopic_show', $topic).' ('.$topic->getCommunity()->getName().')' ?></li>
     9<?php endforeach; ?>
     10</ul>
     11<?php endif; ?>
    1612
    17 include_list_box('recentCommunityTopicComment', $list, $option);
     13</div>
     14</div></div>
Note: See TracChangeset for help on using the changeset viewer.