添加语言包切换
This commit is contained in:
parent
c0f7fe512f
commit
7495de7e09
@ -2,33 +2,60 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
//menu
|
//menu
|
||||||
'index' => 'index',
|
'index' => 'Index',
|
||||||
'home_page' => 'home page',
|
'home page' => 'Home page',
|
||||||
'user_center' => 'center',
|
'user center' => 'Center',
|
||||||
'set_info' => 'set info',
|
'set info' => 'Set info',
|
||||||
'my_message' => 'message',
|
'my message' => 'Message',
|
||||||
'my_page' => 'my page',
|
'my page' => 'My page',
|
||||||
|
|
||||||
'login' => 'login',
|
'login' => 'Login',
|
||||||
'logout' => 'logout',
|
'logout' => 'Logout',
|
||||||
'register' => 'register',
|
'register' => 'Register',
|
||||||
'discuss' => 'discuss',
|
'discuss' => 'Discuss',
|
||||||
'case' => 'case',
|
'case' => 'Case',
|
||||||
'timeline' => 'timeline',
|
'timeline' => 'Timeline',
|
||||||
|
|
||||||
//帖子
|
//帖子
|
||||||
'add_post' => 'add post',
|
'title color' => 'Title color',
|
||||||
'my_collection' => 'my collection',
|
'add_post' => 'Add post',
|
||||||
'all' => 'all',
|
'my collection' => 'My collection',
|
||||||
'over' => 'over',
|
'cancel collection' => 'cancel collection',
|
||||||
'hot' => 'hot',
|
'all' => 'All',
|
||||||
'top' => 'top',
|
'finished' => 'Finished',
|
||||||
'go_sign' => 'go sign',
|
'no finished' => 'no finished',
|
||||||
'more_post' => 'more post',
|
'hot' => 'Hot',
|
||||||
'friendly_link' => 'friendly link',
|
'top' => 'Top',
|
||||||
|
'cancel hoting' => 'Cancel hoting',
|
||||||
|
'cancel topping' => 'Cancel topping',
|
||||||
|
'go sign' => 'Go sign',
|
||||||
|
'more post' => 'more post',
|
||||||
|
'friendly link' => 'Friendly link',
|
||||||
|
'reviewers list' => 'Reviewers list',
|
||||||
|
'hot post list' => 'Hot post list',
|
||||||
|
'links list' => 'Links list',
|
||||||
|
'Sign in' => 'Sign in',
|
||||||
|
'statement' => 'Statement',
|
||||||
|
'trends' => 'Trends',
|
||||||
|
'sponsor' => 'Sponsor sponsor',
|
||||||
|
'i want to join' => 'i want to join',
|
||||||
|
'official products' => 'Official products',
|
||||||
|
'no comments' => 'No comments',
|
||||||
|
'submit comments' => 'Submit comments',
|
||||||
|
'reply' => 'reply',
|
||||||
|
'accept' => 'accept',
|
||||||
|
'please input the content' => 'please input the content',
|
||||||
|
'ads area' => 'Ads area',
|
||||||
|
'enclosure' => 'enclosure',
|
||||||
|
'download files' => 'Download files',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//message
|
//message
|
||||||
|
'add' => 'add',
|
||||||
|
'delete' => 'delete',
|
||||||
|
'edit' => 'edit',
|
||||||
'add success' => 'add success!',
|
'add success' => 'add success!',
|
||||||
'add error' => 'add error',
|
'add error' => 'add error',
|
||||||
'edit success' => 'articel edit success',
|
'edit success' => 'articel edit success',
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
return [
|
return [
|
||||||
//menu
|
//menu
|
||||||
'index' => 'index',
|
'index' => 'index',
|
||||||
'home_page' => '首页',
|
'home page' => '首页',
|
||||||
'user_center' => '用户中心',
|
'user center' => '用户中心',
|
||||||
'set_info' => '设置',
|
'set info' => '设置',
|
||||||
'my_message' => '我的消息',
|
'my message' => '我的消息',
|
||||||
'my_page' => '我的主页',
|
'my page' => '我的主页',
|
||||||
|
|
||||||
'login' => '登录',
|
'login' => '登录',
|
||||||
'logout' => '退出',
|
'logout' => '退出',
|
||||||
@ -17,21 +17,41 @@ return [
|
|||||||
'timeline' => '框架日志',
|
'timeline' => '框架日志',
|
||||||
|
|
||||||
//帖子
|
//帖子
|
||||||
|
'title color' => '颜色',
|
||||||
'add_post' => '添加帖子',
|
'add_post' => '添加帖子',
|
||||||
'my_collection' => '我的收藏',
|
'my collection' => '我的收藏',
|
||||||
|
'cancel collection' => '取消收藏',
|
||||||
'all' => '综合',
|
'all' => '综合',
|
||||||
'over' => '已结',
|
'finished' => '已结',
|
||||||
|
'no finished' => '未结',
|
||||||
'hot' => '热贴',
|
'hot' => '热贴',
|
||||||
'top' => '精贴',
|
'top' => '精贴',
|
||||||
'go_sign' => '去签到',
|
'cancel hoting' => '取消精贴',
|
||||||
'more_post' => '更多帖子',
|
'cancel topping' => '取消置顶',
|
||||||
'friendly_link' => '友情链接',
|
'go sign' => '去签到',
|
||||||
|
'more post' => '更多帖子',
|
||||||
|
'friendly link' => '友情链接',
|
||||||
|
'reviewers list' => '回帖热榜',
|
||||||
|
'hot post list' => '本周热议',
|
||||||
|
'links list' => '温馨通道',
|
||||||
|
'Sign in' => '签到',
|
||||||
|
'statement' => '说明',
|
||||||
|
'trends' => '动态',
|
||||||
|
'sponsor' => '钻级赞助商',
|
||||||
|
'i want to join' => '我要加入',
|
||||||
|
'official products' => '官方产品',
|
||||||
|
'no comments' => '暂时还没有评论',
|
||||||
|
'submit comments' => '提交评论',
|
||||||
|
'reply' => '回复',
|
||||||
|
'accept' => '采纳',
|
||||||
|
'please input the content' => '请输入内容',
|
||||||
|
'ads area' => '广告区',
|
||||||
|
'enclosure' => '附件',
|
||||||
|
'download files' => '下载文件',
|
||||||
|
|
||||||
|
|
||||||
'hello thinkphp' => '欢迎使用ThinkPHP',
|
'add' => '添加',
|
||||||
'data type error' => '数据类型错误',
|
'delete' => '删除',
|
||||||
'add success' => '添加成功!',
|
'add success' => '添加成功!',
|
||||||
'add error' => '添加失败',
|
'add error' => '添加失败',
|
||||||
'edit success' => '修改成功',
|
'edit success' => '修改成功',
|
||||||
|
@ -4,6 +4,8 @@ return [
|
|||||||
\app\middleware\LoginCookie::class,
|
\app\middleware\LoginCookie::class,
|
||||||
\app\middleware\Install::class,
|
\app\middleware\Install::class,
|
||||||
\app\middleware\Browse::class,
|
\app\middleware\Browse::class,
|
||||||
|
// 多语言加载
|
||||||
|
\think\middleware\LoadLangPack::class,
|
||||||
//app\middleware\LoginCheck::class,
|
//app\middleware\LoginCheck::class,
|
||||||
//app\middleware\CheckRegister::class,
|
//app\middleware\CheckRegister::class,
|
||||||
//'logedcheck' => \app\middleware\logedCheck::class,
|
//'logedcheck' => \app\middleware\logedCheck::class,
|
||||||
|
@ -850,12 +850,23 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function(
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//监听语音选择提交
|
||||||
|
form.on('select(language)', function(data){
|
||||||
|
var data = data.value;
|
||||||
|
$.post(langUrl,{language:data},function(result){
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
//固定Bar
|
//固定Bar
|
||||||
util.fixbar({
|
util.fixbar({
|
||||||
bar1: ''
|
bar1: ''
|
||||||
,bgcolor: '#009688'
|
,bgcolor: '#009688'
|
||||||
,click: function(type){
|
,click: function(type){
|
||||||
|
//添加文章
|
||||||
if(type === 'bar1'){
|
if(type === 'bar1'){
|
||||||
//slayer.msg('打开 index.js,开启发表新帖的路径');
|
//slayer.msg('打开 index.js,开启发表新帖的路径');
|
||||||
location.href = articleAdd;
|
location.href = articleAdd;
|
||||||
|
@ -35,14 +35,14 @@
|
|||||||
<span>{$art.create_time|date='Y-m-d'}</span>
|
<span>{$art.create_time|date='Y-m-d'}</span>
|
||||||
|
|
||||||
<span class="layui-hide-xs" title="人气"><i class="iconfont" title="人气"></i> {$art.pv}</span>
|
<span class="layui-hide-xs" title="人气"><i class="iconfont" title="人气"></i> {$art.pv}</span>
|
||||||
{if ($art.jie == 1)}<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>{/if}
|
{if ($art.jie == 1)}<span class="layui-badge fly-badge-accept layui-hide-xs">{:lang('finished')}</span>{/if}
|
||||||
<span class="fly-list-nums">
|
<span class="fly-list-nums">
|
||||||
<i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}
|
<i class="iconfont icon-pinglun1" title="回答"></i> {$art.comments_count}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-list-badge">
|
<div class="fly-list-badge">
|
||||||
{if ($art.is_top == 1)} <span class="layui-badge layui-bg-black" >置顶</span> {/if}
|
{if ($art.is_top == 1)} <span class="layui-badge layui-bg-black" >{:lang('top')}</span> {/if}
|
||||||
{if ($art.is_hot == 1)} <span class="layui-badge layui-bg-red">精帖</span> {/if}
|
{if ($art.is_hot == 1)} <span class="layui-badge layui-bg-red">{:lang('hot')}</span> {/if}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{/volist}
|
{/volist}
|
||||||
@ -54,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<dl class="fly-panel fly-list-one">
|
<dl class="fly-panel fly-list-one">
|
||||||
<dt class="fly-panel-title">本周热议</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||||
@ -64,8 +64,8 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">心级赞助商 <span style="padding: 0 3px;">-</span>
|
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
||||||
<a href="" class="fly-link fly-joinad ">我要加入</a>
|
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-panel-main">
|
<div class="fly-panel-main">
|
||||||
{volist name="ad_cate" id="vo"}
|
{volist name="ad_cate" id="vo"}
|
||||||
|
@ -16,35 +16,35 @@
|
|||||||
<!-- <span class="layui-badge">审核中</span> -->
|
<!-- <span class="layui-badge">审核中</span> -->
|
||||||
<span class="layui-badge layui-bg-green fly-detail-column">{$article.cate.catename}</span>
|
<span class="layui-badge layui-bg-green fly-detail-column">{$article.cate.catename}</span>
|
||||||
{if ($article.jie == 0)}
|
{if ($article.jie == 0)}
|
||||||
<span class="layui-badge" style="background-color: #999;">未结</span>
|
<span class="layui-badge" style="background-color: #999;">{:lang('no finished')}</span>
|
||||||
{else /}
|
{else /}
|
||||||
<span class="layui-badge" style="background-color: #5FB878;">已结</span>
|
<span class="layui-badge" style="background-color: #5FB878;">{:lang('finished')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
{if ($article.is_top == 1)}
|
{if ($article.is_top == 1)}
|
||||||
<span class="layui-badge layui-bg-black">置顶</span>
|
<span class="layui-badge layui-bg-black">{:lang('top')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
{if ($article.is_hot == 1)}
|
{if ($article.is_hot == 1)}
|
||||||
<span class="layui-badge layui-bg-red">精帖</span>
|
<span class="layui-badge layui-bg-red">{:lang('hot')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="fly-admin-box" data-id="{$article.id}">
|
<div class="fly-admin-box" data-id="{$article.id}">
|
||||||
{if ($user.auth ?? '')}
|
{if ($user.auth ?? '')}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="del">删除</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="del">{:lang('delete')}</span>
|
||||||
{if($article.is_top == 0)}
|
{if($article.is_top == 0)}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1">置顶</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1">{:lang('top')}</span>
|
||||||
{else /}
|
{else /}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" style="background-color:#ccc;">取消置顶</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" style="background-color:#ccc;">{:lang('cancel topping')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
{if($article.is_hot == 0)}
|
{if($article.is_hot == 0)}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1">加精</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1">{:lang('hot')}</span>
|
||||||
{else /}
|
{else /}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">取消加精</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">{:lang('cancel hoting')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
<span id="color">高亮</span>
|
<span id="color">{:lang('title color')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="fly-list-nums">
|
<span class="fly-list-nums">
|
||||||
<a href="#comment"><i class="iconfont" title="回答"></i> {$comments->count()} </a>
|
<a href="#comment"><i class="iconfont" title="{:lang('reply')}"></i> {$comments->count()} </a>
|
||||||
<i class="iconfont" title="人气"></i> {$pv}
|
<i class="iconfont" title="人气"></i> {$pv}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -66,26 +66,26 @@
|
|||||||
<div class="detail-hits" id="LAY_jieAdmin" data-id="{$article['id']}">
|
<div class="detail-hits" id="LAY_jieAdmin" data-id="{$article['id']}">
|
||||||
<!--span style="padding-right: 10px; color: #FF7200">悬赏:60飞吻</span-->
|
<!--span style="padding-right: 10px; color: #FF7200">悬赏:60飞吻</span-->
|
||||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">编辑此贴</a></span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-body photos">{$article.content|raw}</div>
|
<div class="detail-body photos">{$article.content|raw}</div>
|
||||||
{notempty name="$article.upzip"}
|
{notempty name="$article.upzip"}
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<label ">附件:</label>
|
<label ">{:lang('enclosure')}:</label>
|
||||||
<button type="button" class="layui-btn" id="zip-download"><i class="layui-icon layui-icon-download-circle"></i>下载文件</button>
|
<button type="button" class="layui-btn" id="zip-download"><i class="layui-icon layui-icon-download-circle"></i>{:lang('download files')}</button>
|
||||||
</div>
|
</div>
|
||||||
{/notempty}
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fly-panel detail-box" id="flyReply">
|
<div class="fly-panel detail-box" id="flyReply">
|
||||||
<fieldset class="layui-elem-field layui-field-title" style="text-align: center;">
|
<fieldset class="layui-elem-field layui-field-title" style="text-align: center;">
|
||||||
<legend>回帖</legend>
|
<legend>{:lang('reply')}</legend>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<ul class="jieda" id="jieda">
|
<ul class="jieda" id="jieda">
|
||||||
{volist name="comments" id="vo" empty="暂时还没有评论"}
|
{volist name="comments" id="vo" empty="lang('no comments')"}
|
||||||
<li data-id="{$vo.id}" class="jieda-daan">
|
<li data-id="{$vo.id}" class="jieda-daan">
|
||||||
<a name="item-1111111111"></a>
|
<a name="item-1111111111"></a>
|
||||||
<div class="detail-about detail-about-reply">
|
<div class="detail-about detail-about-reply">
|
||||||
@ -123,14 +123,14 @@
|
|||||||
<span class="jieda-zan {if($vo.zan != 0)}zanok{/if}" type="zan">
|
<span class="jieda-zan {if($vo.zan != 0)}zanok{/if}" type="zan">
|
||||||
<i class="iconfont icon-zan"></i><em>{$vo.zan}</em>
|
<i class="iconfont icon-zan"></i><em>{$vo.zan}</em>
|
||||||
</span>
|
</span>
|
||||||
<span type="reply"><i class="iconfont icon-svgmoban53"></i>回复</span>
|
<span type="reply"><i class="iconfont icon-svgmoban53"></i>{:lang('reply')}</span>
|
||||||
|
|
||||||
<div class="jieda-admin">
|
<div class="jieda-admin">
|
||||||
{if (session('user_id') == $vo.user.id) && (getLimtTime($vo.create_time) < 2) OR ($user.auth ?? '')}
|
{if (session('user_id') == $vo.user.id) && (getLimtTime($vo.create_time) < 2) OR ($user.auth ?? '')}
|
||||||
<span type="edit">编辑</span>
|
<span type="edit">{:lang('edit')}</span>
|
||||||
<span type="del">删除</span>
|
<span type="del">{:lang('delete')}</span>
|
||||||
{if $vo.cai == 0 && session('user_id') == $article.user_id /}
|
{if $vo.cai == 0 && session('user_id') == $article.user_id /}
|
||||||
<span class="jieda-accept" type="accept">采纳</span>
|
<span class="jieda-accept" type="accept">{:lang('accept')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@ -149,13 +149,13 @@
|
|||||||
<div class="layui-form-item layui-form-text">
|
<div class="layui-form-item layui-form-text">
|
||||||
<a name="comment"></a>
|
<a name="comment"></a>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<textarea id="L_content" name="content" required lay-verify="required" placeholder="请输入内容" class="layui-textarea fly-editor" style="height: 150px;"></textarea>
|
<textarea id="L_content" name="content" required lay-verify="required" placeholder="{:lang('please input the content')}" class="layui-textarea fly-editor" style="height: 150px;"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<input type="hidden" name="article_id" value="{$article.id}">
|
<input type="hidden" name="article_id" value="{$article.id}">
|
||||||
<input type="hidden" name="user_id" value="{:session('user_id')}">
|
<input type="hidden" name="user_id" value="{:session('user_id')}">
|
||||||
<button type="button" class="layui-btn" lay-filter="*" lay-submit id="recomment">提交回复</button>
|
<button type="button" class="layui-btn" lay-filter="*" lay-submit id="recomment">{:lang('submit comments')}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -166,7 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<dl class="fly-panel fly-list-one">
|
<dl class="fly-panel fly-list-one">
|
||||||
<dt class="fly-panel-title">本周热议</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||||
@ -181,8 +181,8 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">心级赞助商 <span style="padding: 0 3px;">-</span>
|
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
||||||
<a href="" class="fly-link fly-joinad ">我要加入</a>
|
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-panel-main">
|
<div class="fly-panel-main">
|
||||||
{volist name="ad_art" id="vo"}
|
{volist name="ad_art" id="vo"}
|
||||||
@ -192,9 +192,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">
|
<div class="fly-panel-title">{:lang('ads area')}</div>
|
||||||
这里可作为广告区域
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="fly-panel-main">
|
<div class="fly-panel-main">
|
||||||
<a href="" target="_blank" class="fly-zanzhu" time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">TaoLer 社区快速轻论坛</a>
|
<a href="" target="_blank" class="fly-zanzhu" time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">TaoLer 社区快速轻论坛</a>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title fly-filter">
|
<div class="fly-panel-title fly-filter">
|
||||||
<a>{:lang('top')}</a>
|
<a>{:lang('top')}</a>
|
||||||
<a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">{:lang('go_sign')}</a>
|
<a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;">{:lang('go sign')}</a>
|
||||||
</div>
|
</div>
|
||||||
<ul class="fly-list">
|
<ul class="fly-list">
|
||||||
{volist name="artTop" id="top" empty="还没有推荐"}
|
{volist name="artTop" id="top" empty="还没有推荐"}
|
||||||
@ -36,7 +36,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<div class="laypage-main">
|
<div class="laypage-main">
|
||||||
<a href="{:url('article/cate',['ename'=>'all'])}" class="laypage-next">{:lang('more_post')}</a>
|
<a href="{:url('article/cate',['ename'=>'all'])}" class="laypage-next">{:lang('more post')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -44,14 +44,14 @@
|
|||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<!--温馨通道-->
|
<!--温馨通道-->
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<h3 class="fly-panel-title">温馨通道</h3>
|
<h3 class="fly-panel-title">{:lang('links list')}</h3>
|
||||||
{include file="public/index-static" /}
|
{include file="public/index-static" /}
|
||||||
</div>
|
</div>
|
||||||
{include file="public/sign" /}
|
{include file="public/sign" /}
|
||||||
<!--广告赞助-->
|
<!--广告赞助-->
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">钻级赞助商<span class="fly-mid"></span>
|
<div class="fly-panel-title">{:lang('sponsor')}<span class="fly-mid"></span>
|
||||||
<a href="/" class="fly-link fly-joinad">我要加入</a>
|
<a href="/" class="fly-link fly-joinad">{:lang('i want to join')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-panel-main" style="padding: 13px 15px;">
|
<div class="fly-panel-main" style="padding: 13px 15px;">
|
||||||
{volist name="ad_index" id="vo"}
|
{volist name="ad_index" id="vo"}
|
||||||
@ -61,14 +61,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
|
<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
|
||||||
<h3 class="fly-panel-title">回贴周榜</h3>
|
<h3 class="fly-panel-title">{:lang('reviewers list')}</h3>
|
||||||
<dl>
|
<dl>
|
||||||
<i class="layui-icon fly-loading"></i>
|
<i class="layui-icon fly-loading"></i>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<dl class="fly-panel fly-list-one">
|
<dl class="fly-panel fly-list-one">
|
||||||
<dt class="fly-panel-title">本周热议</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||||
@ -78,9 +78,7 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">
|
<div class="fly-panel-title">{:lang('official products')}</div>
|
||||||
官方产品
|
|
||||||
</div>
|
|
||||||
<div class="fly-panel-main">
|
<div class="fly-panel-main">
|
||||||
<a href="http://www.aieok.com" target="_blank" class="fly-zanzhu" style="background-color: #5FB878;">TaoLer 1.0 - 旗舰之作</a>
|
<a href="http://www.aieok.com" target="_blank" class="fly-zanzhu" style="background-color: #5FB878;">TaoLer 1.0 - 旗舰之作</a>
|
||||||
</div>
|
</div>
|
||||||
@ -211,16 +209,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//监听语音选择提交
|
|
||||||
form.on('select(language)', function(data){
|
|
||||||
var data = data.value;
|
|
||||||
console.log(data);
|
|
||||||
$.post("{:url('index/select')}",{language:data},function(result){
|
|
||||||
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#friend-link').on('click', function(){
|
$('#friend-link').on('click', function(){
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="fly-panel-title fly-filter">
|
<div class="fly-panel-title fly-filter">
|
||||||
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all' ,'type' => ''])} " {if condition="$type eq ''" } class="layui-this" {/if} >{:lang('all')}</a>
|
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all' ,'type' => ''])} " {if condition="$type eq ''" } class="layui-this" {/if} >{:lang('all')}</a>
|
||||||
<span class="fly-mid"></span>
|
<span class="fly-mid"></span>
|
||||||
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('over')}</a>
|
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('finished')}</a>
|
||||||
<span class="fly-mid"></span>
|
<span class="fly-mid"></span>
|
||||||
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'top'])} " {if condition="$type eq 'top'" } class="layui-this" {/if} >{:lang('top')}</a>
|
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'top'])} " {if condition="$type eq 'top'" } class="layui-this" {/if} >{:lang('top')}</a>
|
||||||
<span class="fly-mid"></span>
|
<span class="fly-mid"></span>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="fly-panel fly-link html5plus-hide">
|
<div class="fly-panel fly-link html5plus-hide">
|
||||||
<h3 class="fly-panel-title">{:lang('friendly_link')}</h3>
|
<h3 class="fly-panel-title">{:lang('friendly link')}</h3>
|
||||||
<dl class="fly-panel-main">
|
<dl class="fly-panel-main">
|
||||||
{volist name="flinks" id="vo"}
|
{volist name="flinks" id="vo"}
|
||||||
<dd><a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a><dd>
|
<dd><a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a><dd>
|
||||||
|
@ -18,4 +18,6 @@ var messageNums = "{:url('index/Message/nums')}",
|
|||||||
websearch = "{:url('index/index/search')}",
|
websearch = "{:url('index/index/search')}",
|
||||||
textImgUpload = "{:url('index/article/textImgUpload')}",
|
textImgUpload = "{:url('index/article/textImgUpload')}",
|
||||||
searchUrl = "{:url('index/search')}";
|
searchUrl = "{:url('index/search')}";
|
||||||
|
langUrl = "{:url('index/select')}";
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{if session('?user_id')}
|
{if session('?user_id')}
|
||||||
{if($Request.action=='user')}
|
{if($Request.action=='user')}
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<a href="/">{:lang('home_page')}</a>
|
<a href="/">{:lang('home page')}</a>
|
||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
@ -31,11 +31,11 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<dl class="layui-nav-child">
|
<dl class="layui-nav-child">
|
||||||
<dd><a href="{:url('user/index')}"><i class="layui-icon"></i>{:lang('user_center')}</a></dd>
|
<dd><a href="{:url('user/index')}"><i class="layui-icon"></i>{:lang('user center')}</a></dd>
|
||||||
<dd><a href="{:url('user/set')}"><i class="layui-icon"></i>{:lang('set_info')}</a></dd>
|
<dd><a href="{:url('user/set')}"><i class="layui-icon"></i>{:lang('set info')}</a></dd>
|
||||||
<hr>
|
<hr>
|
||||||
<dd><a href="{:url('user/message')}"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>{:lang('my_message')}</a></dd>
|
<dd><a href="{:url('user/message')}"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>{:lang('my message')}</a></dd>
|
||||||
<dd><a href="{:url('user/home',['id'=>session('user_id')])}"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;"></i>{:lang('my_page')}</a></dd>
|
<dd><a href="{:url('user/home',['id'=>session('user_id')])}"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;"></i>{:lang('my page')}</a></dd>
|
||||||
<hr style="margin: 5px 0;">
|
<hr style="margin: 5px 0;">
|
||||||
<dd><a data-url="{:url('user/logout')}" location-url="{:url('index/index')}" href="javascript:void(0)" class="logi_logout" style="text-align: center;">{:lang('logout')}</a></dd>
|
<dd><a data-url="{:url('user/logout')}" location-url="{:url('index/index')}" href="javascript:void(0)" class="logi_logout" style="text-align: center;">{:lang('logout')}</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
@ -53,13 +53,13 @@
|
|||||||
<a href="{:url('login/reg')}">{:lang('register')}</a>
|
<a href="{:url('login/reg')}">{:lang('register')}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<form class="layui-form" style="width:100px;color:black;padding: 0;">
|
<div class="layui-form" style="width:98px;line-height:20px;color:black;padding: 0 2px;">
|
||||||
<select name="language" lay-filter="language" lay-verify="">
|
<select name="language" lay-filter="language" lay-verify="">
|
||||||
<option value="cn" selected>中文简体</option>
|
<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >中文简体</option>
|
||||||
<option value="tw" >中文繁体</option>
|
<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >中文繁体</option>
|
||||||
<option value="en" >英文</option>
|
<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >Englishi</option>
|
||||||
</select>
|
</select>
|
||||||
</form>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<!--li class="layui-nav-item layui-hide-xs">
|
<!--li class="layui-nav-item layui-hide-xs">
|
||||||
<a href="" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a>
|
<a href="" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
<div id="signin" class="fly-panel fly-signin fly-panel-border">
|
<div id="signin" class="fly-panel fly-signin fly-panel-border">
|
||||||
<div class="fly-panel-title">签到
|
<div class="fly-panel-title">{:lang('Sign in')}
|
||||||
<i class="fly-mid"></i>
|
<i class="fly-mid"></i>
|
||||||
<a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
|
<a href="javascript:;" class="fly-link" id="LAY_signinHelp">{:lang('statement')}</a>
|
||||||
<i class="fly-mid"></i>
|
<i class="fly-mid"></i>
|
||||||
<a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜<span class="layui-badge-dot"></span></a>
|
<a href="javascript:;" class="fly-link" id="LAY_signinTop">{:lang('trends')}<span class="layui-badge-dot"></span></a>
|
||||||
<span class="fly-signin-days"></span>
|
<span class="fly-signin-days"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-panel-main fly-signin-main">
|
<div class="fly-panel-main fly-signin-main">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user