本文整理汇总了PHP中zmf::tipSubStr方法的典型用法代码示例。如果您正苦于以下问题:PHP zmf::tipSubStr方法的具体用法?PHP zmf::tipSubStr怎么用?PHP zmf::tipSubStr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类zmf
的用法示例。
在下文中一共展示了zmf::tipSubStr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
?>
</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;
?>
<?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()) {
示例2: array
<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'));