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

Changeset 11171


Ignore:
Timestamp:
Mar 26, 2009, 2:18:54 AM (13 years ago)
Author:
ebihara
Message:

#3672:added support for the mobile_frontend application

Location:
OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/communityEventComment
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/communityEventComment/actions/components.class.php

    r11143 r11171  
    1818class communityEventCommentComponents extends opCommunityEventCommentComponents
    1919{
     20  public function executeList($request)
     21  {
     22    $this->size = 5;
     23    parent::executeList($request);
     24  }
    2025}
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/communityEventComment/templates/_list.php

    r11143 r11171  
    1 <?php if ($commentPager->getNbResults()) : ?>
    2 <div class="dparts commentList"><div class="parts">
    3 <div class="partsHeading">
    4 <h3><?php echo __('Comments') ?></h3>
    5 </div>
    6 
    7 <?php ob_start() ?>
    8 <?php op_include_pager_navigation($commentPager, '@communityEvent_show?page=%d&id='.$communityEvent->getId()); ?>
    9 <?php $pagerNavi = ob_get_contents() ?>
    10 <?php ob_end_flush() ?>
     1<?php if ($commentPager->getNbResults()): ?>
     2<hr>
     3<center>
     4<?php echo __('Comments') ?><br>
     5<?php op_include_pager_total($commentPager) ?>
     6</center>
    117
    128<?php foreach ($commentPager->getResults() as $comment): ?>
    13 <dl>
    14 <dt><?php echo nl2br(op_format_date($comment->getCreatedAt(), 'XDateTimeJaBr')) ?></dt>
    15 <dd>
    16 <div class="title">
    17 <p class="heading"><strong><?php echo $comment->getNumber() ?></strong>:
    18 <?php if ($_member = $comment->getMember()) : ?> <?php echo link_to($_member->getName(), 'member/profile?id='.$_member->getId()) ?><?php endif; ?>
     9<hr>
     10<?php echo op_within_page_link() ?>
     11[<?php printf('%03d', $comment->getNumber()) ?>]<?php echo op_format_date($comment->getCreatedAt(), 'XDateTime') ?>
    1912<?php if ($comment->isDeletable($sf_user->getMemberId())): ?>
    20  <?php echo link_to(__('Delete'), '@communityEvent_comment_delete_confirm?id='.$comment->getId()) ?>
     13&nbsp;[<?php echo link_to(__('Delete'), '@communityEvent_comment_delete_confirm?id='.$comment->getId()) ?>]
     14<?php endif; ?><br>
     15<?php echo link_to($comment->getMember()->getName(), 'member/profile?id='.$comment->getMemberId()) ?><br>
     16<?php echo nl2br($comment->getBody()) ?>
     17<?php endforeach; ?>
     18<?php if ($commentPager->haveToPaginate()): ?>
     19<hr>
     20<?php op_include_pager_navigation($commentPager, '@communityEvent_show?id='.$communityEvent->getId().'&page=%d') ?>
    2121<?php endif; ?>
    22 </p>
    23 </div>
    24 <div class="body">
    25 <p class="text">
    26 <?php echo op_url_cmd(nl2br($comment->getBody())) ?>
    27 </p>
    28 </div>
    29 </dd>
    30 </dl>
    31 <?php endforeach; ?>
    32 
    33 <?php echo $pagerNavi ?>
    34 
    35 </div>
    36 </div>
    3722<?php endif; ?>
  • OpenPNE3/plugins/opCommunityTopicPlugin/trunk/apps/mobile_frontend/modules/communityEventComment/templates/deleteConfirmSuccess.php

    r11143 r11171  
    44  'url'    => url_for('communityEvent_comment_delete', $communityEventComment),
    55)) ?>
    6 
    7 <?php use_helper('Javascript') ?>
    8 <?php op_include_line('backLink', link_to_function(__('Back to previous page'), 'history.back()')) ?>
Note: See TracChangeset for help on using the changeset viewer.