Exemplo n.º 1
0
}
?>
</p>
        <p class="author"><?php 
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'uname' => $_uname, 'type' => 'l', 'lcss' => ''));
?>
</p>        
        <div class="content-detail hidden">
            <?php 
echo zmf::text(array(), $data['content']);
?>
        </div>
        <div class="content-substr">
            <div class="toggle-area">
                <?php 
echo zmf::tipSubStr($data['content'], 140, 1, '...<a href="javascript:;" class="more">查看详情</a>');
?>
            </div>            
        </div>
        <p class="color-grey"><?php 
echo $formatTime;
?>
&nbsp;<?php 
echo CHtml::link($data['comments'] . '条评论', 'javascript:;', array('action' => 'get-contents', 'action-data' => $data['id'], 'action-type' => 'comments', 'action-target' => 'comments-poipost-' . $data['id'], 'action-classify' => 'poipost'));
?>
            <span class="action-bar">
                <?php 
if ($data['uid'] != zmf::uid()) {
    echo CHtml::link('举报', 'javascript:;', array('onclick' => "report('" . $data['id'] . "','" . $type . "')"));
}
if (zmf::uid()) {
Exemplo n.º 2
0
<br/>
        <?php 
echo CHtml::link($data['favors'], 'javascript:;', array('title' => '赞', 'class' => 'btn btn-xs btn-' . ($_favored ? 'success' : 'default') . ' btn-block', 'action' => 'favor', 'action-data' => $data['id'], 'action-type' => 'post', 'id' => 'favor-post-' . $data['id']));
?>
    </div>
    <div class="media-body post-body">
        <p class="title"><?php 
echo CHtml::link($title, array('posts/view', 'id' => $data['id']));
?>
</p>
        <p class="author"><?php 
$this->renderPartial('/common/_user', array('uid' => $data['uid'], 'userInfo' => $_userInfo, 'type' => 'l'));
?>
</p>
        <p><?php 
echo zmf::tipSubStr($data['content'], 260, 1, '...' . CHtml::link('查看详情', array('posts/view', 'id' => $data['id'])));
?>
</p>
        <p class="color-grey">
            <?php 
if ($data['top']) {
    ?>
            <span class="icon-bookmark" style="color:#FE852A" title="推荐文章"></span>
            <?php 
}
?>
            <?php 
echo CHtml::link($formatTime, array('posts/view', 'id' => $data['id']));
?>
            <?php 
echo CHtml::link(zmf::t('postComment', $data['comments']), array('posts/view', 'id' => $data['id'], '#' => 'comments'));