Browse Source

bread crumbs link update

master
filesite 7 months ago
parent
commit
85ce6673cb
  1. 8
      themes/tajian/views/site/index.php

8
themes/tajian/views/site/index.php

@ -3,10 +3,16 @@
require_once __DIR__ . '/../../../../plugins/Html.php'; require_once __DIR__ . '/../../../../plugins/Html.php';
$imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir']; $imgPreffix = '/' . FSC::$app['config']['content_directory'] . FSC::$app['config']['tajian']['data_dir'];
$linkPrefix = '';
//多用户路径支持
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) {
$linkPrefix = '/' . FSC::$app['user_id'];
}
if (!empty($breadcrumbs)) { if (!empty($breadcrumbs)) {
echo <<<eof echo <<<eof
<div class="breadcrumbs"> <div class="breadcrumbs">
<a href="/">首页</a> &gt;&gt; <a href="{$linkPrefix}/">首页</a> &gt;&gt;
eof; eof;
foreach($breadcrumbs as $bread) { foreach($breadcrumbs as $bread) {

Loading…
Cancel
Save