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

Changeset 10538


Ignore:
Timestamp:
Jan 28, 2009, 4:08:57 PM (11 years ago)
Author:
nagasawa
Message:

#3504:fixed layout in favorite/add,favorite/diary

Location:
OpenPNE3/plugins/opFavoritePlugin/trunk/apps/pc_frontend/modules/favorite
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opFavoritePlugin/trunk/apps/pc_frontend/modules/favorite/actions/actions.class.php

    r10420 r10538  
    4646  public function executeDiary($request)
    4747  {
    48     $this->diaryPager = FavoritePeer::retrieveDiaryPager($this->getUser()->getMemberId(), $request->getParameter('page', 1));
    49     if (!$this->diaryPager->getNbResults())
     48    $this->pager = FavoritePeer::retrieveDiaryPager($this->getUser()->getMemberId(), $request->getParameter('page', 1));
     49    if (!$this->pager->getNbResults())
    5050    {
    5151      return sfView::ERROR;
    5252    }
    53     $this->diaryList = FavoritePeer::retrieveDiaryListFromPager($this->diaryPager);
    5453  }
    5554
  • OpenPNE3/plugins/opFavoritePlugin/trunk/apps/pc_frontend/modules/favorite/templates/addSuccess.php

    r10537 r10538  
    1919<tr>
    2020<th><?php echo $member->getProfile('self_intro')->getCaption() ?></th>
    21 <td><?php echo $member->getProfile('self_intro') ?></td>
     21<td><?php echo nl2br($member->getProfile('self_intro')) ?></td>
    2222</tr>
    2323<?php endif ?>
  • OpenPNE3/plugins/opFavoritePlugin/trunk/apps/pc_frontend/modules/favorite/templates/diarySuccess.php

    r10420 r10538  
    1 <?php
     1<?php use_helper('opDiary'); ?>
    22
    3 include_news_pager('diaryNews', __('The favorite newest diary'), $diaryPager, $diaryList, 'diary/%d');
     3<?php $title = __('The favorite newest diary') ?>
     4<?php if ($pager->getNbResults()): ?>
     5<div class="dparts recentList"><div class="parts">
     6<div class="partsHeading"><h3><?php echo $title ?></h3></div>
     7<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'favorite/diary?page=%d'); ?></p></div>
     8<?php foreach ($pager->getResults() as $diary): ?>
     9<dl>
     10<dt><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
     11<dd><?php echo link_to(op_diary_get_title_and_count($diary), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></dd>
     12</dl>
     13<?php endforeach; ?>
     14<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'favorite/list?page=%d'); ?></p></div>
     15</div></div>
     16<?php else: ?>
     17<?php op_include_box('diaryList', __('There are no diaries'), array('title' => $title)) ?>
     18<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.