作者 jinglong

删除无用文件

1 -{  
2 - "name": "模板全局配置",  
3 - "action": "public/Config",  
4 - "description": "模板全局配置文件",  
5 - "is_public": "1",  
6 - "order": 0.0,  
7 - "more": {  
8 - "vars": {  
9 - "enable_mobile": {  
10 - "title": "手机注册",  
11 - "value": "ThinkCMF",  
12 - "type": "select",  
13 - "value": 1,  
14 - "options": {  
15 - "1": "开启",  
16 - "0": "关闭"  
17 - },  
18 - "tip": ""  
19 - }  
20 - }  
21 - }  
22 -}  
1 -<br>  
2 -<!-- Footer ================================================== -->  
3 -<hr>  
4 -<div id="footer">  
5 - <hook name="footer_start"/>  
6 - <div class="links">  
7 - <links>  
8 - <a href="{$vo.url|default=''}" target="{$vo.target|default=''}">{$vo.name|default=''}</a>&nbsp;  
9 - </links>  
10 -  
11 - </div>  
12 - <p>  
13 - Made by <a href="http://www.thinkcmf.com" target="_blank">ThinkCMF</a>  
14 - Code licensed under the  
15 - <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow" target="_blank">Apache License v2.0</a>.  
16 - <br/>  
17 - Based on  
18 - <a href="http://getbootstrap.com/" target="_blank">Bootstrap</a>.  
19 - Icons from  
20 - <a href="http://fortawesome.github.com/Font-Awesome/" target="_blank">Font Awesome</a>  
21 - <br>  
22 - <notempty name="site_info.site_icp">  
23 - <a href="http://www.miitbeian.gov.cn/" target="_blank">{$site_info.site_icp}</a>  
24 - <else/>  
25 - 请在后台设置"网站信息"设置"ICP备"  
26 - </notempty>  
27 - <notempty name="site_info.site_gwa">  
28 - <img src="__TMPL__/public/assets/images/ghs.png">  
29 - <a href="http://beian.gov.cn/" target="_blank">{$site_info.site_gwa}</a>  
30 - <else/>  
31 - 请在后台设置"网站信息"设置"公网安备"  
32 - </notempty>  
33 -  
34 -  
35 - </p>  
36 -</div>  
37 -<div id="backtotop">  
38 - <i class="fa fa-arrow-circle-up"></i>  
39 -</div>  
1 -<php>  
2 - /*可以加多个方法哟!*/  
3 - if (!function_exists('_sp_helloworld')) {  
4 - function _sp_helloworld(){  
5 - echo "hello ThinkCMF!";  
6 - }  
7 - }  
8 -  
9 - if (!function_exists('_sp_helloworld2')) {  
10 - function _sp_helloworld2(){  
11 - echo "hello ThinkCMF2!";  
12 - }  
13 - }  
14 -  
15 - if (!function_exists('_sp_helloworld3')) {  
16 - function _sp_helloworld3(){  
17 - echo "hello ThinkCMF3!";  
18 - }  
19 - }  
20 -</php>  
1 -<taglib name="app\portal\taglib\Portal"/>  
2 -<include file="public@function"/>  
3 -<meta name="author" content="ThinkCMF">  
4 -<meta charset="utf-8">  
5 -<meta http-equiv="X-UA-Compatible" content="IE=edge">  
6 -<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">  
7 -  
8 -<!-- Set render engine for 360 browser -->  
9 -<meta name="renderer" content="webkit">  
10 -  
11 -<!-- No Baidu Siteapp-->  
12 -<meta http-equiv="Cache-Control" content="no-siteapp"/>  
13 -  
14 -<!-- HTML5 shim for IE8 support of HTML5 elements -->  
15 -<!--[if lt IE 9]>  
16 -<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>  
17 -<![endif]-->  
18 -<link rel="icon" href="__TMPL__/public/assets/images/favicon.png" type="image/png">  
19 -<link rel="shortcut icon" href="__TMPL__/public/assets/images/favicon.png" type="image/png">  
20 -<link href="__TMPL__/public/assets/simpleboot3/themes/simpleboot3/bootstrap.min.css" rel="stylesheet">  
21 -<link href="__TMPL__/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"  
22 - type="text/css">  
23 -<!--[if IE 7]>  
24 -<link rel="stylesheet" href="__TMPL__/public/assets/simpleboot3/font-awesome/4.4.0/css/font-awesome-ie7.min.css">  
25 -<![endif]-->  
26 -<link href="__TMPL__/public/assets/css/style.css" rel="stylesheet">  
27 -<style>  
28 - /*html{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);-webkit-filter: grayscale(1);}*/  
29 - #backtotop {  
30 - position: fixed;  
31 - bottom: 50px;  
32 - right: 20px;  
33 - display: none;  
34 - cursor: pointer;  
35 - font-size: 50px;  
36 - z-index: 9999;  
37 - }  
38 -  
39 - #backtotop:hover {  
40 - color: #333  
41 - }  
42 -  
43 - #main-menu-user li.user {  
44 - display: none  
45 - }  
46 -</style>  
47 -<script type="text/javascript">  
48 - //全局变量  
49 - var GV = {  
50 - ROOT: "__ROOT__/",  
51 - WEB_ROOT: "__WEB_ROOT__/",  
52 - JS_ROOT: "static/js/"  
53 - };  
54 -</script>  
55 -<script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>  
56 -<script src="__TMPL__/public/assets/js/jquery-migrate-1.2.1.js"></script>  
57 -<script src="__STATIC__/js/wind.js"></script>  
58 -  
1 -<nav class="navbar navbar-default navbar-fixed-top active">  
2 - <div class="container active">  
3 - <div class="navbar-header">  
4 - <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"  
5 - data-target="#bs-example-navbar-collapse-1" aria-expanded="false">  
6 - <span class="sr-only">Toggle navigation</span>  
7 - <span class="icon-bar"></span>  
8 - <span class="icon-bar"></span>  
9 - <span class="icon-bar"></span>  
10 - </button>  
11 - <a class="navbar-brand" href="__ROOT__/">{$theme_vars.company_name|default='ThinkCMF'}</a>  
12 - </div>  
13 -  
14 - <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">  
15 - <ul id="main-menu" class="nav navbar-nav">  
16 - <navigation nav-id="" root="" id="main-navigation" class="nav navbar-nav navbar-nav-custom"  
17 - max-level="0">  
18 - <navigationMenu>  
19 - <if condition="$level gt 1">  
20 - <li class="menu-item menu-item-level-{$level} levelgt1">  
21 - <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">  
22 - {$menu.name|default=''}  
23 - </a>  
24 - </li>  
25 - <else/>  
26 - <li class="menu-item menu-item-level-{$level}">  
27 - <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">  
28 - {$menu.name|default=''}  
29 - </a>  
30 - </li>  
31 - </if>  
32 - </navigationMenu>  
33 - <navigationFolder root="li"  
34 - class="dropdown dropdown-custom dropdown-custom-level-{$level}"  
35 - dropdown="ul"  
36 - dropdown-class="dropdown-menu dropdown-menu-level-{$level}">  
37 - <a href="#" class="dropdown-toggle dropdown-toggle-{$level}" data-toggle="dropdown">  
38 - {$menu.name|default=''}<span class="caret"></span>  
39 - </a>  
40 - </navigationFolder>  
41 - </navigation>  
42 - </ul>  
43 - <ul class="nav navbar-nav navbar-right" id="main-menu-user">  
44 - <!--  
45 - <li class="login">  
46 - <a class="dropdown-toggle notifactions" href="/index.php/user/notification/index"> <i  
47 - class="fa fa-envelope"></i> <span class="count">0</span></a>  
48 - </li>  
49 - -->  
50 - <li class="dropdown user login">  
51 - <a class="dropdown-toggle user" data-toggle="dropdown" href="#">  
52 - <php>$user=cmf_get_current_user();</php>  
53 - <if condition="empty($user['avatar'])">  
54 - <img src="__TMPL__/public/assets/images/headicon.png" class="headicon">  
55 - <else/>  
56 - <img src="{:cmf_get_user_avatar_url($user['avatar'])}" class="headicon" width="30"/>  
57 - </if>  
58 - <span class="user-nickname"></span><b class="caret"></b>  
59 - </a>  
60 - <ul class="dropdown-menu pull-right">  
61 - <li><a href="{:cmf_url('user/Profile/center')}"><i class="fa fa-home"></i> &nbsp;个人中心</a></li>  
62 - <li class="divider"></li>  
63 - <li><a href="{:cmf_url('user/Index/logout')}"><i class="fa fa-sign-out"></i> &nbsp;退出</a></li>  
64 - </ul>  
65 - </li>  
66 - <li class="dropdown user offline" style="display: list-item;">  
67 - <a class="dropdown-toggle user" data-toggle="dropdown" href="#">  
68 - <img src="__TMPL__/public/assets/images/headicon.png" class="headicon">  
69 - 登录<b class="caret"></b>  
70 - </a>  
71 - <ul class="dropdown-menu pull-right">  
72 - <li><a href="{:cmf_url('user/Login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a></li>  
73 - <li class="divider"></li>  
74 - <li><a href="{:cmf_url('user/Register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a></li>  
75 - </ul>  
76 - </li>  
77 - </ul>  
78 - <form class="navbar-form navbar-right" method="post" action="{:cmf_url('portal/Search/index')}">  
79 - <div class="form-group">  
80 - <input type="text" class="form-control" name="keyword" placeholder="Search"  
81 - value="{:input('param.keyword','')}">  
82 - </div>  
83 - <input type="submit" class="btn btn-primary" value="Go" style="margin:0"/>  
84 - </form>  
85 - </div>  
86 - </div>  
87 -</nav>  
1 -{  
2 - "name": "导航条",  
3 - "action": "public/Nav",  
4 - "description": "导航条模板文件",  
5 - "is_public": "1",  
6 - "order": 1.0,  
7 - "more": {  
8 - "vars": {  
9 - "company_name": {  
10 - "title": "公司名称",  
11 - "name": "company_name",  
12 - "value": "ThinkCMF",  
13 - "type": "text",  
14 - "tip": "",  
15 - "rule": []  
16 - }  
17 - }  
18 - }  
19 -}  
1 -<!-- Le javascript  
2 - ================================================== -->  
3 - <!-- Placed at the end of the document so the pages load faster -->  
4 - <script src="__TMPL__/public/assets/simpleboot3/bootstrap/js/bootstrap.min.js"></script>  
5 - <script src="__STATIC__/js/frontend.js"></script>  
6 - <script>  
7 - $(function(){  
8 - $("#main-menu li.dropdown").hover(function(){  
9 - $(this).addClass("open");  
10 - },function(){  
11 - $(this).removeClass("open");  
12 - });  
13 -  
14 - $("#main-menu a").each(function() {  
15 - if ($(this)[0].href == String(window.location)) {  
16 - $(this).parentsUntil("#main-menu>ul>li").addClass("active");  
17 - }  
18 - });  
19 -  
20 - $.post("{:url('user/index/isLogin')}",{},function(data){  
21 - if(data.code==1){  
22 - if(data.data.user.avatar){  
23 - }  
24 -  
25 - $("#main-menu-user span.user-nickname").text(data.data.user.user_nickname?data.data.user.user_nickname:data.data.user.user_login);  
26 - $("#main-menu-user li.login").show();  
27 - $("#main-menu-user li.offline").hide();  
28 -  
29 - }  
30 -  
31 - if(data.code==0){  
32 - $("#main-menu-user li.login").hide();  
33 - $("#main-menu-user li.offline").show();  
34 - }  
35 -  
36 - });  
37 -  
38 - ;(function($){  
39 - $.fn.totop=function(opt){  
40 - var scrolling=false;  
41 - return this.each(function(){  
42 - var $this=$(this);  
43 - $(window).scroll(function(){  
44 - if(!scrolling){  
45 - var sd=$(window).scrollTop();  
46 - if(sd>100){  
47 - $this.fadeIn();  
48 - }else{  
49 - $this.fadeOut();  
50 - }  
51 - }  
52 - });  
53 -  
54 - $this.click(function(){  
55 - scrolling=true;  
56 - $('html, body').animate({  
57 - scrollTop : 0  
58 - }, 500,function(){  
59 - scrolling=false;  
60 - $this.fadeOut();  
61 - });  
62 - });  
63 - });  
64 - };  
65 - })(jQuery);  
66 -  
67 - $("#backtotop").totop();  
68 -  
69 -  
70 - });  
71 - </script>  
72 -  
1 -<div class="list-group">  
2 - <a class="list-group-item" href="{:cmf_url('user/Profile/edit')}"><i class="fa fa-edit fa-fw"></i> 修改资料</a>  
3 - <a class="list-group-item" href="{:cmf_url('user/Profile/password')}"><i class="fa fa-lock fa-fw"></i> 修改密码</a>  
4 - <a class="list-group-item" href="{:cmf_url('user/Profile/avatar')}"><i class="fa fa-user fa-fw"></i> 编辑头像</a>  
5 - <a class="list-group-item" href="{:cmf_url('user/Profile/binding')}"><i class="fa fa-exchange fa-fw"></i> 绑定账号</a>  
6 - <a class="list-group-item" href="{:cmf_url('user/favorite/index')}"><i class="fa fa-star-o fa-fw"></i> 我的收藏</a>  
7 - <!--<a class="list-group-item" href="{:url('portal/article/myIndex')}"><i class="fa fa-file-text fa-fw"></i> 我的文章</a>-->  
8 - <!--<a class="list-group-item" href="{:url('chem/order/index')}"><i class="fa fa-list fa-fw"></i> 我的订单</a>-->  
9 - <a class="list-group-item" href="{:cmf_url('user/comment/index')}"><i class="fa fa-comments-o fa-fw"></i> 我的评论</a>  
10 -</div>