/** * This file is part of the OpenPNE package. * (c) OpenPNE Project (http://www.openpne.jp/) * * For the full copyright and license information, please view the LICENSE * file and the NOTICE file that were distributed with this source code. */ function op_diary_link_to_show($diary, $withName = true, $withIcon = true) { $html = ''; $html .= link_to(op_diary_get_title_and_count($diary), op_diary_url_for_show($diary)); if ($withName) { $html .= ' (' . $diary->getMember()->getName() . ')'; } if ($withIcon) { $html .= op_diary_image_icon($diary); } return $html; }
<?php use_helper('opDiary'); ?> <?php if ($count) { echo link_to(format_number_choice('[1]1 diary has new comments!|(1,Inf]%1% diaries have new comments!', array('%1%' => $count), $count), op_diary_url_for_show($diary)); }
<?php use_helper('opDiary'); ?> <?php if ($count) { ?> <p class="caution"><?php echo format_number_choice('[1]1 diary has new comments|(1,Inf]%1% diaries have new comments', array('%1%' => $count), $count); ?> <?php echo link_to(__('Read comment'), op_diary_url_for_show($diary)); ?> </p> <?php }