|
|
|
@ -2,6 +2,11 @@
@@ -2,6 +2,11 @@
|
|
|
|
|
//常用方法 |
|
|
|
|
require_once __DIR__ . '/../../../../plugins/Html.php'; |
|
|
|
|
|
|
|
|
|
$linkPrefix = ''; |
|
|
|
|
//多用户路径支持 |
|
|
|
|
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) { |
|
|
|
|
$linkPrefix = '/' . FSC::$app['user_id']; |
|
|
|
|
} |
|
|
|
|
?><!DocType html> |
|
|
|
|
<html> |
|
|
|
|
<head> |
|
|
|
@ -34,11 +39,11 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
@@ -34,11 +39,11 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
|
|
|
|
|
|
|
|
|
|
<div class="app_layout_side"> |
|
|
|
|
<div class="menu_ls g_ls_menus"> |
|
|
|
|
<a class="this_set" href="/" title=""> |
|
|
|
|
<a class="this_set" href="<?=$linkPrefix?>/" title=""> |
|
|
|
|
<img src="/img/choice.svg" alt="星星图标" /> |
|
|
|
|
<span>推荐</span> |
|
|
|
|
</a> |
|
|
|
|
<a href="/site/new" title=""> |
|
|
|
|
<a href="<?=$linkPrefix?>/site/new" title=""> |
|
|
|
|
<img src="/img/addvideos.svg" alt="添加图标" /> |
|
|
|
|
<span>添加</span> |
|
|
|
|
</a> |
|
|
|
@ -53,16 +58,10 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
@@ -53,16 +58,10 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
|
|
|
|
|
$selectedId = !empty($viewData['cateId']) ? $viewData['cateId'] : ''; |
|
|
|
|
$breadcrumbs = !empty($viewData['breadcrumbs']) ? $viewData['breadcrumbs'] : []; |
|
|
|
|
if (!empty($viewData['tags'])) { //显示tags分类 |
|
|
|
|
$tagLink = '/list/'; |
|
|
|
|
//多用户路径支持 |
|
|
|
|
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) { |
|
|
|
|
$tagLink = '/' . FSC::$app['user_id'] . '/list/'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
foreach($viewData['tags'] as $id => $item) { |
|
|
|
|
$selected = $item['id'] == $selectedId || (!empty($breadcrumbs) && $item['id'] == $breadcrumbs[0]['id']) ? 'this_set' : ''; |
|
|
|
|
echo <<<eof |
|
|
|
|
<a href="{$tagLink}?id={$item['id']}" class="{$selected}"> |
|
|
|
|
<a href="{$linkPrefix}/list/?id={$item['id']}" class="{$selected}"> |
|
|
|
|
<img src="/img/other.svg" alt="菜单图标" /> |
|
|
|
|
<span>{$item['name']}</span> |
|
|
|
|
</a> |
|
|
|
|