Example #1
0
/**
 * 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;
}
Example #2
0
        ?>
</a></td>
<th><?php 
        echo __('%Nickname%');
        ?>
</th><td><?php 
        echo $diary->Member->name;
        ?>
</td>
</tr><tr>
<th><?php 
        echo __('Title');
        ?>
</th><td><?php 
        echo op_diary_get_title_and_count($diary);
        echo op_diary_image_icon($diary);
        ?>
</td>
</tr><tr>
<th><?php 
        echo __('Body');
        ?>
</th><td><?php 
        echo op_truncate(op_decoration($diary->body, true), 36, '', 3);
        ?>
</td>
</tr><tr class="operation">
<th><?php 
        echo __('Created at');
        ?>
</th><td><span class="text"><?php