本文整理汇总了PHP中Cell::span方法的典型用法代码示例。如果您正苦于以下问题:PHP Cell::span方法的具体用法?PHP Cell::span怎么用?PHP Cell::span使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cell
的用法示例。
在下文中一共展示了Cell::span方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __do_response_reply_count
function __do_response_reply_count($response)
{
global $config, $speak, $segment;
$e = File::E($response->path);
$replies = count(glob(COMMENT . DS . '*_*_' . Date::slug($response->id) . '.{txt,hold}', GLOB_NOSORT | GLOB_BRACE));
$t = Jot::icon('reply-all') . ' ' . $replies;
$tt = array('title' => $replies . ' ' . ($replies === 1 ? $speak->{$segment[0] . '_reply'} : $speak->{$segment[0] . '_replies'}));
echo ($e === 'hold' || $replies === 0 ? Cell::span($t, $tt) : Cell::a($config->manager->slug . '/' . $segment[0] . '?filter=parent%3A' . $response->id, $t, null, $tt)) . ' · ';
}
示例2: substr
</p>
<?php
}
?>
<p><time class="text-fade" datetime="<?php
echo $page->date->W3C;
?>
"><?php
echo Jot::icon('clock-o') . ' ' . $page->date->FORMAT_3;
?>
</time><?php
if (isset($page->total_comments)) {
$t = Jot::icon('comments') . ' ' . $page->total_comments;
?>
· <?php
echo $page->total_comments === 0 ? Cell::span($t) : Cell::a($config->manager->slug . '/comment?filter=post%3A' . $page->id, $t);
}
?>
</p>
<?php
if ($page->css) {
?>
<pre><code><?php
echo substr(Text::parse($page->css, '->encoded_html'), 0, $config->excerpt->length);
if (strlen($page->css) > $config->excerpt->length) {
echo $config->excerpt->suffix;
}
?>
</code></pre>
<?php
}
示例3: function
// Title
if (!$config->manager->title) {
$config->manager->title = $speak->manager->title_manager;
Config::set('manager.title', $speak->manager->title_manager);
}
/**
* Footer Link(s)
* --------------
*/
// Add default article footer link(s)
Weapon::add('article_footer', function ($article) use($config, $speak) {
$e = File::E($article->path);
$comments = count(glob(COMMENT . DS . Date::slug($article->id) . '_*_*.{txt,hold}', GLOB_NOSORT | GLOB_BRACE));
$t = Jot::icon('comments') . ' ' . $comments;
$tt = array('title' => $comments . ' ' . ($comments === 1 ? $speak->comment : $speak->comments));
$comments = ($e === 'draft' || $comments === 0 ? Cell::span($t, $tt) : Cell::a($config->manager->slug . '/comment?filter=post%3A' . $article->id, $t, null, $tt)) . ' · ';
$status = Mecha::alter($e, array('draft' => Jot::span('info', Jot::icon('clock-o') . ' ' . $speak->draft) . ' · ', 'archive' => Jot::span('info', Jot::icon('history') . ' ' . $speak->archive) . ' · '), "");
echo $comments . $status . Cell::a($config->manager->slug . '/article/repair/id:' . $article->id, $speak->edit) . ' / ' . Cell::a($config->manager->slug . '/article/kill/id:' . $article->id, $speak->delete);
}, 20);
// Add default page footer link(s)
Weapon::add('page_footer', function ($page) use($config, $speak) {
$status = Mecha::alter(File::E($page->path), array('draft' => Jot::span('info', Jot::icon('clock-o') . ' ' . $speak->draft) . ' · ', 'archive' => Jot::span('info', Jot::icon('history') . ' ' . $speak->archive) . ' · '), "");
echo $status . Cell::a($config->manager->slug . '/page/repair/id:' . $page->id, $speak->edit) . ' / ' . Cell::a($config->manager->slug . '/page/kill/id:' . $page->id, $speak->delete);
}, 20);
/**
* Backend Route(s)
* ----------------
*
* Load the routes.
*
*/