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

Changeset 10454


Ignore:
Timestamp:
Jan 27, 2009, 12:44:45 AM (11 years ago)
Author:
ogawa
Message:

opDiaryPlugin: replaced op_diary_format_date to op_format_date

Location:
OpenPNE3/plugins/opDiaryPlugin/trunk
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/_diaryList.php

    r10317 r10454  
    77{
    88  $list[] = sprintf("[%s] %s<br>%s",
    9               op_diary_format_date($diary->getCreatedAt(), 'XShortDate'),
     9              op_format_date($diary->getCreatedAt(), 'XShortDate'),
    1010              $diary->getMember()->getName(),
    1111              link_to($diary->getTitleAndCount(false), 'diary_show', $diary)
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/_friendDiaryList.php

    r10317 r10454  
    77{
    88  $list[] = sprintf("[%s] %s<br>%s",
    9               op_diary_format_date($diary->getCreatedAt(), 'XShortDate'),
     9              op_format_date($diary->getCreatedAt(), 'XShortDate'),
    1010              $diary->getMember()->getName(),
    1111              link_to($diary->getTitleAndCount(false), 'diary_show', $diary)
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/_memberDiaryList.php

    r10317 r10454  
    77{
    88  $list[] = sprintf('[%s] %s',
    9               op_diary_format_date($diary->getCreatedAt(), 'XShortDate'),
     9              op_format_date($diary->getCreatedAt(), 'XShortDate'),
    1010              link_to($diary->getTitleAndCount(false), 'diary_show', $diary)
    1111            );
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/_myDiaryList.php

    r10317 r10454  
    66{
    77  $list[] = sprintf('[%s] %s',
    8               op_diary_format_date($diary->getCreatedAt(), 'XShortDate'),
     8              op_format_date($diary->getCreatedAt(), 'XShortDate'),
    99              link_to($diary->getTitleAndCount(false), 'diary_show', $diary)
    1010            );
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/listFriendSuccess.php

    r10317 r10454  
    1212{
    1313  $list[] = sprintf("%s<br>%s (%s)",
    14               op_diary_format_date($diary->getCreatedAt(), 'XDateTime'),
     14              op_format_date($diary->getCreatedAt(), 'XDateTime'),
    1515              link_to($diary->getTitleAndCount(false), 'diary_show', $diary),
    1616              $diary->getMember()->getName()
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/listMemberSuccess.php

    r10317 r10454  
    1212{
    1313  $list[] = sprintf("%s<br>%s",
    14               op_diary_format_date($diary->getCreatedAt(), 'XDateTime'),
     14              op_format_date($diary->getCreatedAt(), 'XDateTime'),
    1515              link_to($diary->getTitleAndCount(false), 'diary_show', $diary)
    1616            );
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/listSuccess.php

    r10317 r10454  
    1212{
    1313  $list[] = sprintf("%s<br>%s (%s)",
    14               op_diary_format_date($diary->getCreatedAt(), 'XDateTime'),
     14              op_format_date($diary->getCreatedAt(), 'XDateTime'),
    1515              link_to($diary->getTitleAndCount(false), 'diary_show', $diary),
    1616              $diary->getMember()->getName()
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diary/templates/showSuccess.php

    r10317 r10454  
    33
    44<?php echo op_diary_within_page_link() ?>
    5 <?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTime') ?>
     5<?php echo op_format_date($diary->getCreatedAt(), 'XDateTime') ?>
    66<?php if ($diary->getMemberId() === $sf_user->getMemberId()): ?>
    77[<?php echo link_to(__('Edit'), 'diary_edit', $diary) ?>][<?php echo link_to(__('Delete'), 'diary_delete_confirm', $diary) ?>]
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/mobile_frontend/modules/diaryComment/templates/_list.php

    r10075 r10454  
    1111<hr>
    1212<?php echo op_diary_within_page_link() ?>
    13 [<?php printf('%03d', $comment->getNumber()) ?>]<?php echo op_diary_format_date($comment->getCreatedAt(), 'XDateTime') ?>
     13[<?php printf('%03d', $comment->getNumber()) ?>]<?php echo op_format_date($comment->getCreatedAt(), 'XDateTime') ?>
    1414<?php if ($diary->getMemberId() === $sf_user->getMemberId() || $comment->getMemberId() === $sf_user->getMemberId()): ?>
    1515[<?php echo link_to(__('Delete'), 'diary_comment_delete_confirm', $comment) ?>]
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_diaryList.php

    r10222 r10454  
    88<ul class="articleList">
    99<?php foreach ($diaryList as $diary): ?>
    10 <li><span class="date"><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
     10<li><span class="date"><?php echo op_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1111<?php endforeach; ?>
    1212</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_friendDiaryList.php

    r10222 r10454  
    88<ul class="articleList">
    99<?php foreach ($diaryList as $diary): ?>
    10 <li><span class="date"><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
     10<li><span class="date"><?php echo op_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?> (<?php echo $diary->getMember()->getName() ?>)<?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1111<?php endforeach; ?>
    1212</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_memberDiaryList.php

    r10222 r10454  
    88<ul class="articleList">
    99<?php foreach ($diaryList as $diary): ?>
    10 <li><span class="date"><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
     10<li><span class="date"><?php echo op_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1111<?php endforeach; ?>
    1212</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_myDiaryList.php

    r10222 r10454  
    88<ul class="articleList">
    99<?php foreach ($diaryList as $diary): ?>
    10 <li><span class="date"><?php echo op_diary_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
     10<li><span class="date"><?php echo op_format_date($diary->getCreatedAt(), 'XShortDateJa') ?></span><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></li>
    1111<?php endforeach; ?>
    1212</ul>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/_sidemenu.php

    r10443 r10454  
    1111  <?php echo link_to('&lt;&lt;', '@diary_list_member_year_month?id='.$member->getId().'&year='.$_m['year'].'&month='.$_m['month']) ?>
    1212<?php endif; ?>
    13   <?php $_m = $calendar->thisMonth('array'); echo op_diary_format_date(sprintf('%04d-%02d-01', $_m['year'], $_m['month']), 'XCalendarMonth') ?>
     13  <?php $_m = $calendar->thisMonth('array'); echo op_format_date(sprintf('%04d-%02d-01', $_m['year'], $_m['month']), 'XCalendarMonth') ?>
    1414<?php if ($_m = $calendar->nextMonth('array')): ?>
    1515  <?php echo link_to('&gt;&gt;', '@diary_list_member_year_month?id='.$member->getId().'&year='.$_m['year'].'&month='.$_m['month']) ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listFriendSuccess.php

    r10391 r10454  
    88<?php foreach ($pager->getResults() as $diary): ?>
    99<dl>
    10 <dt><?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
     10<dt><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
    1111<dd><?php echo link_to($diary->getTitleAndCount(), '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>
    1212</dl>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listMemberSuccess.php

    r10391 r10454  
    1212if ($year && $month)
    1313{
    14   $title .= ' ('.op_diary_format_date(sprintf('%04d-%02d-%02d', $year, $month, ($day) ? $day : 1), ($day) ? 'D' : 'XCalendarMonth').')';
     14  $title .= ' ('.op_format_date(sprintf('%04d-%02d-%02d', $year, $month, ($day) ? $day : 1), ($day) ? 'D' : 'XCalendarMonth').')';
    1515}
    1616?>
     
    2121<?php foreach ($pager->getResults() as $diary): ?>
    2222<dl>
    23 <dt><?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
     23<dt><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></dt>
    2424<dd><?php echo link_to($diary->getTitleAndCount(), 'diary_show', $diary) ?><?php if ($diary->hasImages()) : ?> <?php echo image_tag('icon_camera.gif', array('alt' => 'photo')) ?><?php endif; ?></dd>
    2525</dl>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/listSuccess.php

    r10391 r10454  
    1616<th><?php echo __('Body') ?></th><td><?php echo $diary->getBody() ?></td>
    1717</tr><tr class="operation">
    18 <th><?php echo __('Created at') ?></th><td><span class="text"><?php echo op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></span> <span class="moreInfo"><?php echo link_to(__('View this diary'), 'diary_show', $diary) ?></span></td>
     18<th><?php echo __('Created at') ?></th><td><span class="text"><?php echo op_format_date($diary->getCreatedAt(), 'XDateTimeJa') ?></span> <span class="moreInfo"><?php echo link_to(__('View this diary'), 'diary_show', $diary) ?></span></td>
    1919</tr></tbody></table></div></div>
    2020<?php endforeach; ?>
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diary/templates/showSuccess.php

    r10431 r10454  
    2121
    2222<dl>
    23 <dt><?php echo nl2br(op_diary_format_date($diary->getCreatedAt(), 'XDateTimeJaBr')) ?></dt>
     23<dt><?php echo nl2br(op_format_date($diary->getCreatedAt(), 'XDateTimeJaBr')) ?></dt>
    2424<dd>
    2525<div class="title">
  • OpenPNE3/plugins/opDiaryPlugin/trunk/apps/pc_frontend/modules/diaryComment/templates/_list.php

    r10431 r10454  
    3333<?php foreach ($pager->getResults() as $comment): ?>
    3434<dl>
    35 <dt><?php echo nl2br(op_diary_format_date($comment->getCreatedAt(), 'XDateTimeJaBr')) ?></dt>
     35<dt><?php echo nl2br(op_format_date($comment->getCreatedAt(), 'XDateTimeJaBr')) ?></dt>
    3636<dd>
    3737<div class="title">
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/helper/opDiaryHelper.php

    r10433 r10454  
    88 * file and the NOTICE file that were distributed with this source code.
    99 */
    10 
    11 use_helper('opUtil');
    12 use_helper('Date');
    13 
    14 function op_diary_format_date($date, $format = 'd', $culture = null, $charset = null)
    15 {
    16   return op_format_date($date, $format, $culture, $charset);
    17 }
    1810
    1911function op_diary_within_page_link($marker = '▼')
Note: See TracChangeset for help on using the changeset viewer.