Browse Source

add tags in right sidebar for mobile

master
filesite 7 months ago
parent
commit
fb6b976bca
  1. 25
      themes/tajian/views/layout/main.php
  2. 1
      www/css/tajian.css

25
themes/tajian/views/layout/main.php

@ -3,9 +3,11 @@ @@ -3,9 +3,11 @@
require_once __DIR__ . '/../../../../plugins/Html.php';
$linkPrefix = '';
$menuIcon = '/img/contactUs.svg';
//多用户路径支持
if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['user_id'])) {
$linkPrefix = '/' . FSC::$app['user_id'];
$menuIcon = '/img/beauty/navshow.svg';
}
?><!DocType html>
<html>
@ -36,7 +38,8 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use @@ -36,7 +38,8 @@ if (!empty(FSC::$app['config']['multipleUserUriParse']) && !empty(FSC::$app['use
</div>
<div class="right_class_tn">
<a class="search_move_tn search_mob_JS visible_movi_xs hide" href="javascript:;" title="搜索"><img src="/img/search.svg" alt="图片" /></a>
<a class="connect_me_tn connectmeJS" href="javascript:;" title="联系我们"><img src="/img/contactUs.svg" alt="联系我们" /></a>
<a class="connect_me_tn hidden-xs connectmeJS" href="javascript:;" title="联系我们"><img src="/img/contactUs.svg" alt="联系我们"></a>
<a class="connect_me_tn visible_movi_xs connectmeJS" href="javascript:;" title="我的分类"><img src="/img/beauty/navshow.svg" alt="展开分类菜单"></a>
</div>
</header>
@ -86,14 +89,30 @@ if (!empty($viewFile) && file_exists($viewFile)) { @@ -86,14 +89,30 @@ if (!empty($viewFile) && file_exists($viewFile)) {
<div class="blank_cover elementNone blank_coverJS rtcloseJS"></div>
<div class="right_sidebox right_sideboxJS elementNone">
<h5>
<span>联系我们</span>
<span class="hidden-xs">联系我们</span>
<span class="visible_movi_xs">我的分类</span>
<a class="rtcloseJS" href="javascript:;">
<img class="icon svgimg verMiddle" src="/img/clos.svg" alt="关闭" title="关闭" />
</a>
</h5>
<div class="modal-body markdown-body">
<div class="modal-body markdown-body hidden-xs">
<?php echo !empty($viewData['htmlReadme']) ? $viewData['htmlReadme'] : ''; ?>
</div>
<div class="modal-body g_ls_menus visible_movi_xs">
<?php
if (!empty($viewData['tags'])) { //显示tags分类
foreach($viewData['tags'] as $id => $item) {
$selected = $item['id'] == $selectedId || (!empty($breadcrumbs) && $item['id'] == $breadcrumbs[0]['id']) ? 'this_set' : '';
echo <<<eof
<a href="{$linkPrefix}/list/?id={$item['id']}" class="{$selected}">
<img src="/img/other.svg" alt="菜单图标" />
<span>{$item['name']}</span>
</a>
eof;
}
}
?>
</div>
</div>
<!-- 移动端搜索框 -->

1
www/css/tajian.css

@ -100,6 +100,7 @@ a:link{text-decoration:none;} @@ -100,6 +100,7 @@ a:link{text-decoration:none;}
.right_sidebox .sort1{font-size:16px;font-weight:bold;margin-top:10px;}
.right_sidebox p{margin:5px 0;}
.right_sidebox .codeimg{width:48%;}
.right_sidebox .g_ls_menus{width:100%}
.sideboxShow{animation:bounceInRight 0.5s ease forwards;}
/* 添加视频 */

Loading…
Cancel
Save