本文整理汇总了PHP中Typecho_Common::splitByCount方法的典型用法代码示例。如果您正苦于以下问题:PHP Typecho_Common::splitByCount方法的具体用法?PHP Typecho_Common::splitByCount怎么用?PHP Typecho_Common::splitByCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Typecho_Common
的用法示例。
在下文中一共展示了Typecho_Common::splitByCount方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
<?php
while ($posts->next()) {
?>
<tr id="<?php
$posts->theId();
?>
">
<td><input type="checkbox" value="<?php
$posts->cid();
?>
" name="cid[]"/></td>
<td><a href="<?php
$options->adminUrl('manage-comments.php?cid=' . $posts->cid);
?>
" class="balloon-button size-<?php
echo Typecho_Common::splitByCount($posts->commentsNum, 1, 10, 20, 50, 100);
?>
"><?php
$posts->commentsNum();
?>
</a></td>
<td>
<a href="<?php
$options->index('publish?cid=' . $posts->cid);
?>
" target="_blank"><?php
$posts->title();
?>
</a>
<?php
if ($posts->hasSaved || 'post_draft' == $posts->type) {
示例2: while
<?php
while ($users->next()) {
?>
<tr id="user-<?php
$users->uid();
?>
">
<td><input type="checkbox" value="<?php
$users->uid();
?>
" name="uid[]"/></td>
<td><a href="<?php
$options->adminUrl('manage-posts.php?uid=' . $users->uid);
?>
" class="balloon-button left size-<?php
echo Typecho_Common::splitByCount($users->postsNum, 1, 10, 20, 50, 100);
?>
"><?php
$users->postsNum();
?>
</a></td>
<td><a href="<?php
$options->adminUrl('user.php?uid=' . $users->uid);
?>
"><?php
$users->name();
?>
</a>
<a href="<?php
$users->permalink();
?>
示例3: _e
<a class="hidden-by-mouse" href="<?php
$options->index('/action/metas-category-edit?do=default&mid=' . $categories->mid);
?>
" title="<?php
_e('设为默认');
?>
"><?php
_e('默认');
?>
</a>
<?php
}
?>
</td>
<td><a class="balloon-button left size-<?php
echo Typecho_Common::splitByCount($categories->count, 1, 10, 20, 50, 100);
?>
" href="<?php
$options->adminUrl('manage-posts.php?category=' . $categories->mid);
?>
"><?php
$categories->count();
?>
</a></td>
</tr>
<?php
}
?>
<?php
} else {
?>