system/library/breadcrumb.php
(完整代码) 693B<?php
/**
* Breadcrumb.php
*
* @copyright 2017 damicms.com - All Rights Reserved
* @link http://www.guangdawangluo.com
* @author Sam Chen <samchen@damicms.com>
* @created 2017-12-25 10:18
* @modified 2017-12-25 10:18
*/
class Breadcrumb
{
private $data = array();
public function addHome()
{
$this->add(t('text_home'), url()->link('common/home'));
}
public function add($text, $href)
{
if (empty($text) || empty($href)) {
return;
}
$this->data[] = array(
'text' => $text,
'href' => $href
);
}
public function all()
{
return $this->data;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
