🎨 支持自定义盒子布局背景

pull/78/head
ruibaby 2019-01-04 18:03:10 +08:00
parent badf9adfd8
commit da923f3469
4 changed files with 25 additions and 7 deletions

View File

@ -83,7 +83,7 @@
<div class="input-group">
<input type="text" class="form-control selectData" id="blogLogo" name="blog_logo" value="${options.blog_logo!}">
<span class="input-group-btn">
<button class="btn btn-default " type="button" onclick="halo.layerModal('/admin/attachments/select?id=blogLogo','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
<button class="btn btn-default btn-flat" type="button" onclick="halo.layerModal('/admin/attachments/select?id=blogLogo','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
</span>
</div>
</div>
@ -94,7 +94,7 @@
<div class="input-group">
<input type="text" class="form-control selectData" id="blogFavicon" name="blog_favicon" value="${options.blog_favicon!}">
<span class="input-group-btn">
<button class="btn btn-default " type="button" onclick="halo.layerModal('/admin/attachments/select?id=blogFavicon','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
<button class="btn btn-default btn-flat" type="button" onclick="halo.layerModal('/admin/attachments/select?id=blogFavicon','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
</span>
</div>
</div>
@ -145,7 +145,7 @@
<div class="input-group">
<input type="text" class="form-control" id="baiduToken" name="seo_baidu_token" value="${options.seo_baidu_token!}">
<span class="input-group-btn">
<button class="btn btn-default " id="btn_push_baidu" onclick="pushAllToBaidu()" type="button"><@spring.message code='admin.setting.form.baidu-token-btn-push' /></button>
<button class="btn btn-default btn-flat" id="btn_push_baidu" onclick="pushAllToBaidu()" type="button"><@spring.message code='admin.setting.form.baidu-token-btn-push' /></button>
</span>
</div>
</div>
@ -207,7 +207,7 @@
<div class="input-group">
<input type="number" class="form-control" id="postSummary" name="post_summary" value="${options.post_summary!'50'}">
<span class="input-group-btn">
<button class="btn btn-default " id="btn_update_summary" onclick="updateAllSummary()" type="button"><@spring.message code='admin.setting.form.post-summary-btn-update' /></button>
<button class="btn btn-default btn-flat" id="btn_update_summary" onclick="updateAllSummary()" type="button"><@spring.message code='admin.setting.form.post-summary-btn-update' /></button>
</span>
</div>
</div>
@ -504,6 +504,17 @@
</div>
</div>
</div>
<div class="form-group">
<label for="adminLayoutBoxedBackground" class="col-lg-2 col-sm-4 control-label">盒子布局背景:</label>
<div class="col-lg-4 col-sm-8">
<div class="input-group">
<input type="text" class="form-control selectData" id="adminLayoutBoxedBackground" name="admin_layout_boxed_background" value="${options.admin_layout_boxed_background!}">
<span class="input-group-btn">
<button class="btn btn-default btn-flat" type="button" onclick="halo.layerModal('/admin/attachments/select?id=adminLayoutBoxedBackground','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="adminTheme" class="col-lg-2 col-sm-4 control-label"><@spring.message code='admin.setting.form.admin-theme' /></label>
<div class="col-lg-4 col-sm-8">
@ -625,7 +636,7 @@
<div class="input-group">
<input type="text" class="form-control" id="apiToken" name="api_token" value="${options.api_token!}">
<span class="input-group-btn">
<button class="btn btn-default " id="btnUpdateToken" onclick="updateToken()" type="button"><@spring.message code='admin.setting.form.btn-update-token' /></button>
<button class="btn btn-default btn-flat" id="btnUpdateToken" onclick="updateToken()" type="button"><@spring.message code='admin.setting.form.btn-update-token' /></button>
</span>
</div>
</div>

View File

@ -58,7 +58,7 @@
<div class="input-group">
<input type="text" class="form-control" id="galleryUrl" name="galleryUrl">
<span class="input-group-btn">
<button class="btn btn-default " type="button" onclick="halo.layerModal('/admin/attachments/select?id=galleryUrl','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
<button class="btn btn-default btn-flat" type="button" onclick="halo.layerModal('/admin/attachments/select?id=galleryUrl','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
</span>
</div>
</div>

View File

@ -67,7 +67,7 @@
<div class="input-group">
<input type="text" class="form-control" id="userAvatar" name="userAvatar" value="${user.userAvatar!}">
<span class="input-group-btn">
<button class="btn btn-default " type="button" onclick="halo.layerModal('/admin/attachments/select?id=userAvatar','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
<button class="btn btn-default btn-flat" type="button" onclick="halo.layerModal('/admin/attachments/select?id=userAvatar','<@spring.message code="common.js.all-attachment" />')"><@spring.message code='common.btn.choose' /></button>
</span>
</div>
</div>

View File

@ -22,6 +22,13 @@
<script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<#if options.admin_layout_boxed_background??>
<style>
.layout-boxed {
background: url(${options.admin_layout_boxed_background!}) repeat fixed!important;
}
</style>
</#if>
</head>
<body class="hold-transition sidebar-mini ${options.admin_theme!'skin-blue'} ${options.admin_layout!''} ${options.sidebar_style!''}">
<div class="wrapper">