本文整理匯總了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'));