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

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
Line 
1<?php use_helper('opDiary'); ?>
2
3<?php decorate_with('layoutB') ?>
4<?php slot('op_sidemenu', get_component('diary', 'sidemenu', array('member' => $member, 'year' => $year, 'month' => $month))) ?>
5
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{
14  $title .= ' ('.op_format_date(sprintf('%04d-%02d-%02d', $year, $month, ($day) ? $day : 1), ($day) ? 'D' : 'XCalendarMonth').')';
15}
16?>
17<?php if ($pager->getNbResults()): ?>
18<div class="dparts recentList"><div class="parts">
19<div class="partsHeading"><h3><?php echo $title ?></h3></div>
20<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/listMember?page=%d&id='.$member->getId()); ?></p></div>
21<?php foreach ($pager->getResults() as $diary): ?>
22<dl>
23<dt><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
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>
25</dl>
26<?php endforeach; ?>
27<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'diary/listMember?page=%d&id='.$member->getId()); ?></p></div>
28</div></div>
29<?php else: ?>
30<?php op_include_box('diaryList', __('There are no diaries'), array('title' => $title)) ?>
31<?php endif; ?>
Note: See TracBrowser for help on using the repository browser.