加入百度联盟代码

This commit is contained in:
rm 2024-07-16 15:23:18 +08:00
parent 78155a8861
commit eefbdf0dd6
1 changed files with 164 additions and 80 deletions

View File

@ -7,20 +7,28 @@
<?php echo $site['title']; ?> -
<?php echo $site['subtitle']; ?>
</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="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 -->
<link rel="stylesheet" id="bootstrap-css" href="static/bootstrap4/css/bootstrap.min.css" type="text/css" media="all" />
<link rel="stylesheet" id="fancybox-css" href="templates/qnloft/assets/css/fancybox.min-3.5.7.css" type="text/css" media="all" />
<link rel="stylesheet" id="bootstrap-css" href="static/bootstrap4/css/bootstrap.min.css" type="text/css"
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样式了 -->
<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="custom-css" href="templates/qnloft/assets/css/custom-style.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"
media="all" />
<link rel="stylesheet" id="custom-css" href="templates/qnloft/assets/css/custom-style.css" type="text/css"
media="all" />
<!-- 图标 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="templates/qnloft/assets/js/content-search.js" id="content-search-js"></script>
@ -28,9 +36,9 @@
<script>
! function(p) {
! function (p) {
"use strict";
! function(t) {
! function (t) {
var s = window,
e = document,
i = p,
@ -38,7 +46,7 @@
n = e.createElement("script"),
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;
var o = function() {
var o = function () {
s.LA.ids.push(i)
};
s.LA ? s.LA.ids && o() : (s.LA = p, s.LA.ids = [], o()), r.parentNode.insertBefore(n, r)
@ -67,6 +75,17 @@
width: 100%;
}
</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>
<body class="io-grey-mode">
@ -136,16 +155,20 @@
<div class="logo overflow-hidden">
<a href="" class="logo-expanded">
<?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-dark d-none" alt="青柠炸机街">
<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-dark d-none"
alt="青柠炸机街">
<?php } else { ?>
<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="青柠炸机街">
<?php } ?>
</a>
<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_dark.png" height="40" class="logo-dark d-none" alt="青柠炸机街">
<img src="templates/qnloft/assets/images/logos/qnLogo.png" height="40" class="logo-light"
alt="青柠炸机街">
<img src="templates/qnloft/assets/images/logos/qnLogo_dark.png" height="40"
class="logo-dark d-none" alt="青柠炸机街">
</a>
</div>
</div>
@ -156,10 +179,10 @@
<div class="sidebar-menu-inner">
<ul>
<?php foreach ($category_parent as $f_category) { //遍历 一级 分类目录并显示
//var_dump($f_category);
$font_icon = empty($f_category['font_icon']) ? '' : "{$f_category['font_icon']}";
$child_categorys = get_category_sub($f_category['id']);
?>
//var_dump($f_category);
$font_icon = empty($f_category['font_icon']) ? '' : "{$f_category['font_icon']}";
$child_categorys = get_category_sub($f_category['id']);
?>
<li class="sidebar-item">
<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>
@ -251,10 +274,12 @@
<ul class="nav navbar-menu text-xs order-1 order-md-2">
<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 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>
</ul>
</div>
@ -281,124 +306,159 @@
</div>
<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>
</form>
<div id="search-list" class="hide-type-list">
<div class="search-group group-a">
<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>
</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>
</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>
</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>
</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>
</li>
</ul>
</div>
<div class="search-group group-b">
<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>
</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>
</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>
</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>
</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>
</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>
</li>
</ul>
</div>
<div class="search-group group-c">
<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>
</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>
</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>
</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>
</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>
</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>
</li>
</ul>
</div>
<div class="search-group group-d">
<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>
</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>
</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>
</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>
</li>
</ul>
</div>
<div class="search-group group-e">
<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>
</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>
</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>
</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>
</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>
</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>
</li>
</ul>
</div>
<div class="search-group group-f">
<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>
</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>
</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>
</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>
</li>
</ul>
@ -430,11 +490,12 @@
$fid = $f_category['id'];
$links = get_links($fid);
$font_icon = empty($f_category['font_icon']) ? '' : "<i class='{$f_category['font_icon']}' id = 'category-$fid'></i> ";
?>
?>
<div class="d-flex flex-fill">
<h4 class="text-gray text-lg mb-4">
<?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 echo $font_icon ?>
<?php } ?>
@ -449,17 +510,24 @@
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
$webIcon = extractHost($link['url']);
// 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-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="url-content d-flex align-items-center">
<div class="url-img mr-2 d-flex align-items-center justify-content-center">
<?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']; ?>">
<?php } else { ?>
<img class="lazy" src="<?php echo $font_icon ?>" data-src="<?php echo $font_icon ?>" 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']; ?>">
<?php } else { ?>
<img class="lazy" src="<?php echo $font_icon ?>"
data-src="<?php echo $font_icon ?>" alt="<?php echo $link['title']; ?>">
<?php } ?>
</div>
<div class="url-info flex-fill">
@ -475,23 +543,25 @@
</div>
</div>
</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>
</a>
</div>
</div>
<?php } ?>
</div>
<?php } else {
<?php } else {
foreach ($child_categorys as $c_category) {
$fid = $c_category['id'];
$c_links = get_links($fid);
$font_icon = empty($c_category['font_icon']) ? '' : "<i class='{$c_category['font_icon']}'></i> ";
?>
?>
<!-- 遍历 二级节点 -->
<div class="d-flex flex-fill">
<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']); ?>
</h4>
</div>
@ -503,14 +573,20 @@
$link['description'] = empty($link['description']) ? '作者很懒,没有填写描述。' : $link['description'];
$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-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="url-content d-flex align-items-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 class="url-info flex-fill">
<div class="text-sm overflowClip_1">
@ -525,7 +601,8 @@
</div>
</div>
</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>
</a>
</div>
@ -546,12 +623,15 @@
<i class="iconfont icon-to-up"></i>
</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>
</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>
</a>
@ -559,7 +639,9 @@
<div class="footer-inner">
<div class="footer-text">
<?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>
<?php } else {
echo $site['custom_footer'];
@ -571,7 +653,8 @@
</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/tooltip-extend.js' id='iplaycode-nav-js'></script>
<script type='text/javascript' id='popper-js-extra'>
@ -597,24 +680,25 @@
</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='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/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">
$(document).ready(function() {
$(document).ready(function () {
var siteWelcome = $('#loading');
siteWelcome.addClass('close');
setTimeout(function() {
setTimeout(function () {
siteWelcome.remove();
}, 600);
});
</script>
<script>
$(document).ready(function() {
setTimeout(function() {
$(document).ready(function () {
setTimeout(function () {
if ($('a.smooth[href="' + window.location.hash + '"]')[0]) {
$('a.smooth[href="' + window.location.hash + '"]').click();
} else if (window.location.hash != '') {
@ -626,7 +710,7 @@
});
}
}, 300);
$(document).on('click', 'a.smooth', function(ev) {
$(document).on('click', 'a.smooth', function (ev) {
if ($('#sidebar').hasClass('show') && !$(this).hasClass('change-href')) {
$('#sidebar').modal('toggle');
}
@ -663,7 +747,7 @@
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');
if (url)
$(this).parents('.d-flex.flex-fill.flex-tab').children('.btn-move.tab-move').show().attr('href', url);
@ -675,7 +759,7 @@
</script>
<script>
(function() {
(function () {
if (document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1") === '') {
if (new Date().getHours() > 22 || new Date().getHours() < 6) {
document.body.classList.remove('io-black-mode');