added option of Google Fonts CDN
This commit is contained in:
parent
79e49201ab
commit
e220018413
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-03-19 14:34:21
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-04-03 11:00:02
|
||||
* @Last Modified time: 2016-04-03 11:27:05
|
||||
*/
|
||||
require "../libraries/session.inc.php";
|
||||
if (!$user->is_admin) Utils::redirect('../index.php?msg=看起来你并不是管理员');
|
||||
@ -96,6 +96,38 @@ $db = new Database\Database('users');
|
||||
<div id="msg" class="callout callout-info hide"></div>
|
||||
</div>
|
||||
</div><!-- /.box -->
|
||||
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Google Font CDN</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<form method="post" action="customize.php">
|
||||
<input type="hidden" name="option" value="adapter">
|
||||
<div class="box-body">
|
||||
<?php
|
||||
if (isset($_POST['google_font_cdn'])) {
|
||||
Option::set('google_font_cdn', $_POST['google_font_cdn']);
|
||||
echo '<div class="callout callout-success">设置已保存。</div>';
|
||||
} ?>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="value">
|
||||
<select class="form-control" name="google_font_cdn">
|
||||
<option <?php echo (Option::get('google_font_cdn') == 'google') ? 'selected="selected"' : ''; ?> value="google">Google Fonts(部分地区被墙)</option>
|
||||
<option <?php echo (Option::get('google_font_cdn') == 'moefont') ? 'selected="selected"' : ''; ?> value="moefont">MoeFont CDN</option>
|
||||
<option <?php echo (Option::get('google_font_cdn') == 'useso') ? 'selected="selected"' : ''; ?> value="useso">三六蛋 CDN(不支持 HTTPS)</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<button type="submit" name="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-03-18 22:50:25
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-04-03 10:17:18
|
||||
* @Last Modified time: 2016-04-03 11:12:00
|
||||
*/
|
||||
require "../libraries/session.inc.php";
|
||||
if (!$user->is_admin) Utils::redirect('../index.php?msg=看起来你并不是管理员');
|
||||
@ -85,7 +85,7 @@ $db = new Database\Database('users');
|
||||
<tr>
|
||||
<td class="key">首选 JSON API</td>
|
||||
<td class="value">
|
||||
<select class="form-control" name="api_type">selected="selected"
|
||||
<select class="form-control" name="api_type">
|
||||
<option <?php echo (Option::get('api_type') == '0') ? 'selected="selected"' : ''; ?> value="0">CustomSkinLoader API</option>
|
||||
<option <?php echo (Option::get('api_type') == '1') ? 'selected="selected"' : ''; ?> value="1">UniversalSkinAPI</option>
|
||||
</select>
|
||||
|
@ -2,10 +2,9 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-02-04 16:47:54
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-03-27 10:38:36
|
||||
* @Last Modified time: 2016-04-03 11:21:29
|
||||
*/
|
||||
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu);
|
||||
body, .ply-layer {
|
||||
font-family: Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
|
||||
}
|
||||
|
@ -2,10 +2,10 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-03-12 18:54:09
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-03-27 14:47:19
|
||||
* @Last Modified time: 2016-04-03 11:14:36
|
||||
*/
|
||||
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu);
|
||||
@import url(https://cdn.moefont.com/fonts/css?family=Ubuntu);
|
||||
@import url(https://work.prinzeugen.net/font/Minecraft.css);
|
||||
|
||||
html {
|
||||
|
@ -2,11 +2,9 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-21 07:57:38
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-03-27 11:57:33
|
||||
* @Last Modified time: 2016-04-03 11:21:35
|
||||
*/
|
||||
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu);
|
||||
|
||||
@font-face {
|
||||
font-family: 'Minecraft';
|
||||
src: url('../fonts/minecraft.eot');
|
||||
|
@ -2,10 +2,9 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-21 19:12:06
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-03-27 09:40:30
|
||||
* @Last Modified time: 2016-04-03 11:21:24
|
||||
*/
|
||||
|
||||
@import url(https://fonts.googleapis.com/css?family=Ubuntu);
|
||||
body, .ply-layer {
|
||||
font-family: Ubuntu, 'Segoe UI', 'Microsoft Yahei', 'Microsoft Jhenghei', sans-serif;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic);/*!
|
||||
/*!
|
||||
* AdminLTE v2.3.0
|
||||
* Author: Almsaeed Studio
|
||||
* Website: Almsaeed Studio <http://almsaeedstudio.com>
|
||||
|
11
index.php
11
index.php
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-17 13:55:20
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-04-03 10:53:41
|
||||
* @Last Modified time: 2016-04-03 11:21:56
|
||||
*/
|
||||
session_start();
|
||||
$dir = dirname(__FILE__);
|
||||
@ -34,6 +34,15 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
|
||||
<link rel="stylesheet" href="./assets/libs/remodal/remodal.css">
|
||||
<link rel="stylesheet" href="./assets/libs/ply/ply.css">
|
||||
<link rel="stylesheet" href="./assets/libs/remodal/remodal-default-theme.css">
|
||||
|
||||
<?php if (Option::get('google_font_cdn') == "google"): ?>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu">
|
||||
<?php elseif (Option::get('google_font_cdn') == "moefont"): ?>
|
||||
<link rel="stylesheet" href="https://cdn.moefont.com/fonts/css?family=Ubuntu">
|
||||
<?php elseif (Option::get('google_font_cdn') == "useso"): ?>
|
||||
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Ubuntu">
|
||||
<?php endif; ?>
|
||||
|
||||
<style>
|
||||
.home-menu-bg, .container {
|
||||
background-image: url("<?php echo Option::get('home_pic_url'); ?>");
|
||||
|
@ -12,6 +12,18 @@
|
||||
<link rel="stylesheet" href="../assets/libs/AdminLTE/dist/css/skins/<?php echo Option::get('color_scheme'); ?>.min.css">
|
||||
<link rel="stylesheet" href="../assets/libs/ply/ply.css">
|
||||
<link rel="stylesheet" href="../assets/css/admin.style.css">
|
||||
|
||||
<?php if (Option::get('google_font_cdn') == "google"): ?>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php elseif (Option::get('google_font_cdn') == "moefont"): ?>
|
||||
<link rel="stylesheet" href="https://cdn.moefont.com/fonts/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="https://cdn.moefont.com/fonts/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php elseif (Option::get('google_font_cdn') == "useso"): ?>
|
||||
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($data['style'])) echo $data['style']; ?>
|
||||
<style><?php echo Option::get('custom_css'); ?></style>
|
||||
</head>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<title>出现错误 - Blessing Skin Server</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu">
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.moefont.com/fonts/css?family=Ubuntu">
|
||||
<link rel="stylesheet" type="text/css" href="https://work.prinzeugen.net/font/Minecraft.css">
|
||||
</head>
|
||||
|
||||
|
@ -10,6 +10,18 @@
|
||||
<link rel="stylesheet" href="../assets/libs/font-awesome/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="../assets/libs/AdminLTE/dist/css/AdminLTE.min.css">
|
||||
<link rel="stylesheet" href="../assets/libs/AdminLTE/dist/css/skins/<?php echo Option::get('color_scheme'); ?>.min.css">
|
||||
|
||||
<?php if (Option::get('google_font_cdn') == "google"): ?>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php elseif (Option::get('google_font_cdn') == "moefont"): ?>
|
||||
<link rel="stylesheet" href="https://cdn.moefont.com/fonts/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="https://cdn.moefont.com/fonts/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php elseif (Option::get('google_font_cdn') == "useso"): ?>
|
||||
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Ubuntu">
|
||||
<link rel="stylesheet" href="http://fonts.useso.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
<?php endif; ?>
|
||||
|
||||
<link rel="stylesheet" href="../assets/libs/ply/ply.css">
|
||||
<?php if (isset($data['style'])) echo $data['style']; ?>
|
||||
<style><?php echo Option::get('custom_css'); ?></style>
|
||||
|
Loading…
Reference in New Issue
Block a user