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

source: OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listMemberSuccess.php @ 10513

Last change on this file since 10513 was 10513, checked in by ebihara, 13 years ago

added support for truncate titles of the opDiaryPlugin

File size: 1.5 KB
RevLine 
[9877]1<?php use_helper('opDiary'); ?>
[9551]2
[9870]3<?php decorate_with('layoutB') ?>
[10108]4<?php slot('op_sidemenu', get_component('diary', 'sidemenu', array('member' => $member, 'year' => $year, 'month' => $month))) ?>
[9870]5
[10391]6<?php if ($sf_user->getMemberId() === $member->getId()): ?>
7<?php op_include_box('newDiaryLink', link_to(__('Post a diary'), 'diary_new'), array('title' => __('Post a diary'))) ?>
8<?php endif; ?>
9
10<?php
11$title = __('Diaries of %1%', array('%1%' => $member->getName()));
12if ($year && $month)
13{
[10454]14  $title .= ' ('.op_format_date(sprintf('%04d-%02d-%02d', $year, $month, ($day) ? $day : 1), ($day) ? 'D' : 'XCalendarMonth').')';
[10391]15}
16?>
17<?php if ($pager->getNbResults()): ?>
[9559]18<div class="dparts recentList"><div class="parts">
[10391]19<div class="partsHeading"><h3><?php echo $title ?></h3></div>
[9853]20<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/listMember?page=%d&id='.$member->getId()); ?></p></div>
[9551]21<?php foreach ($pager->getResults() as $diary): ?>
[9559]22<dl>
[10454]23<dt><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
[10513]24<dd><?php echo link_to(op_diary_get_title_and_count($diary), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></dd>
[9559]25</dl>
[9551]26<?php endforeach; ?>
[9853]27<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/listMember?page=%d&id='.$member->getId()); ?></p></div>
[10391]28</div></div>
[9551]29<?php else: ?>
[10391]30<?php op_include_box('diaryList', __('There are no diaries'), array('title' => $title)) ?>
[9551]31<?php endif; ?>
Note: See TracBrowser for help on using the repository browser.