作者 jinglong

删除无用文件

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