2021-11-02 15:40:58 +08:00
|
|
|
<div class="layui-panel site-menu layui-hide-md">
|
2021-05-14 17:57:15 +08:00
|
|
|
<ul class="layui-menu layui-menu-lg">
|
2021-12-15 15:46:04 +08:00
|
|
|
<li class="search" style="padding-left:5px;padding-top:2px;padding-right:5px;">
|
2022-08-02 20:47:28 +08:00
|
|
|
<form action="{$Request.domain}{:url('index/search',['keywords'=>$Request.param.keywords])}">
|
2021-12-15 15:46:04 +08:00
|
|
|
<input type="search" name="keywords" value="" aria-label="Search text" placeholder="搜索" class="layui-input">
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-07-22 10:43:48 +08:00
|
|
|
{if session('?user_id')}
|
2021-12-15 15:46:04 +08:00
|
|
|
<li class="layui-nav-item" style="padding-left:25px;">
|
|
|
|
<a class="fly-nav-avatar" href="javascript:;">
|
2022-08-02 20:47:28 +08:00
|
|
|
<img src="{$Request.domain}{$user['user_img']}" >
|
2021-12-15 15:46:04 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-07-22 10:43:48 +08:00
|
|
|
{else /}
|
2021-12-15 15:46:04 +08:00
|
|
|
<li class="layui-nav-item" style="padding-left:25px;">
|
|
|
|
<a class="iconfont icon-touxiang" href="{:url('login/index')}"></a>
|
|
|
|
<a href="{:url('login/index')}"> {:lang('login')} </a>
|
|
|
|
<a href="{:url('login/reg')}"> {:lang('register')} </a>
|
|
|
|
</li>
|
|
|
|
<li class="layui-nav-item" style="padding-left:25px;">
|
|
|
|
<select name="language" style="width:100px;" lay-filter="language1" lay-verify="" id="language1">
|
|
|
|
<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >{:lang('chinese')}</option>
|
|
|
|
<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >{:lang('tChinese')}</option>
|
|
|
|
<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >{:lang('english')}</option>
|
|
|
|
</select>
|
|
|
|
</li>
|
2021-07-22 10:43:48 +08:00
|
|
|
{/if}
|
|
|
|
|
2021-05-14 17:57:15 +08:00
|
|
|
<li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
|
|
|
|
<div class="layui-menu-body-title">
|
|
|
|
社区分类
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<ul>
|
2021-07-22 10:50:56 +08:00
|
|
|
{volist name="cateList" id="cate"}
|
|
|
|
<li {if condition="$cate.ename eq $Request.param.ename"} class="layui-this" {/if}>
|
2021-05-14 17:57:15 +08:00
|
|
|
<div class="layui-menu-body-title">
|
2022-08-02 20:47:28 +08:00
|
|
|
<a href="{$Request.domain}{:url('cate',['ename' => $cate.ename])}"><i class="layui-icon {$cate.icon}"></i> {:cookie('think_lang') == 'en-us' ? $cate.ename : $cate.catename}
|
2021-07-22 10:50:56 +08:00
|
|
|
<span class="layui-font-12 layui-font-gray">>> {$cate.ename}</span>
|
2021-05-14 17:57:15 +08:00
|
|
|
{if condition="$cate.is_hot eq 1"}<span class="layui-badge-dot"></span>{/if}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{/volist}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
|
2021-07-22 13:04:54 +08:00
|
|
|
<div class="layui-menu-body-title">菜单</div>
|
2021-05-14 17:57:15 +08:00
|
|
|
<hr>
|
|
|
|
<ul>
|
2021-12-15 15:46:04 +08:00
|
|
|
{volist name="headlinks" id="vo"}
|
2021-07-22 13:04:54 +08:00
|
|
|
<li class="">
|
|
|
|
<div class="layui-menu-body-title">
|
2022-08-02 20:47:28 +08:00
|
|
|
<a href="{$Request.domain}{$vo.slid_href}"><i class="layui-icon {$vo.slid_img}"></i><span> {$vo.slid_name} </span></a>
|
2021-07-22 13:04:54 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
2021-12-15 15:46:04 +08:00
|
|
|
{/volist}
|
2021-05-14 17:57:15 +08:00
|
|
|
<li class="">
|
|
|
|
<div class="layui-menu-body-title">
|
|
|
|
<a href="/">
|
2021-07-22 13:04:54 +08:00
|
|
|
<i class="layui-icon layui-icon-home" style="color: #009688;"></i><span> 回首页</span>
|
2021-05-14 17:57:15 +08:00
|
|
|
<span class="layui-font-12 layui-font-gray">index</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2021-11-02 15:40:58 +08:00
|
|
|
|
2021-07-22 10:48:06 +08:00
|
|
|
<!--
|
2021-05-14 17:57:15 +08:00
|
|
|
<div class="site-tree-mobile layui-hide">
|
|
|
|
<i class="layui-icon layui-icon-spread-left"></i>
|
|
|
|
</div>
|
|
|
|
<div class="site-mobile-shade"></div>
|
2021-07-22 10:48:06 +08:00
|
|
|
-->
|
2021-05-14 17:57:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
|