加入百度联盟代码
This commit is contained in:
parent
78155a8861
commit
eefbdf0dd6
|
@ -7,20 +7,28 @@
|
||||||
<?php echo $site['title']; ?> -
|
<?php echo $site['title']; ?> -
|
||||||
<?php echo $site['subtitle']; ?>
|
<?php echo $site['subtitle']; ?>
|
||||||
</title>
|
</title>
|
||||||
<link rel="shortcut icon" href="https://obsidian-img-use.oss-cn-beijing.aliyuncs.com/browser-img/qnloft-blog-favicon.png">
|
<link rel="shortcut icon"
|
||||||
|
href="https://obsidian-img-use.oss-cn-beijing.aliyuncs.com/browser-img/qnloft-blog-favicon.png">
|
||||||
<meta name="keywords" content="<?php echo $site['keywords']; ?>" />
|
<meta name="keywords" content="<?php echo $site['keywords']; ?>" />
|
||||||
<meta name="description" content="<?php echo $site['description']; ?>" />
|
<meta name="description" content="<?php echo $site['description']; ?>" />
|
||||||
<link rel="stylesheet" id="block-library-css" href="templates/qnloft/assets/css/block-library.min-5.6.2.css" type="text/css" media="all" />
|
<link rel="stylesheet" id="block-library-css" href="templates/qnloft/assets/css/block-library.min-5.6.2.css"
|
||||||
|
type="text/css" media="all" />
|
||||||
<!-- 网站右侧底部,图标按钮 -->
|
<!-- 网站右侧底部,图标按钮 -->
|
||||||
<link rel="stylesheet" id="iconfont-css" href="templates/qnloft/assets/css/iconfont-3.03029.1.css" type="text/css" media="all" />
|
<link rel="stylesheet" id="iconfont-css" href="templates/qnloft/assets/css/iconfont-3.03029.1.css" type="text/css"
|
||||||
|
media="all" />
|
||||||
<!-- bootstrap -->
|
<!-- bootstrap -->
|
||||||
<link rel="stylesheet" id="bootstrap-css" href="static/bootstrap4/css/bootstrap.min.css" type="text/css" media="all" />
|
<link rel="stylesheet" id="bootstrap-css" href="static/bootstrap4/css/bootstrap.min.css" type="text/css"
|
||||||
<link rel="stylesheet" id="fancybox-css" href="templates/qnloft/assets/css/fancybox.min-3.5.7.css" type="text/css" media="all" />
|
media="all" />
|
||||||
|
<link rel="stylesheet" id="fancybox-css" href="templates/qnloft/assets/css/fancybox.min-3.5.7.css" type="text/css"
|
||||||
|
media="all" />
|
||||||
<!-- 这两个就是整个网站自定义的css样式了 -->
|
<!-- 这两个就是整个网站自定义的css样式了 -->
|
||||||
<link rel="stylesheet" id="iowen-css" href="templates/qnloft/assets/css/style-3.03029.1.css" type="text/css" media="all" />
|
<link rel="stylesheet" id="iowen-css" href="templates/qnloft/assets/css/style-3.03029.1.css" type="text/css"
|
||||||
<link rel="stylesheet" id="custom-css" href="templates/qnloft/assets/css/custom-style.css" type="text/css" media="all" />
|
media="all" />
|
||||||
|
<link rel="stylesheet" id="custom-css" href="templates/qnloft/assets/css/custom-style.css" type="text/css"
|
||||||
|
media="all" />
|
||||||
<!-- 图标 CSS -->
|
<!-- 图标 CSS -->
|
||||||
<link rel="stylesheet" id="fortawesome-css" href="static/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" />
|
<link rel="stylesheet" id="fortawesome-css" href="static/font-awesome/4.7.0/css/font-awesome.min.css"
|
||||||
|
type="text/css" />
|
||||||
<script type="text/javascript" src="static/js/jquery.min.js" id="jquery-js"></script>
|
<script type="text/javascript" src="static/js/jquery.min.js" id="jquery-js"></script>
|
||||||
<script type="text/javascript" src="templates/qnloft/assets/js/content-search.js" id="content-search-js"></script>
|
<script type="text/javascript" src="templates/qnloft/assets/js/content-search.js" id="content-search-js"></script>
|
||||||
|
|
||||||
|
@ -28,9 +36,9 @@
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
! function(p) {
|
! function (p) {
|
||||||
"use strict";
|
"use strict";
|
||||||
! function(t) {
|
! function (t) {
|
||||||
var s = window,
|
var s = window,
|
||||||
e = document,
|
e = document,
|
||||||
i = p,
|
i = p,
|
||||||
|
@ -38,7 +46,7 @@
|
||||||
n = e.createElement("script"),
|
n = e.createElement("script"),
|
||||||
r = e.getElementsByTagName("script")[0];
|
r = e.getElementsByTagName("script")[0];
|
||||||
n.type = "text/javascript", n.setAttribute("charset", "UTF-8"), n.async = !0, n.src = c, n.id = "LA_COLLECT", i.d = n;
|
n.type = "text/javascript", n.setAttribute("charset", "UTF-8"), n.async = !0, n.src = c, n.id = "LA_COLLECT", i.d = n;
|
||||||
var o = function() {
|
var o = function () {
|
||||||
s.LA.ids.push(i)
|
s.LA.ids.push(i)
|
||||||
};
|
};
|
||||||
s.LA ? s.LA.ids && o() : (s.LA = p, s.LA.ids = [], o()), r.parentNode.insertBefore(n, r)
|
s.LA ? s.LA.ids && o() : (s.LA = p, s.LA.ids = [], o()), r.parentNode.insertBefore(n, r)
|
||||||
|
@ -67,6 +75,17 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<!-- start 百度联盟代码 -->
|
||||||
|
<script>
|
||||||
|
var _hmt = _hmt || [];
|
||||||
|
(function () {
|
||||||
|
var hm = document.createElement("script");
|
||||||
|
hm.src = "https://hm.baidu.com/hm.js?95a38204151626463116aeb610ddae54";
|
||||||
|
var s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(hm, s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- end 百度联盟代码 -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="io-grey-mode">
|
<body class="io-grey-mode">
|
||||||
|
@ -136,16 +155,20 @@
|
||||||
<div class="logo overflow-hidden">
|
<div class="logo overflow-hidden">
|
||||||
<a href="" class="logo-expanded">
|
<a href="" class="logo-expanded">
|
||||||
<?php if (empty($site['logo'])) { ?>
|
<?php if (empty($site['logo'])) { ?>
|
||||||
<img src="https://blog.qnloft.com/upload/logo.png" height="40" class="logo-light" alt="青柠炸机街">
|
<img src="https://blog.qnloft.com/upload/logo.png" height="40" class="logo-light"
|
||||||
<img src="https://blog.qnloft.com/upload/logo.png" height="40" class="logo-dark d-none" alt="青柠炸机街">
|
alt="青柠炸机街">
|
||||||
|
<img src="https://blog.qnloft.com/upload/logo.png" height="40" class="logo-dark d-none"
|
||||||
|
alt="青柠炸机街">
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<img src="<?php echo $site['logo']; ?>" height="40" class="logo-light" alt="青柠炸机街">
|
<img src="<?php echo $site['logo']; ?>" height="40" class="logo-light" alt="青柠炸机街">
|
||||||
<img src="<?php echo $site['logo']; ?>" height="40" class="logo-dark d-none" alt="青柠炸机街">
|
<img src="<?php echo $site['logo']; ?>" height="40" class="logo-dark d-none" alt="青柠炸机街">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="" class="logo-collapsed">
|
<a href="" class="logo-collapsed">
|
||||||
<img src="templates/qnloft/assets/images/logos/qnLogo.png" height="40" class="logo-light" alt="青柠炸机街">
|
<img src="templates/qnloft/assets/images/logos/qnLogo.png" height="40" class="logo-light"
|
||||||
<img src="templates/qnloft/assets/images/logos/qnLogo_dark.png" height="40" class="logo-dark d-none" alt="青柠炸机街">
|
alt="青柠炸机街">
|
||||||
|
<img src="templates/qnloft/assets/images/logos/qnLogo_dark.png" height="40"
|
||||||
|
class="logo-dark d-none" alt="青柠炸机街">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -156,10 +179,10 @@
|
||||||
<div class="sidebar-menu-inner">
|
<div class="sidebar-menu-inner">
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ($category_parent as $f_category) { //遍历 一级 分类目录并显示
|
<?php foreach ($category_parent as $f_category) { //遍历 一级 分类目录并显示
|
||||||
//var_dump($f_category);
|
//var_dump($f_category);
|
||||||
$font_icon = empty($f_category['font_icon']) ? '' : "{$f_category['font_icon']}";
|
$font_icon = empty($f_category['font_icon']) ? '' : "{$f_category['font_icon']}";
|
||||||
$child_categorys = get_category_sub($f_category['id']);
|
$child_categorys = get_category_sub($f_category['id']);
|
||||||
?>
|
?>
|
||||||
<li class="sidebar-item">
|
<li class="sidebar-item">
|
||||||
<a href="#category-<?php echo $f_category['id']; ?>" class="smooth">
|
<a href="#category-<?php echo $f_category['id']; ?>" class="smooth">
|
||||||
<i class="far <?php echo $font_icon; ?> fa-lg icon-fw icon-lg mr-2"></i>
|
<i class="far <?php echo $font_icon; ?> fa-lg icon-fw icon-lg mr-2"></i>
|
||||||
|
@ -251,10 +274,12 @@
|
||||||
|
|
||||||
<ul class="nav navbar-menu text-xs order-1 order-md-2">
|
<ul class="nav navbar-menu text-xs order-1 order-md-2">
|
||||||
<li class="nav-search ml-3 ml-md-4">
|
<li class="nav-search ml-3 ml-md-4">
|
||||||
<a href="javascript:" data-toggle="modal" data-target="#search-modal"><i class="iconfont icon-search icon-2x"></i></a>
|
<a href="javascript:" data-toggle="modal" data-target="#search-modal"><i
|
||||||
|
class="iconfont icon-search icon-2x"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item d-md-none mobile-menu ml-3 ml-md-4">
|
<li class="nav-item d-md-none mobile-menu ml-3 ml-md-4">
|
||||||
<a href="javascript:" id="sidebar-switch" data-toggle="modal" data-target="#sidebar"><i class="iconfont icon-classification icon-2x"></i></a>
|
<a href="javascript:" id="sidebar-switch" data-toggle="modal"
|
||||||
|
data-target="#sidebar"><i class="iconfont icon-classification icon-2x"></i></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -281,124 +306,159 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="https://www.baidu.com?s=" method="get" target="_blank" class="super-search-fm">
|
<form action="https://www.baidu.com?s=" method="get" target="_blank" class="super-search-fm">
|
||||||
<input type="text" id="search-text" class="form-control smart-tips search-key" zhannei="" placeholder="输入关键字搜索" style="outline:0" autocomplete="off">
|
<input type="text" id="search-text" class="form-control smart-tips search-key" zhannei=""
|
||||||
|
placeholder="输入关键字搜索" style="outline:0" autocomplete="off">
|
||||||
<button class="submit" type="submit"><i class="iconfont icon-search"></i></button>
|
<button class="submit" type="submit"><i class="iconfont icon-search"></i></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div id="search-list" class="hide-type-list">
|
<div id="search-list" class="hide-type-list">
|
||||||
<div class="search-group group-a">
|
<div class="search-group group-a">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" checked="checked" id="type-baidu" value="https://www.baidu.com/s?wd=" data-placeholder="百度一下,你就知道">
|
<li><input hidden="" type="radio" name="type" checked="checked" id="type-baidu"
|
||||||
|
value="https://www.baidu.com/s?wd=" data-placeholder="百度一下,你就知道">
|
||||||
<label for="type-baidu"><span class="text-muted">百度</span></label>
|
<label for="type-baidu"><span class="text-muted">百度</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-bing" value="https://cn.bing.com/search?q=" data-placeholder="微软 Bing 搜索">
|
<li><input hidden="" type="radio" name="type" id="type-bing"
|
||||||
|
value="https://cn.bing.com/search?q=" data-placeholder="微软 Bing 搜索">
|
||||||
<label for="type-bing"><span class="text-muted">必应</span></label>
|
<label for="type-bing"><span class="text-muted">必应</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-google" value="https://www.google.com/search?q=" data-placeholder="谷歌搜索">
|
<li><input hidden="" type="radio" name="type" id="type-google"
|
||||||
|
value="https://www.google.com/search?q=" data-placeholder="谷歌搜索">
|
||||||
<label for="type-google"><span class="text-muted">谷歌</span></label>
|
<label for="type-google"><span class="text-muted">谷歌</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-anaconda" value="https://anaconda.org/search?q=" data-placeholder="Anaconda 软件搜索">
|
<li><input hidden="" type="radio" name="type" id="type-anaconda"
|
||||||
|
value="https://anaconda.org/search?q=" data-placeholder="Anaconda 软件搜索">
|
||||||
<label for="type-anaconda"><span class="text-muted">软件</span></label>
|
<label for="type-anaconda"><span class="text-muted">软件</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-pubmed" value="https://pubmed.ncbi.nlm.nih.gov/?term=" data-placeholder="PubMed 搜索/文章标题/关键字">
|
<li><input hidden="" type="radio" name="type" id="type-pubmed"
|
||||||
|
value="https://pubmed.ncbi.nlm.nih.gov/?term="
|
||||||
|
data-placeholder="PubMed 搜索/文章标题/关键字">
|
||||||
<label for="type-pubmed"><span class="text-muted">文献</span></label>
|
<label for="type-pubmed"><span class="text-muted">文献</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-group group-b">
|
<div class="search-group group-b">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" id="type-baidu1" value="https://www.baidu.com/s?wd=" data-placeholder="百度一下,你就知道">
|
<li><input hidden="" type="radio" name="type" id="type-baidu1"
|
||||||
|
value="https://www.baidu.com/s?wd=" data-placeholder="百度一下,你就知道">
|
||||||
<label for="type-baidu1"><span class="text-muted">百度</span></label>
|
<label for="type-baidu1"><span class="text-muted">百度</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-google1" value="https://www.google.com/search?q=" data-placeholder="谷歌搜索">
|
<li><input hidden="" type="radio" name="type" id="type-google1"
|
||||||
|
value="https://www.google.com/search?q=" data-placeholder="谷歌搜索">
|
||||||
<label for="type-google1"><span class="text-muted">谷歌</span></label>
|
<label for="type-google1"><span class="text-muted">谷歌</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-360" value="https://www.so.com/s?q=" data-placeholder="360 好搜">
|
<li><input hidden="" type="radio" name="type" id="type-360"
|
||||||
|
value="https://www.so.com/s?q=" data-placeholder="360 好搜">
|
||||||
<label for="type-360"><span class="text-muted">360</span></label>
|
<label for="type-360"><span class="text-muted">360</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-sogo" value="https://www.sogou.com/web?query=" data-placeholder="搜狗搜索">
|
<li><input hidden="" type="radio" name="type" id="type-sogo"
|
||||||
|
value="https://www.sogou.com/web?query=" data-placeholder="搜狗搜索">
|
||||||
<label for="type-sogo"><span class="text-muted">搜狗</span></label>
|
<label for="type-sogo"><span class="text-muted">搜狗</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-bing1" value="https://cn.bing.com/search?q=" data-placeholder="微软 Bing 搜索">
|
<li><input hidden="" type="radio" name="type" id="type-bing1"
|
||||||
|
value="https://cn.bing.com/search?q=" data-placeholder="微软 Bing 搜索">
|
||||||
<label for="type-bing1"><span class="text-muted">必应</span></label>
|
<label for="type-bing1"><span class="text-muted">必应</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-sm" value="https://yz.m.sm.cn/s?q=" data-placeholder="UC 移动端搜索">
|
<li><input hidden="" type="radio" name="type" id="type-sm"
|
||||||
|
value="https://yz.m.sm.cn/s?q=" data-placeholder="UC 移动端搜索">
|
||||||
<label for="type-sm"><span class="text-muted">神马</span></label>
|
<label for="type-sm"><span class="text-muted">神马</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-group group-c">
|
<div class="search-group group-c">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" id="type-br" value="https://rank.chinaz.com/all/" data-placeholder="请输入网址(不带 https://)">
|
<li><input hidden="" type="radio" name="type" id="type-br"
|
||||||
|
value="https://rank.chinaz.com/all/" data-placeholder="请输入网址(不带 https://)">
|
||||||
<label for="type-br"><span class="text-muted">权重查询</span></label>
|
<label for="type-br"><span class="text-muted">权重查询</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-links" value="https://link.chinaz.com/" data-placeholder="请输入网址(不带 https://)">
|
<li><input hidden="" type="radio" name="type" id="type-links"
|
||||||
|
value="https://link.chinaz.com/" data-placeholder="请输入网址(不带 https://)">
|
||||||
<label for="type-links"><span class="text-muted">友链检测</span></label>
|
<label for="type-links"><span class="text-muted">友链检测</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-whois" value="https://who.is/whois/" data-placeholder="请输入网址(不带 https://)">
|
<li><input hidden="" type="radio" name="type" id="type-whois"
|
||||||
|
value="https://who.is/whois/" data-placeholder="请输入网址(不带 https://)">
|
||||||
<label for="type-whois"><span class="text-muted">域名信息查询</span></label>
|
<label for="type-whois"><span class="text-muted">域名信息查询</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-ping" value="https://ping.chinaz.com/" data-placeholder="请输入网址(不带 https://)">
|
<li><input hidden="" type="radio" name="type" id="type-ping"
|
||||||
|
value="https://ping.chinaz.com/" data-placeholder="请输入网址(不带 https://)">
|
||||||
<label for="type-ping"><span class="text-muted">PING 检测</span></label>
|
<label for="type-ping"><span class="text-muted">PING 检测</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-404" value="https://tool.chinaz.com/Links/?DAddress=" data-placeholder="请输入网址(不带https://)">
|
<li><input hidden="" type="radio" name="type" id="type-404"
|
||||||
|
value="https://tool.chinaz.com/Links/?DAddress="
|
||||||
|
data-placeholder="请输入网址(不带https://)">
|
||||||
<label for="type-404"><span class="text-muted">死链检测</span></label>
|
<label for="type-404"><span class="text-muted">死链检测</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-ciku" value="https://www.ciku5.com/s?wd=" data-placeholder="请输入关键词">
|
<li><input hidden="" type="radio" name="type" id="type-ciku"
|
||||||
|
value="https://www.ciku5.com/s?wd=" data-placeholder="请输入关键词">
|
||||||
<label for="type-ciku"><span class="text-muted">关键词挖掘</span></label>
|
<label for="type-ciku"><span class="text-muted">关键词挖掘</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-group group-d">
|
<div class="search-group group-d">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" id="type-zhihu" value="https://www.zhihu.com/search?type=content&q=" data-placeholder="知乎">
|
<li><input hidden="" type="radio" name="type" id="type-zhihu"
|
||||||
|
value="https://www.zhihu.com/search?type=content&q=" data-placeholder="知乎">
|
||||||
<label for="type-zhihu"><span class="text-muted">知乎</span></label>
|
<label for="type-zhihu"><span class="text-muted">知乎</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-wechat" value="https://weixin.sogou.com/weixin?type=2&query=" data-placeholder="微信">
|
<li><input hidden="" type="radio" name="type" id="type-wechat"
|
||||||
|
value="https://weixin.sogou.com/weixin?type=2&query=" data-placeholder="微信">
|
||||||
<label for="type-wechat"><span class="text-muted">微信</span></label>
|
<label for="type-wechat"><span class="text-muted">微信</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-weibo" value="https://s.weibo.com/weibo/" data-placeholder="微博">
|
<li><input hidden="" type="radio" name="type" id="type-weibo"
|
||||||
|
value="https://s.weibo.com/weibo/" data-placeholder="微博">
|
||||||
<label for="type-weibo"><span class="text-muted">微博</span></label>
|
<label for="type-weibo"><span class="text-muted">微博</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-douban" value="https://www.douban.com/search?q=" data-placeholder="豆瓣">
|
<li><input hidden="" type="radio" name="type" id="type-douban"
|
||||||
|
value="https://www.douban.com/search?q=" data-placeholder="豆瓣">
|
||||||
<label for="type-douban"><span class="text-muted">豆瓣</span></label>
|
<label for="type-douban"><span class="text-muted">豆瓣</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-group group-e">
|
<div class="search-group group-e">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" id="type-taobao1" value="https://s.taobao.com/search?q=" data-placeholder="淘宝">
|
<li><input hidden="" type="radio" name="type" id="type-taobao1"
|
||||||
|
value="https://s.taobao.com/search?q=" data-placeholder="淘宝">
|
||||||
<label for="type-taobao1"><span class="text-muted">淘宝</span></label>
|
<label for="type-taobao1"><span class="text-muted">淘宝</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-jd" value="https://search.jd.com/Search?keyword=" data-placeholder="京东">
|
<li><input hidden="" type="radio" name="type" id="type-jd"
|
||||||
|
value="https://search.jd.com/Search?keyword=" data-placeholder="京东">
|
||||||
<label for="type-jd"><span class="text-muted">京东</span></label>
|
<label for="type-jd"><span class="text-muted">京东</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-xiachufang" value="https://www.xiachufang.com/search/?keyword=" data-placeholder="下厨房">
|
<li><input hidden="" type="radio" name="type" id="type-xiachufang"
|
||||||
|
value="https://www.xiachufang.com/search/?keyword=" data-placeholder="下厨房">
|
||||||
<label for="type-xiachufang"><span class="text-muted">下厨房</span></label>
|
<label for="type-xiachufang"><span class="text-muted">下厨房</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-xiangha" value="https://www.xiangha.com/so/?q=caipu&s=" data-placeholder="香哈菜谱">
|
<li><input hidden="" type="radio" name="type" id="type-xiangha"
|
||||||
|
value="https://www.xiangha.com/so/?q=caipu&s=" data-placeholder="香哈菜谱">
|
||||||
<label for="type-xiangha"><span class="text-muted">香哈菜谱</span></label>
|
<label for="type-xiangha"><span class="text-muted">香哈菜谱</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-12306" value="https://www.12306.cn/?" data-placeholder="12306">
|
<li><input hidden="" type="radio" name="type" id="type-12306"
|
||||||
|
value="https://www.12306.cn/?" data-placeholder="12306">
|
||||||
<label for="type-12306"><span class="text-muted">12306</span></label>
|
<label for="type-12306"><span class="text-muted">12306</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-qunar" value="https://www.qunar.com/?" data-placeholder="去哪儿">
|
<li><input hidden="" type="radio" name="type" id="type-qunar"
|
||||||
|
value="https://www.qunar.com/?" data-placeholder="去哪儿">
|
||||||
<label for="type-qunar"><span class="text-muted">去哪儿</span></label>
|
<label for="type-qunar"><span class="text-muted">去哪儿</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-group group-f">
|
<div class="search-group group-f">
|
||||||
<ul class="search-type">
|
<ul class="search-type">
|
||||||
<li><input hidden="" type="radio" name="type" id="type-zhaopin" value="https://sou.zhaopin.com/jobs/searchresult.ashx?kw=" data-placeholder="智联招聘">
|
<li><input hidden="" type="radio" name="type" id="type-zhaopin"
|
||||||
|
value="https://sou.zhaopin.com/jobs/searchresult.ashx?kw="
|
||||||
|
data-placeholder="智联招聘">
|
||||||
<label for="zhaopin"><span class="text-muted">智联招聘</span></label>
|
<label for="zhaopin"><span class="text-muted">智联招聘</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-51job" value="https://search.51job.com/?" data-placeholder="前程无忧">
|
<li><input hidden="" type="radio" name="type" id="type-51job"
|
||||||
|
value="https://search.51job.com/?" data-placeholder="前程无忧">
|
||||||
<label for="type-51job"><span class="text-muted">前程无忧</span></label>
|
<label for="type-51job"><span class="text-muted">前程无忧</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-lagou" value="https://www.lagou.com/jobs/list_" data-placeholder="拉钩网">
|
<li><input hidden="" type="radio" name="type" id="type-lagou"
|
||||||
|
value="https://www.lagou.com/jobs/list_" data-placeholder="拉钩网">
|
||||||
<label for="type-lagou"><span class="text-muted">拉钩网</span></label>
|
<label for="type-lagou"><span class="text-muted">拉钩网</span></label>
|
||||||
</li>
|
</li>
|
||||||
<li><input hidden="" type="radio" name="type" id="type-liepin" value="https://www.liepin.com/zhaopin/?key=" data-placeholder="猎聘网">
|
<li><input hidden="" type="radio" name="type" id="type-liepin"
|
||||||
|
value="https://www.liepin.com/zhaopin/?key=" data-placeholder="猎聘网">
|
||||||
<label for="type-liepin"><span class="text-muted">猎聘网</span></label>
|
<label for="type-liepin"><span class="text-muted">猎聘网</span></label>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -430,11 +490,12 @@
|
||||||
$fid = $f_category['id'];
|
$fid = $f_category['id'];
|
||||||
$links = get_links($fid);
|
$links = get_links($fid);
|
||||||
$font_icon = empty($f_category['font_icon']) ? '' : "<i class='{$f_category['font_icon']}' id = 'category-$fid'></i> ";
|
$font_icon = empty($f_category['font_icon']) ? '' : "<i class='{$f_category['font_icon']}' id = 'category-$fid'></i> ";
|
||||||
?>
|
?>
|
||||||
<div class="d-flex flex-fill">
|
<div class="d-flex flex-fill">
|
||||||
<h4 class="text-gray text-lg mb-4">
|
<h4 class="text-gray text-lg mb-4">
|
||||||
<?php if ($font_icon == '') { ?>
|
<?php if ($font_icon == '') { ?>
|
||||||
<i class="site-tag iconfont icon-tag icon-lg mr-1" id="category-<?php echo $f_category['id']; ?>"></i>
|
<i class="site-tag iconfont icon-tag icon-lg mr-1"
|
||||||
|
id="category-<?php echo $f_category['id']; ?>"></i>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo $font_icon ?>
|
<?php echo $font_icon ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -449,17 +510,24 @@
|
||||||
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
|
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
|
||||||
$webIcon = extractHost($link['url']);
|
$webIcon = extractHost($link['url']);
|
||||||
// var_dump("https://api.iowen.cn/favicon/" + $webIcon + ".png");
|
// var_dump("https://api.iowen.cn/favicon/" + $webIcon + ".png");
|
||||||
?>
|
?>
|
||||||
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a">
|
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a">
|
||||||
<div class="url-body default">
|
<div class="url-body default">
|
||||||
<a href="<?php echo $link['url']; ?>" target="_blank" data-id="" data-url="<?php echo $link['url']; ?>" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="<?php echo $link['description']; ?>">
|
<a href="<?php echo $link['url']; ?>" target="_blank" data-id=""
|
||||||
|
data-url="<?php echo $link['url']; ?>" class="card no-c mb-4" data-toggle="tooltip"
|
||||||
|
data-placement="bottom" data-original-title="<?php echo $link['description']; ?>">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="url-content d-flex align-items-center">
|
<div class="url-content d-flex align-items-center">
|
||||||
<div class="url-img mr-2 d-flex align-items-center justify-content-center">
|
<div class="url-img mr-2 d-flex align-items-center justify-content-center">
|
||||||
<?php if ($font_icon == '') { ?>
|
<?php if ($font_icon == '') { ?>
|
||||||
<img class="lazy" src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png" data-src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png" onerror="javascript:this.src='templates/qnloft/assets/images/logos/default.webp'" alt="<?php echo $link['title']; ?>">
|
<img class="lazy"
|
||||||
<?php } else { ?>
|
src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png"
|
||||||
<img class="lazy" src="<?php echo $font_icon ?>" data-src="<?php echo $font_icon ?>" alt="<?php echo $link['title']; ?>">
|
data-src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png"
|
||||||
|
onerror="javascript:this.src='templates/qnloft/assets/images/logos/default.webp'"
|
||||||
|
alt="<?php echo $link['title']; ?>">
|
||||||
|
<?php } else { ?>
|
||||||
|
<img class="lazy" src="<?php echo $font_icon ?>"
|
||||||
|
data-src="<?php echo $font_icon ?>" alt="<?php echo $link['title']; ?>">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="url-info flex-fill">
|
<div class="url-info flex-fill">
|
||||||
|
@ -475,23 +543,25 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo $link['url']; ?>" class="togo text-center text-muted is-views" data-id="689" data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow">
|
<a href="<?php echo $link['url']; ?>" class="togo text-center text-muted is-views"
|
||||||
|
data-id="689" data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow">
|
||||||
<i class="iconfont icon-goto"></i>
|
<i class="iconfont icon-goto"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } else {
|
<?php } else {
|
||||||
foreach ($child_categorys as $c_category) {
|
foreach ($child_categorys as $c_category) {
|
||||||
$fid = $c_category['id'];
|
$fid = $c_category['id'];
|
||||||
$c_links = get_links($fid);
|
$c_links = get_links($fid);
|
||||||
$font_icon = empty($c_category['font_icon']) ? '' : "<i class='{$c_category['font_icon']}'></i> ";
|
$font_icon = empty($c_category['font_icon']) ? '' : "<i class='{$c_category['font_icon']}'></i> ";
|
||||||
?>
|
?>
|
||||||
<!-- 遍历 二级节点 -->
|
<!-- 遍历 二级节点 -->
|
||||||
<div class="d-flex flex-fill">
|
<div class="d-flex flex-fill">
|
||||||
<h4 class="text-gray text-lg mb-4">
|
<h4 class="text-gray text-lg mb-4">
|
||||||
<i class="site-tag iconfont icon-tag icon-lg mr-1" id="category-<?php echo $c_category['id']; ?>"></i>
|
<i class="site-tag iconfont icon-tag icon-lg mr-1"
|
||||||
|
id="category-<?php echo $c_category['id']; ?>"></i>
|
||||||
<?php echo htmlspecialchars_decode($c_category['name']); ?>
|
<?php echo htmlspecialchars_decode($c_category['name']); ?>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
@ -503,14 +573,20 @@
|
||||||
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
|
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
|
||||||
$webIcon = extractHost($link['url']);
|
$webIcon = extractHost($link['url']);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a">
|
<div class="url-card col-6 col-sm-6 col-md-4 col-xl-5a col-xxl-6a">
|
||||||
<div class="url-body default">
|
<div class="url-body default">
|
||||||
<a href="<?php echo $link['url']; ?>" target="_blank" data-id="" data-url="<?php echo $link['url']; ?>" class="card no-c mb-4" data-toggle="tooltip" data-placement="bottom" data-original-title="<?php echo $link['description']; ?>">
|
<a href="<?php echo $link['url']; ?>" target="_blank" data-id=""
|
||||||
|
data-url="<?php echo $link['url']; ?>" class="card no-c mb-4" data-toggle="tooltip"
|
||||||
|
data-placement="bottom" data-original-title="<?php echo $link['description']; ?>">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="url-content d-flex align-items-center">
|
<div class="url-content d-flex align-items-center">
|
||||||
<div class="url-img mr-2 d-flex align-items-center justify-content-center">
|
<div class="url-img mr-2 d-flex align-items-center justify-content-center">
|
||||||
<img class="lazy" src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png" data-src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png" onerror="javascript:this.src='templates/qnloft/assets/images/logos/default.webp'" alt="<?php echo $link['title']; ?>">
|
<img class="lazy"
|
||||||
|
src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png"
|
||||||
|
data-src="https://api.iowen.cn/favicon/<?php echo $webIcon ?>.png"
|
||||||
|
onerror="javascript:this.src='templates/qnloft/assets/images/logos/default.webp'"
|
||||||
|
alt="<?php echo $link['title']; ?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="url-info flex-fill">
|
<div class="url-info flex-fill">
|
||||||
<div class="text-sm overflowClip_1">
|
<div class="text-sm overflowClip_1">
|
||||||
|
@ -525,7 +601,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo $link['url']; ?>" class="togo text-center text-muted is-views" data-id="689" data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow">
|
<a href="<?php echo $link['url']; ?>" class="togo text-center text-muted is-views"
|
||||||
|
data-id="689" data-toggle="tooltip" data-placement="right" title="直达" rel="nofollow">
|
||||||
<i class="iconfont icon-goto"></i>
|
<i class="iconfont icon-goto"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -546,12 +623,15 @@
|
||||||
<i class="iconfont icon-to-up"></i>
|
<i class="iconfont icon-to-up"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="javascript:" data-toggle="modal" data-target="#search-modal" class="btn rounded-circle m-1" rel="search" one-link-mark="yes">
|
<a href="javascript:" data-toggle="modal" data-target="#search-modal" class="btn rounded-circle m-1"
|
||||||
|
rel="search" one-link-mark="yes">
|
||||||
<i class="iconfont icon-search"></i>
|
<i class="iconfont icon-search"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
<a href="javascript:" onclick="window.location.href='javascript:switchNightMode()'" class="btn rounded-circle switch-dark-mode m-1" id="yejian" data-toggle="tooltip" data-placement="left" title="日间模式">
|
<a href="javascript:" onclick="window.location.href='javascript:switchNightMode()'"
|
||||||
|
class="btn rounded-circle switch-dark-mode m-1" id="yejian" data-toggle="tooltip"
|
||||||
|
data-placement="left" title="日间模式">
|
||||||
<i class="mode-ico iconfont icon-night"></i>
|
<i class="mode-ico iconfont icon-night"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -559,7 +639,9 @@
|
||||||
<div class="footer-inner">
|
<div class="footer-inner">
|
||||||
<div class="footer-text">
|
<div class="footer-text">
|
||||||
<?php if (empty($site['custom_footer'])) { ?>
|
<?php if (empty($site['custom_footer'])) { ?>
|
||||||
© 2024 Powered by <a target="_blank" href="https://qnloft.com" title="青柠Loft导航/青柠导航" rel="nofollow">青柠Loft</a>.The author is <a href="https://blog.qnloft.com/" target="_blank" title="青柠博客">青柠炸机店</a>
|
© 2024 Powered by <a target="_blank" href="https://qnloft.com" title="青柠Loft导航/青柠导航"
|
||||||
|
rel="nofollow">青柠Loft</a>.The author is <a href="https://blog.qnloft.com/" target="_blank"
|
||||||
|
title="青柠博客">青柠炸机店</a>
|
||||||
<a href="https://beian.miit.gov.cn/" target="_blank">京ICP备14044161号-4</a>
|
<a href="https://beian.miit.gov.cn/" target="_blank">京ICP备14044161号-4</a>
|
||||||
<?php } else {
|
<?php } else {
|
||||||
echo $site['custom_footer'];
|
echo $site['custom_footer'];
|
||||||
|
@ -571,7 +653,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/jquery.ui.touch-punch.min-0.2.2.js' id='jqueryui-touch-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/jquery.ui.touch-punch.min-0.2.2.js'
|
||||||
|
id='jqueryui-touch-js'></script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/clipboard.min-5.6.2.js' id='clipboard-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/clipboard.min-5.6.2.js' id='clipboard-js'></script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/tooltip-extend.js' id='iplaycode-nav-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/tooltip-extend.js' id='iplaycode-nav-js'></script>
|
||||||
<script type='text/javascript' id='popper-js-extra'>
|
<script type='text/javascript' id='popper-js-extra'>
|
||||||
|
@ -597,24 +680,25 @@
|
||||||
</script>
|
</script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/popper.min.js' id='popper-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/popper.min.js' id='popper-js'></script>
|
||||||
<script type='text/javascript' src='static/bootstrap4/js/bootstrap.min.js' id='bootstrap-js'></script>
|
<script type='text/javascript' src='static/bootstrap4/js/bootstrap.min.js' id='bootstrap-js'></script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/theia-sticky-sidebar-1.5.0.js' id='sidebar-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/theia-sticky-sidebar-1.5.0.js'
|
||||||
|
id='sidebar-js'></script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/lazyload.min-12.4.0.js' id='lazyload-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/lazyload.min-12.4.0.js' id='lazyload-js'></script>
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/fancybox.min-3.5.7.js' id='lightbox-js-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/fancybox.min-3.5.7.js' id='lightbox-js-js'></script>
|
||||||
|
|
||||||
<script type='text/javascript' src='templates/qnloft/assets/js/app-anim.js' id='appanim-js'></script>
|
<script type='text/javascript' src='templates/qnloft/assets/js/app-anim.js' id='appanim-js'></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
var siteWelcome = $('#loading');
|
var siteWelcome = $('#loading');
|
||||||
siteWelcome.addClass('close');
|
siteWelcome.addClass('close');
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
siteWelcome.remove();
|
siteWelcome.remove();
|
||||||
}, 600);
|
}, 600);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
setTimeout(function() {
|
setTimeout(function () {
|
||||||
if ($('a.smooth[href="' + window.location.hash + '"]')[0]) {
|
if ($('a.smooth[href="' + window.location.hash + '"]')[0]) {
|
||||||
$('a.smooth[href="' + window.location.hash + '"]').click();
|
$('a.smooth[href="' + window.location.hash + '"]').click();
|
||||||
} else if (window.location.hash != '') {
|
} else if (window.location.hash != '') {
|
||||||
|
@ -626,7 +710,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 300);
|
}, 300);
|
||||||
$(document).on('click', 'a.smooth', function(ev) {
|
$(document).on('click', 'a.smooth', function (ev) {
|
||||||
if ($('#sidebar').hasClass('show') && !$(this).hasClass('change-href')) {
|
if ($('#sidebar').hasClass('show') && !$(this).hasClass('change-href')) {
|
||||||
$('#sidebar').modal('toggle');
|
$('#sidebar').modal('toggle');
|
||||||
}
|
}
|
||||||
|
@ -663,7 +747,7 @@
|
||||||
toTarget(menu.parent().parent(), true, true);
|
toTarget(menu.parent().parent(), true, true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(document).on('click', 'a.tab-noajax', function(ev) {
|
$(document).on('click', 'a.tab-noajax', function (ev) {
|
||||||
var url = $(this).data('link');
|
var url = $(this).data('link');
|
||||||
if (url)
|
if (url)
|
||||||
$(this).parents('.d-flex.flex-fill.flex-tab').children('.btn-move.tab-move').show().attr('href', url);
|
$(this).parents('.d-flex.flex-fill.flex-tab').children('.btn-move.tab-move').show().attr('href', url);
|
||||||
|
@ -675,7 +759,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function () {
|
||||||
if (document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") === '') {
|
if (document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") === '') {
|
||||||
if (new Date().getHours() > 22 || new Date().getHours() < 6) {
|
if (new Date().getHours() > 22 || new Date().getHours() < 6) {
|
||||||
document.body.classList.remove('io-black-mode');
|
document.body.classList.remove('io-black-mode');
|
||||||
|
|
Loading…
Reference in New Issue