AI智能回复搜索中,请稍后...
2 回答
public function _crumb($name, $url = null) { if (is_array($name)) { foreach ($name as $key => $value) { $this->crumb($key, $value); } return $this; } $crumb_template = $this->crumb; if (strlen($url) > 1 and substr($url, 0, 1) == '/') { $url = get_setting('base_url') . substr($url, 1); } $this->crumb[] = array( 'name' => $name, 'url' => $url ); $crumb_template['last'] = array( 'name' => $name, 'url' => $url ); TPL::assign('crumb', $crumb_template); foreach ($this->crumb as $key => $crumb) { $title = $crumb['name'] . ' - ' . $title; } TPL::assign('page_title', htmlspecialchars(rtrim($title, ' - '))); return $this; }
这家伙很懒,还没有设置简介