增加菜单排序
This commit is contained in:
parent
b423b2a5e6
commit
43d649d9ec
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$title = '导航菜单管理';
|
||||
include './head.php';
|
||||
$tagsrows = $DB->num_rows($DB->query("SELECT * FROM `lylme_tags`"));
|
||||
$tagsrows = $DB->num_rows($site->getTags());
|
||||
?>
|
||||
<main class="lyear-layout-content">
|
||||
|
||||
|
@ -32,6 +32,11 @@ if ($set == 'add') {
|
|||
<option selected="selected" value="1">1. 新窗口打开</option>
|
||||
</select></div>
|
||||
<div class="form-group">
|
||||
<label>排序权重: (*必填) </label><br>
|
||||
<input type="text" class="form-control" name="sort" value="10" required>
|
||||
<small class="help-block">(*必填) 数字越小越靠前</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" class="btn btn-primary btn-block" value="添加"></form>
|
||||
</div>
|
||||
<br/><a href="./tag.php"><<返回</a>
|
||||
|
@ -62,6 +67,11 @@ if ($set == 'add') {
|
|||
echo 'value="1">1. 新窗口打开</option>
|
||||
</select></div>
|
||||
<div class="form-group">
|
||||
<label>排序权重: (*必填) </label><br>
|
||||
<input type="text" class="form-control" name="sort" value="' . $row['sort'] . '" required>
|
||||
<small class="help-block">(*必填) 数字越小越靠前</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" class="btn btn-primary btn-block" value="修改"></form>
|
||||
</div>
|
||||
<br/><a href="./tag.php"><<返回</a>
|
||||
|
@ -69,24 +79,30 @@ if ($set == 'add') {
|
|||
} elseif ($set == 'add_submit') {
|
||||
$name = $_POST['name'];
|
||||
$link = $_POST['link'];
|
||||
$sort = $_POST['sort'] ?: 10;
|
||||
if ($_POST['target'] == true) {
|
||||
$target = 1;
|
||||
} else {
|
||||
$target = 0;
|
||||
}
|
||||
if ($name == NULL or $link == NULL) {
|
||||
if ($name == null or $link == null) {
|
||||
echo '<script>alert("保存错误,请确保带星号的都不为空!");history.go(-1);</script>';
|
||||
} else {
|
||||
$sql = "INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES (NULL, '" . $name . "', '" . $link . "', '" . $target . "');";
|
||||
$sql = "INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`,`sort`) VALUES (NULL, '" . $name . "', '" . $link . "', '" . $target . "','" . $sort . "');";
|
||||
if ($DB->query($sql)) {
|
||||
echo '<script>alert("添加导航菜单 ' . $name . ' 成功!");window.location.href="./tag.php";</script>';
|
||||
} else echo '<script>alert("添加导航菜单失败");history.go(-1);</script>';
|
||||
} else {
|
||||
echo '<script>alert("添加导航菜单失败");history.go(-1);</script>';
|
||||
}
|
||||
}
|
||||
} elseif ($set == 'edit_submit') {
|
||||
$id = $_GET['id'];
|
||||
$sort = $_POST['sort'] ?: 10;
|
||||
$rows2 = $DB->query("select * from lylme_tags where tag_id='$id' limit 1");
|
||||
$rows = $DB->fetch($rows2);
|
||||
if (!$rows) echo '<script>alert("当前记录不存在!");history.go(-1);</script>';
|
||||
if (!$rows) {
|
||||
echo '<script>alert("当前记录不存在!");history.go(-1);</script>';
|
||||
}
|
||||
$name = $_POST['name'];
|
||||
$link = $_POST['link'];
|
||||
if ($_POST['target'] == true) {
|
||||
|
@ -94,31 +110,37 @@ if ($set == 'add') {
|
|||
} else {
|
||||
$target = 0;
|
||||
}
|
||||
if ($name == NULL or $link == NULL) {
|
||||
if ($name == null or $link == null) {
|
||||
echo '<script>alert("保存错误,请确保带星号的都不为空!");history.go(-1);</script>';
|
||||
} else {
|
||||
$sql = "UPDATE `lylme_tags` SET `tag_name` = '" . $name . "', `tag_link` = '" . $link . "', `tag_target` = '" . $target . "' WHERE `lylme_tags`.`tag_id` = " . $id . ";";
|
||||
if ($DB->query($sql)) echo '<script>alert("修改导航菜单 ' . $name . ' 成功!");window.location.href="./tag.php";</script>';
|
||||
else echo '<script>alert("修改导航菜单失败!");history.go(-1);</script>';
|
||||
$sql = "UPDATE `lylme_tags` SET `tag_name` = '" . $name . "', `tag_link` = '" . $link . "', `tag_target` = '" . $target . "', `sort` = '" . $sort . "' WHERE `lylme_tags`.`tag_id` = " . $id . ";";
|
||||
if ($DB->query($sql)) {
|
||||
echo '<script>alert("修改导航菜单 ' . $name . ' 成功!");window.location.href="./tag.php";</script>';
|
||||
} else {
|
||||
echo '<script>alert("修改导航菜单失败!");history.go(-1);</script>';
|
||||
}
|
||||
}
|
||||
} elseif ($set == 'delete') {
|
||||
$id = $_GET['id'];
|
||||
$sql = "DELETE FROM lylme_tags WHERE tag_id='$id'";
|
||||
if ($DB->query($sql)) echo '<script>alert("删除成功!");window.location.href="./tag.php";</script>';
|
||||
else echo '<script>alert("删除失败!");history.go(-1);</script>';
|
||||
if ($DB->query($sql)) {
|
||||
echo '<script>alert("删除成功!");window.location.href="./tag.php";</script>';
|
||||
} else {
|
||||
echo '<script>alert("删除失败!");history.go(-1);</script>';
|
||||
}
|
||||
} else {
|
||||
echo '<div class="alert alert-info">系统共有 <b>' . $tagsrows . '</b> 个导航菜单<br/><a href="./tag.php?set=add" class="btn btn-primary">新增导航菜单</a></div>';
|
||||
?>
|
||||
?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead><tr><th>名称</th><th>链接</th><th>操作</th></tr></thead>
|
||||
<thead><tr><th>排序权重</th><th>名称</th><th>链接</th><th>操作</th></tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$rs = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
$rs = $site->getTags();
|
||||
while ($res = $DB->fetch($rs)) {
|
||||
echo '<tr><td>' . $res['tag_name'] . '</td><td>' . $res['tag_link'] . '</td><td><a href="./tag.php?set=edit&id=' . $res['tag_id'] . '" class="btn btn-info btn-xs">编辑</a> <a href="./tag.php?set=delete&id=' . $res['tag_id'] . '" class="btn btn-xs btn-danger" onclick="return confirm(\'确定删除 ' . $res['tag_name'] . ' ?\');">删除</a></td></tr>';
|
||||
echo '<tr><td>' . $res['sort'] . '</td><td>' . $res['tag_name'] . '</td><td>' . $res['tag_link'] . '</td><td><a href="./tag.php?set=edit&id=' . $res['tag_id'] . '" class="btn btn-info btn-xs">编辑</a> <a href="./tag.php?set=delete&id=' . $res['tag_id'] . '" class="btn btn-xs btn-danger" onclick="return confirm(\'确定删除 ' . $res['tag_name'] . ' ?\');">删除</a></td></tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
<?php
|
||||
<?php
|
||||
include("../include/common.php");
|
||||
$grouplists =$DB->query("SELECT * FROM `lylme_groups` WHERE `group_pwd` = 0");
|
||||
$grouplists = $DB->query("SELECT * FROM `lylme_groups` WHERE `group_pwd` = 0");
|
||||
if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
|
||||
header('Content-Type:application/json');
|
||||
//获取网站信息
|
||||
$head = get_head($_GET['url']);
|
||||
$head = json_encode($head,JSON_UNESCAPED_UNICODE); //将合并后的数组转换为json
|
||||
//获取网站信息
|
||||
$head = get_head($_GET['url']);
|
||||
$head = json_encode($head, JSON_UNESCAPED_UNICODE); //将合并后的数组转换为json
|
||||
exit($head); //输出json
|
||||
|
||||
} else if(isset($_GET['submit']) == 'post') {
|
||||
if(isset($_REQUEST['authcode'])) {
|
||||
session_start();
|
||||
if(strtolower($_REQUEST['authcode'])== $_SESSION['authcode']) {
|
||||
$status = isset($conf["apply"]) ? $conf["apply"] :0;
|
||||
if($status==2) {
|
||||
exit('{"code": "400", "msg": "网站已关闭收录"}');
|
||||
}
|
||||
exit(apply($_POST['name'], $_POST['url'], $_POST['icon'], $_POST['group_id'], $status));
|
||||
} else {
|
||||
exit('{"code": "-6", "msg": "验证码错误"}');
|
||||
}
|
||||
}
|
||||
exit();
|
||||
} elseif(isset($_GET['submit']) == 'post') {
|
||||
if(isset($_REQUEST['authcode'])) {
|
||||
session_start();
|
||||
if(strtolower($_REQUEST['authcode']) == $_SESSION['authcode']) {
|
||||
$status = isset($conf["apply"]) ? $conf["apply"] : 0;
|
||||
if($status == 2) {
|
||||
exit('{"code": "400", "msg": "网站已关闭收录"}');
|
||||
}
|
||||
exit(apply($_POST['name'], $_POST['url'], $_POST['icon'], $_POST['group_id'], $status));
|
||||
} else {
|
||||
exit('{"code": "-6", "msg": "验证码错误"}');
|
||||
}
|
||||
}
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
@ -31,7 +31,7 @@ if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||
<title>申请收录 - <?php echo explode("-", $conf['title'])[0];
|
||||
?></title>
|
||||
<link rel="icon" href="<?php echo get_urlpath($conf['logo'],siteurl().'/apply');?>" type="image/ico">
|
||||
<link rel="icon" href="<?php echo get_urlpath($conf['logo'], siteurl() . '/apply');?>" type="image/ico">
|
||||
<link href="https://cdn.lylme.com/admin/lyear/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.lylme.com/admin/lyear/css/style.min.css" rel="stylesheet">
|
||||
<style>#loading{position:absolute;left:0;top:0;height:100vh;width:100vw;z-index:100;display:none;align-items:center;justify-content:center;color:#bbb;font-size:16px}#loading>img{height:18px;width:18px}.lylme-wrapper{position:relative}.lylme-form{display:flex !important;min-height:100vh;align-items:center !important;justify-content:center !important}.lylme-form:after{content:'';min-height:inherit;font-size:0}.lylme-center{background:#fff;min-width:29.25rem;padding:30px;border-radius:20px;margin:2.85714em}.lylme-header{margin-bottom:1.5rem !important}.lylme-center .has-feedback.feedback-left .form-control-feedback{left:0;right:auto;width:38px;height:38px;line-height:38px;z-index:4;color:#dcdcdc}.lylme-center .has-feedback.feedback-left.row .form-control-feedback{left:15px}.code{height:38px}.apply_gg{margin:20px 0;font-size:15px;line-height:2}.home{text-decoration:none;color:#bbb;line-height:2}li{list-style-type:none}ol,ul{padding-left:10px}</style>
|
||||
|
@ -41,17 +41,17 @@ if(!empty($url = isset($_GET['url']) ? $_GET['url'] : null)) {
|
|||
正在获取....</div>
|
||||
<?php
|
||||
if(!empty($background = background())) {
|
||||
$background = str_replace('./','../',$background);
|
||||
echo '<div class="row lylme-wrapper" style="background-image: url('.$background.');background-size: cover;">';
|
||||
$background = str_replace('./', '../', $background);
|
||||
echo '<div class="row lylme-wrapper" style="background-image: url(' . $background . ');background-size: cover;">';
|
||||
} else {
|
||||
echo '<div class="row lylme-wrapper">';
|
||||
echo '<div class="row lylme-wrapper">';
|
||||
}
|
||||
?>
|
||||
<div class="lylme-form">
|
||||
<div class="lylme-center">
|
||||
<?php if($conf["apply"]==2) {
|
||||
exit('<div class="lylme-header text-center"><h2>网站已关闭收录</h2></div>'. $conf['apply_gg']. '</div>');
|
||||
}
|
||||
<?php if($conf["apply"] == 2) {
|
||||
exit('<div class="lylme-header text-center"><h2>网站已关闭收录</h2></div>' . $conf['apply_gg'] . '</div>');
|
||||
}
|
||||
?>
|
||||
<div class="lylme-header text-center"><h2>申请收录</h2></div>
|
||||
<div class="apply_gg">
|
||||
|
@ -71,9 +71,10 @@ if(!empty($background = background())) {
|
|||
<select title="分组" class="form-control" name="group_id" required>
|
||||
<option value="">请选择</option>
|
||||
<?php
|
||||
while($grouplist = $DB->fetch($grouplists)) {
|
||||
echo '
|
||||
<option value="'.$grouplist["group_id"].'">'.$grouplist["group_name"].'</option>';
|
||||
$applygroup = $site->getGroups();
|
||||
while($grouplist = $DB->fetch($applygroup)) {
|
||||
echo '
|
||||
<option value="' . $grouplist["group_id"] . '">' . $grouplist["group_name"] . '</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
|
|
@ -23,27 +23,29 @@
|
|||
<link href="<?php echo $templatepath;?>/css/wea.css" rel="stylesheet">
|
||||
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-2-M/jquery/3.5.1/jquery.min.js"></script>
|
||||
</head>
|
||||
<?php if(!empty(background())){
|
||||
echo '<body style="background: url('.background().') no-repeat center/cover;">';}
|
||||
else{ echo '<body>';}?>
|
||||
<?php if(!empty(background())) {
|
||||
echo '<body style="background: url(' . background() . ') no-repeat center/cover;">';
|
||||
} else {
|
||||
echo '<body>';
|
||||
}?>
|
||||
<div id="menu"><i></i></div>
|
||||
<div class="list closed">
|
||||
<?php
|
||||
|
||||
$html= array(
|
||||
$html = array(
|
||||
'g1' => '<ul class="mylist row">', //分组开始标签
|
||||
'g2' => '<li class="title">{group_icon}<sapn>{group_name}</sapn></li>', //分组内容
|
||||
'g3' => '</ul>', //分组结束标签
|
||||
|
||||
|
||||
'l1' => '<li class="col-3 col-sm-3 col-md-3 col-lg-1">', //链接开始标签
|
||||
'l2' => '<a rel="nofollow" href="{link_url}" target="_blank">{link_icon}<span>{link_name}</span></a>', //链接内容
|
||||
'l3' => '</li>', //链接结束标签
|
||||
);
|
||||
lists($html);
|
||||
lists($html);
|
||||
|
||||
echo '</div>';
|
||||
if ($conf['tq']) {
|
||||
echo '<!--天气-->
|
||||
echo '</div>';
|
||||
if ($conf['tq']) {
|
||||
echo '<!--天气-->
|
||||
<div class="mywth">
|
||||
<div class="wea_hover">
|
||||
<div class="wea_in wea_top"></div>
|
||||
|
@ -55,31 +57,31 @@ if ($conf['tq']) {
|
|||
</div>
|
||||
</div>
|
||||
<!--天气插件,基于和风天气接口制作-->
|
||||
<script src="'.$cdnpublic.'/template/5iux/js/wea.js"></script>
|
||||
<script src="' . $cdnpublic . '/template/5iux/js/wea.js"></script>
|
||||
';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="con">
|
||||
<div class="shlogo"><?php echo $conf['home-title'] ?></div>
|
||||
<div class="sou">
|
||||
<div class="lylme">
|
||||
<?php
|
||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` WHERE `sou_st` = 1 ORDER BY `lylme_sou`.`sou_order` ASC");
|
||||
$json = array();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
echo '<div class="ss hide"><div class="lg">' . $soulist["sou_icon"] . '</div>
|
||||
<?php
|
||||
$soulists = $site->getSou();
|
||||
$json = array();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
echo '<div class="ss hide"><div class="lg">' . $soulist["sou_icon"] . '</div>
|
||||
</div>';
|
||||
if (checkmobile()&& !empty($soulist["sou_waplink"])) {
|
||||
$so = $soulist["sou_waplink"];
|
||||
} else {
|
||||
$so = $soulist["sou_link"];
|
||||
}
|
||||
array_push($json,array($soulist['sou_name'],$soulist['sou_hint'],$so));
|
||||
}
|
||||
$json = json_encode($json,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES)
|
||||
?>
|
||||
if (checkmobile() && !empty($soulist["sou_waplink"])) {
|
||||
$so = $soulist["sou_waplink"];
|
||||
} else {
|
||||
$so = $soulist["sou_link"];
|
||||
}
|
||||
array_push($json, array($soulist['sou_name'],$soulist['sou_hint'],$so));
|
||||
}
|
||||
$json = json_encode($json, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)
|
||||
?>
|
||||
|
||||
<input class="wd soinput" type="text" placeholder="" name="q" x-webkit-speech lang="zh-CN" autocomplete="off">
|
||||
<button onclick="go('');"><svg class="icon" style=" width: 21px; height: 21px; opacity: 0.5;" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg></button>
|
||||
|
@ -90,33 +92,35 @@ $json = json_encode($json,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES)
|
|||
<div class="foot">
|
||||
<?php
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan().'</p>';
|
||||
echo '<p class="content">' . yan() . '</p>';
|
||||
}
|
||||
$i= 0;
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a>';
|
||||
if($i<$DB->num_rows($tagslists)-1) {
|
||||
$i++;
|
||||
echo ' | ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
$i = 0;
|
||||
$tagslists = $site->getTags();
|
||||
while($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a>';
|
||||
if($i < $DB->num_rows($tagslists) - 1) {
|
||||
$i++;
|
||||
echo ' | ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!--网站统计-->
|
||||
<?php if(!empty($conf['wztj'])) {
|
||||
echo '<p>'.$conf["wztj"].'</p>';
|
||||
}
|
||||
?>
|
||||
echo '<p>' . $conf["wztj"] . '</p>';
|
||||
}
|
||||
?>
|
||||
<!--备案信息-->
|
||||
<?php if(!empty($conf['icp'])) {
|
||||
echo '<p><img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp nav-link" target="_blank" _mstmutation="1" _istranslated="1">'.$conf['icp'].'</a></p>';
|
||||
}
|
||||
?>
|
||||
echo '<p><img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp nav-link" target="_blank" _mstmutation="1" _istranslated="1">' . $conf['icp'] . '</a></p>';
|
||||
}
|
||||
?>
|
||||
<!--版权信息-->
|
||||
<!-- <p> Theme by <a href="https://github.com/5iux/sou/" target="_blank">5iux</a> .<?php echo $conf['copyright'];
|
||||
?></p> -->
|
||||
?></p> -->
|
||||
</div>
|
||||
<script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script>
|
||||
<script src="<?php echo $templatepath;?>/js/sou.js?v=20221210"></script>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<div class="m-header">
|
||||
<div class="logo">
|
||||
<a href="/"><?php echo explode("-", $conf['title'])[0];
|
||||
?></a>
|
||||
?></a>
|
||||
</div>
|
||||
<div class="navbar">
|
||||
<i class="iconfont icon-caidan"></i>
|
||||
|
@ -31,14 +31,16 @@
|
|||
<div class="m-navlist-w">
|
||||
<div class="m-navlist">
|
||||
<?php
|
||||
//输出导航菜单
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<a href="' . $taglists["tag_link"] . '" class="list catlist"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '><b>' . $taglists["tag_name"] . '</b></a>';
|
||||
}
|
||||
?>
|
||||
//输出导航菜单
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<a href="' . $taglists["tag_link"] . '" class="list catlist"';
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '><b>' . $taglists["tag_name"] . '</b></a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -47,31 +49,34 @@ while ($taglists = $DB->fetch($tagslists)) {
|
|||
<div class="index-nav">
|
||||
<div class="logo">
|
||||
<a href="/"><?php echo explode("-", $conf['title'])[0];
|
||||
?></a>
|
||||
?></a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="type-list">
|
||||
<?php
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '
|
||||
$tagslists = $site->getTags();
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '
|
||||
<div class="list">
|
||||
<a href="' . $taglists["tag_link"] . '" class="list catlist"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a> </div> ';
|
||||
}
|
||||
?>
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a> </div> ';
|
||||
}
|
||||
?>
|
||||
<hr><p style="margin: 10px;color: #000;font-weight: bold;font-size:18px">分组</p>
|
||||
<?php
|
||||
$groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC");
|
||||
while ($group = $DB->fetch($groups)) {
|
||||
echo '<div class="list">
|
||||
|
||||
$groups = $site->getGroups();
|
||||
while ($group = $DB->fetch($groups)) {
|
||||
echo '<div class="list">
|
||||
<a href="#category-' . $group["group_id"] . '" class="list catlist">
|
||||
' . $group["group_icon"] . $group["group_name"] . '</a>
|
||||
' . $group["group_icon"] . $group["group_name"] . '</a>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!--左侧分类栏 E-->
|
||||
|
@ -80,8 +85,8 @@ while ($group = $DB->fetch($groups)) {
|
|||
<!--搜索 S-->
|
||||
<div class="search-main-w">
|
||||
<div class="date-main"
|
||||
<?php if(background()){
|
||||
echo 'style="background-image: url('.background().')"';
|
||||
<?php if(background()) {
|
||||
echo 'style="background-image: url(' . background() . ')"';
|
||||
}?>>
|
||||
<time class="times" id="nowTime">00:00:00</time>
|
||||
<span class="dates" id="nowYmd">2022年01月01日</span>
|
||||
|
@ -101,32 +106,32 @@ while ($group = $DB->fetch($groups)) {
|
|||
</div>
|
||||
<div class="search-btnlist">
|
||||
<?php
|
||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if ($soulist["sou_st"] == 1) {
|
||||
if(!$fso) {
|
||||
echo '<button class="search-btn" data-url="';
|
||||
if (checkmobile()&& $soulist["sou_waplink"] != NULL) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '">'. $soulist["sou_icon"] . $soulist["sou_name"] . '</button>
|
||||
$soulists = $site->getSou();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if ($soulist["sou_st"] == 1) {
|
||||
if(!$fso) {
|
||||
echo '<button class="search-btn" data-url="';
|
||||
if (checkmobile() && $soulist["sou_waplink"] != null) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '">' . $soulist["sou_icon"] . $soulist["sou_name"] . '</button>
|
||||
<button class="search-change"><i class="iconfont icon-xiangxia"></i></button>
|
||||
<div class="search-lists hide"> ';
|
||||
$fso = true;
|
||||
}
|
||||
echo ' <div class="list" data-url="';
|
||||
if (checkmobile()&& $soulist["sou_waplink"] != NULL) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '">'. $soulist["sou_icon"] . $soulist["sou_name"] . '
|
||||
$fso = true;
|
||||
}
|
||||
echo ' <div class="list" data-url="';
|
||||
if (checkmobile() && $soulist["sou_waplink"] != null) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '">' . $soulist["sou_icon"] . $soulist["sou_name"] . '
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="list kongs"></div>
|
||||
</div>
|
||||
|
@ -145,13 +150,13 @@ while ($soulist = $DB->fetch($soulists)) {
|
|||
|
||||
<div class="site-main">
|
||||
<?php
|
||||
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan().'</p>';
|
||||
}
|
||||
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan() . '</p>';
|
||||
}
|
||||
|
||||
|
||||
include'list.php';?>
|
||||
include'list.php';?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -161,14 +166,14 @@ include'list.php';?>
|
|||
<footer>
|
||||
<!--网站统计-->
|
||||
<?php if(!empty($conf['wztj'])) {
|
||||
echo '<p>'.$conf["wztj"].'</p>';
|
||||
}
|
||||
?>
|
||||
echo '<p>' . $conf["wztj"] . '</p>';
|
||||
}
|
||||
?>
|
||||
<!--备案信息-->
|
||||
<?php if(!empty($conf['icp'])) {
|
||||
echo '<p><img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" rel="nofollow" class="icp nav-link" target="_blank" _mstmutation="1" _istranslated="1">'.$conf['icp'].'</a></p>';
|
||||
}
|
||||
?>
|
||||
echo '<p><img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" rel="nofollow" class="icp nav-link" target="_blank" _mstmutation="1" _istranslated="1">' . $conf['icp'] . '</a></p>';
|
||||
}
|
||||
?>
|
||||
<p>Theme By <a href="https://gitee.com/baisucode/baisu-two" target="_blank">BaiSu</a>. <?php echo $conf['copyright']?></p>
|
||||
</footer>
|
||||
<!--底部版权 E-->
|
||||
|
@ -179,7 +184,7 @@ include'list.php';?>
|
|||
</div>
|
||||
</div>
|
||||
<!--返回顶部 E-->
|
||||
<?php if ($conf['tq']=='true'){?>
|
||||
<?php if ($conf['tq'] == 'true') {?>
|
||||
<!--天气代码替换处 S-->
|
||||
<script type="text/javascript">
|
||||
WIDGET = {
|
||||
|
@ -198,7 +203,9 @@ include'list.php';?>
|
|||
</script>
|
||||
<script src="https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0"></script>
|
||||
<!--天气代码替换处 E-->
|
||||
<?php }else{echo '<style>.search-main-w {display: none;} @media only screen and (max-width: 1200px){.search-main {padding-top:70px !important;}}</style>';}?>
|
||||
<?php } else {
|
||||
echo '<style>.search-main-w {display: none;} @media only screen and (max-width: 1200px){.search-main {padding-top:70px !important;}}</style>';
|
||||
}?>
|
||||
<!--iconfont-->
|
||||
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_3000268_oov6h4vru0h.css" />
|
||||
<script src="//at.alicdn.com/t/font_3000268_oov6h4vru0h.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
@ -214,5 +221,5 @@ include'list.php';?>
|
|||
<!--二开说明:-->
|
||||
<!--1. 当前主题使用基于baisuTwo主题开发,作者:baisu-->
|
||||
<!--2. 原项目地址https://gitee.com/baisucode/baisu-two-->
|
||||
<!--3. 二开作者:六零
|
||||
<!--3. 二开作者:六零-->
|
||||
<!--4. 修改了适配LyLme Spage,修改了部分CSS,删除不适用与本项目的代码-->
|
|
@ -23,7 +23,9 @@
|
|||
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/tag.css?v=20220611" type="text/css">
|
||||
</head>
|
||||
<body onload="FocusOnInput()"><div class="banner-video">
|
||||
<?php if(!empty(background())){ echo '<img src="'.background().'">';}?>
|
||||
<?php if(!empty(background())) {
|
||||
echo '<img src="' . background() . '">';
|
||||
}?>
|
||||
|
||||
<div class="bottom-cover" style="background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(244 248 251 / 0.6) 50%, rgb(244 248 251) 100%);">
|
||||
</div>
|
||||
|
@ -35,12 +37,12 @@
|
|||
<ul>
|
||||
<li data-lylme="search"><a>搜索</a><span></span></li>
|
||||
<?php
|
||||
$groups = $DB->query("SELECT * FROM `lylme_groups` WHERE `group_pwd` = 0 ORDER BY `group_order` ASC"); // 获取分类
|
||||
while ($group = $DB->fetch($groups)) { //循环所有分组
|
||||
|
||||
echo '<li data-lylme="group_'. $group["group_id"] . '"><a>'. $group["group_name"] . '</a><span></span></li>'."\n";
|
||||
}
|
||||
?>
|
||||
$groups = $site->getGroups(); // 获取分类
|
||||
while ($group = $DB->fetch($groups)) { //循环所有分组
|
||||
|
||||
echo '<li data-lylme="group_' . $group["group_id"] . '"><a>' . $group["group_name"] . '</a><span></span></li>' . "\n";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -61,19 +63,21 @@ while ($group = $DB->fetch($groups)) { //循环所有分组
|
|||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<?php
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
$tagslists = $site->getTags();
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
if ($conf['tq'] != 'false') {
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
if ($conf['tq'] != 'false') {
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<div id="main">
|
||||
|
@ -86,28 +90,28 @@ if ($conf['tq'] != 'false') {
|
|||
<!--topbar结束-->
|
||||
<div class="container" style="margin-top:10vh; position: relative; z-index: 100;">
|
||||
<?php
|
||||
echo $conf['home-title'];
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan().'</p>';
|
||||
}
|
||||
?>
|
||||
echo $conf['home-title'];
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan() . '</p>';
|
||||
}
|
||||
?>
|
||||
<!--搜索开始-->
|
||||
<div id="search" class="s-search">
|
||||
<div id="search-list" class="hide-type-list">
|
||||
<div class="search-group group-a s-current" style=" margin-top: 50px;">
|
||||
<ul class="search-type">
|
||||
<?php
|
||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if ($soulist["sou_st"] == 1) {
|
||||
echo ' <li>
|
||||
$soulists = $site->getSou();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if ($soulist["sou_st"] == 1) {
|
||||
echo ' <li>
|
||||
<input hidden="" checked="" type="radio" name="type" id="type-' . $soulist["sou_alias"] . '" value="';
|
||||
if (checkmobile()&& !empty($soulist["sou_waplink"])) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '"data-placeholder="' . $soulist["sou_hint"] . '">
|
||||
if (checkmobile() && !empty($soulist["sou_waplink"])) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '"data-placeholder="' . $soulist["sou_hint"] . '">
|
||||
<label for="type-' . $soulist["sou_alias"] . '" style="font-weight:600">
|
||||
' . $soulist["sou_icon"] . '
|
||||
<span style="color:' . $soulist["sou_color"] . '">
|
||||
|
@ -116,9 +120,9 @@ while ($soulist = $DB->fetch($soulists)) {
|
|||
</label>
|
||||
</li>
|
||||
';
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -144,6 +148,6 @@ while ($soulist = $DB->fetch($soulists)) {
|
|||
</div>
|
||||
|
||||
<?php
|
||||
include "list.php";
|
||||
include "footer.php";
|
||||
?>
|
||||
include "list.php";
|
||||
include "footer.php";
|
||||
?>
|
||||
|
|
|
@ -22,9 +22,11 @@
|
|||
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/style.css?v=20220510" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo $cdnpublic ?>/assets/css/fontawesome-free5.13.0.css" type="text/css">
|
||||
</head>
|
||||
<?php if(!empty(background())){
|
||||
echo '<body onload="FocusOnInput()" style="background-image: url('.background().');background-size: cover;">';}
|
||||
else{ echo '<body onload="FocusOnInput()">';}?>
|
||||
<?php if(!empty(background())) {
|
||||
echo '<body onload="FocusOnInput()" style="background-image: url(' . background() . ');background-size: cover;">';
|
||||
} else {
|
||||
echo '<body onload="FocusOnInput()">';
|
||||
}?>
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-light fixed-top" style="position: absolute; z-index: 10000;">
|
||||
<button class="navbar-toggler collapsed" style="border: none; outline: none;"type="button" data-toggle="collapse" data-target="#navbarsExample05" aria-controls="navbarsExample05" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -35,17 +37,20 @@
|
|||
<div class="collapse navbar-collapse" id="navbarsExample05">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<?php
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
$tagslists = $site->getTags();
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
<?php if ($conf['tq'] != 'false') {
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';}?>
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';
|
||||
}?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
@ -60,9 +65,9 @@ echo '<div id="he-plugin-simple"></div>
|
|||
</div>
|
||||
<?php
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan().'</p>';
|
||||
echo '<p class="content">' . yan() . '</p>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</p>
|
||||
<!--搜索开始-->
|
||||
<div id="search" class="s-search">
|
||||
|
@ -103,25 +108,29 @@ if ($conf['yan'] == 'true') {
|
|||
|
||||
</div>
|
||||
<ul class="search-type" id="chso">
|
||||
<?php
|
||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if($soulist["sou_st"]==1){
|
||||
echo ' <li>
|
||||
<input hidden="" checked="" type="radio" name="type" id="type-'.$soulist["sou_alias"].'" value="';
|
||||
if(checkmobile()&&$soulist["sou_waplink"]!=NULL){echo $soulist["sou_waplink"];}else{echo $soulist["sou_link"];}
|
||||
echo '"data-placeholder="'.$soulist["sou_hint"].'">
|
||||
<label for="type-'.$soulist["sou_alias"].'" style="font-weight:600">
|
||||
'.$soulist["sou_icon"].'
|
||||
<span style="color:'.$soulist["sou_color"].'">
|
||||
'.$soulist["sou_name"].'
|
||||
<?php
|
||||
$soulists = $site->getSou();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if($soulist["sou_st"] == 1) {
|
||||
echo ' <li>
|
||||
<input hidden="" checked="" type="radio" name="type" id="type-' . $soulist["sou_alias"] . '" value="';
|
||||
if(checkmobile() && $soulist["sou_waplink"] != null) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '"data-placeholder="' . $soulist["sou_hint"] . '">
|
||||
<label for="type-' . $soulist["sou_alias"] . '" style="font-weight:600">
|
||||
' . $soulist["sou_icon"] . '
|
||||
<span style="color:' . $soulist["sou_color"] . '">
|
||||
' . $soulist["sou_name"] . '
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
';
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="set-check hidden-xs">
|
||||
<input type="checkbox" id="set-search-blank" class="bubble-3" autocomplete="off">
|
||||
|
@ -133,5 +142,5 @@ if ($conf['yan'] == 'true') {
|
|||
|
||||
<?php
|
||||
include "list.php";
|
||||
include "footer.php";
|
||||
?>
|
||||
include "footer.php";
|
||||
?>
|
||||
|
|
|
@ -24,15 +24,17 @@
|
|||
<nav>
|
||||
<ul>
|
||||
<?php
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '
|
||||
$tagslists = $site->getTags();
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '
|
||||
<li><a href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
|
@ -31,9 +31,11 @@
|
|||
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/daohang.css" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo $templatepath;?>/css/style.css?v=20220510" type="text/css">
|
||||
</head>
|
||||
<?php if(!empty(background())){
|
||||
echo '<body onload="FocusOnInput()" style="background-image: url('.background().');background-size: cover;/**/margin: 0;padding: 0;background: linear-gradient(#3c65e1, #195bc1, #6011d5, #5d21a8, #53097d);min-height: 100vh;display: flex;justify-content: center;align-items: center;background-attachment: fixed;">';}
|
||||
else{ echo '<body onload="FocusOnInput()">';}?>
|
||||
<?php if(!empty(background())) {
|
||||
echo '<body onload="FocusOnInput()" style="background-image: url(' . background() . ');background-size: cover;/**/margin: 0;padding: 0;background: linear-gradient(#3c65e1, #195bc1, #6011d5, #5d21a8, #53097d);min-height: 100vh;display: flex;justify-content: center;align-items: center;background-attachment: fixed;">';
|
||||
} else {
|
||||
echo '<body onload="FocusOnInput()">';
|
||||
}?>
|
||||
<!---左侧导航开始-->
|
||||
<script>
|
||||
$(function(){
|
||||
|
@ -50,11 +52,11 @@
|
|||
<li><a href="#main"><svg class="icon" aria-hidden="true" width="200" height="200"><use xlink:href="#icon-sousuo"></use></svg><span>搜索</span></a></li>
|
||||
|
||||
<?php
|
||||
$groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC");
|
||||
while ($group = $DB->fetch($groups)) {
|
||||
echo '<li><a href="#category-' . $group["group_id"] . '">' . $group["group_icon"] .'<span>'. $group["group_name"] . '</span></a></li>';
|
||||
}
|
||||
?>
|
||||
$groups = $site->getGroups();
|
||||
while ($group = $DB->fetch($groups)) {
|
||||
echo '<li><a href="#category-' . $group["group_id"] . '">' . $group["group_icon"] . '<span>' . $group["group_name"] . '</span></a></li>';
|
||||
}
|
||||
?>
|
||||
<hr>
|
||||
<li><a target="_blank" href="/apply"><svg t="1655349272190" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6087" width="200" height="200"><path d="M511.984 64C264.976 64 64 264.96 64 512.016 64 759.024 264.976 960 511.984 960 759.056 960 960 759.024 960 512.016 960 264.944 759.024 64 511.984 64z" fill="#FFBD27" p-id="6088"></path><path d="M695.76 552.16h-143.616v143.536A40.224 40.224 0 0 1 512 735.936a40.256 40.256 0 0 1-40.128-40.24v-143.52h-143.632a40.208 40.208 0 1 1 0-80.4h143.632v-143.584a40.16 40.16 0 1 1 80.288 0v143.568h143.616a40.208 40.208 0 1 1 0 80.416z" fill="#333333" p-id="6089"></path></svg><span>申请收录</span></a></li>
|
||||
<li><a target="_blank" href="/about"><svg t="1655350264547" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12046" width="200" height="200"><path d="M512 162c47.3 0 93.1 9.2 136.2 27.5 41.7 17.6 79.1 42.9 111.3 75 32.2 32.2 57.4 69.6 75 111.3C852.8 418.9 862 464.7 862 512s-9.2 93.1-27.5 136.2c-17.6 41.7-42.9 79.1-75 111.3-32.2 32.2-69.6 57.4-111.3 75C605.1 852.8 559.3 862 512 862s-93.1-9.2-136.2-27.5c-41.7-17.6-79.1-42.9-111.3-75-32.2-32.2-57.4-69.6-75-111.3C171.2 605.1 162 559.3 162 512s9.2-93.1 27.5-136.2c17.6-41.7 42.9-79.1 75-111.3 32.2-32.2 69.6-57.4 111.3-75C418.9 171.2 464.7 162 512 162m0-80C274.5 82 82 274.5 82 512s192.5 430 430 430 430-192.5 430-430S749.5 82 512 82z" fill="#4a5fe2" p-id="12047"></path><path d="M612 687.6h-60V405.4c0-20.7-17-37.7-37.7-37.7H508.6c-6.8-0.2-13.7 1.4-20 5L415.4 415c-18 10.4-24.2 33.6-13.8 51.5l2.3 4c10.4 18 33.6 24.2 51.5 13.8l16.6-9.6v213h-60c-22 0-40 18-40 40s18 40 40 40h200c22 0 40-18 40-40 0-22.1-18-40.1-40-40.1z" fill="#7c44e2" p-id="12048"></path><path d="M512 306.4m-50 0a50 50 0 1 0 100 0 50 50 0 1 0-100 0Z" fill="#7c44e2" p-id="12049"></path></svg><span>关于本站</span></a></li>
|
||||
|
@ -71,17 +73,20 @@ echo '<li><a href="#category-' . $group["group_id"] . '">' . $group["group_icon"
|
|||
<div class="collapse navbar-collapse" id="navbarsExample05">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<?php
|
||||
$tagslists = $DB->query("SELECT * FROM `lylme_tags`");
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) echo ' target="_blank"';
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
$tagslists = $site->getTags();
|
||||
while ($taglists = $DB->fetch($tagslists)) {
|
||||
echo '<li class="nav-item"><a class="nav-link" href="' . $taglists["tag_link"] . '"';
|
||||
if ($taglists["tag_target"] == 1) {
|
||||
echo ' target="_blank"';
|
||||
}
|
||||
echo '>' . $taglists["tag_name"] . '</a></li>
|
||||
';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
<?php if ($conf['tq'] != 'false') {
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';}?>
|
||||
echo '<div id="he-plugin-simple"></div>
|
||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>';
|
||||
}?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
@ -95,11 +100,11 @@ echo '<div id="he-plugin-simple"></div>
|
|||
|
||||
</div>
|
||||
<?php
|
||||
//调用随机一言
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan().'</p>';
|
||||
}
|
||||
?>
|
||||
//调用随机一言
|
||||
if ($conf['yan'] == 'true') {
|
||||
echo '<p class="content">' . yan() . '</p>';
|
||||
}
|
||||
?>
|
||||
<!--搜索开始-->
|
||||
<div id="search" class="s-search">
|
||||
<div id="search-list" class="hide-type-list">
|
||||
|
@ -139,25 +144,29 @@ if ($conf['yan'] == 'true') {
|
|||
|
||||
</div>
|
||||
<ul class="search-type" id="chso">
|
||||
<?php
|
||||
$soulists = $DB->query("SELECT * FROM `lylme_sou` ORDER BY `lylme_sou`.`sou_order` ASC");
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if($soulist["sou_st"]==1){
|
||||
echo ' <li>
|
||||
<input hidden="" checked="" type="radio" name="type" id="type-'.$soulist["sou_alias"].'" value="';
|
||||
if(checkmobile()&&$soulist["sou_waplink"]!=NULL){echo $soulist["sou_waplink"];}else{echo $soulist["sou_link"];}
|
||||
echo '"data-placeholder="'.$soulist["sou_hint"].'">
|
||||
<label for="type-'.$soulist["sou_alias"].'" style="font-weight:600">
|
||||
'.$soulist["sou_icon"].'
|
||||
<span style="color:'.$soulist["sou_color"].'">
|
||||
'.$soulist["sou_name"].'
|
||||
<?php
|
||||
$soulists = $site->getSou();
|
||||
while ($soulist = $DB->fetch($soulists)) {
|
||||
if($soulist["sou_st"] == 1) {
|
||||
echo ' <li>
|
||||
<input hidden="" checked="" type="radio" name="type" id="type-' . $soulist["sou_alias"] . '" value="';
|
||||
if(checkmobile() && $soulist["sou_waplink"] != null) {
|
||||
echo $soulist["sou_waplink"];
|
||||
} else {
|
||||
echo $soulist["sou_link"];
|
||||
}
|
||||
echo '"data-placeholder="' . $soulist["sou_hint"] . '">
|
||||
<label for="type-' . $soulist["sou_alias"] . '" style="font-weight:600">
|
||||
' . $soulist["sou_icon"] . '
|
||||
<span style="color:' . $soulist["sou_color"] . '">
|
||||
' . $soulist["sou_name"] . '
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
';
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="set-check hidden-xs">
|
||||
<input type="checkbox" id="set-search-blank" class="bubble-3" autocomplete="off">
|
||||
|
@ -171,17 +180,17 @@ if ($conf['yan'] == 'true') {
|
|||
</style>
|
||||
|
||||
<?php
|
||||
$html= array(
|
||||
$html = array(
|
||||
'g1' => '<ul class="mylist row">', //分组开始标签
|
||||
'g2' => '<li id="category-{group_id}" class="title">{group_icon}<sapn>{group_name}</sapn></li>', //分组内容
|
||||
'g3' => '</ul>', //分组结束标签
|
||||
|
||||
|
||||
'l1' => '<li class="lylme-3">', //链接开始标签
|
||||
'l2' => '<a rel="nofollow" href="{link_url}" target="_blank">{link_icon}<span>{link_name}</span></a>', //链接内容
|
||||
'l3' => '</li>', //链接结束标签
|
||||
);
|
||||
lists($html);
|
||||
?>
|
||||
lists($html);
|
||||
?>
|
||||
<script src="<?php echo $templatepath;?>/js/script.js?v=20220518"></script>
|
||||
<script src="<?php echo $cdnpublic ?>/assets/js/svg.js"></script>
|
||||
<div style="display:none;" class="back-to" id="toolBackTop">
|
||||
|
@ -189,12 +198,15 @@ lists($html);
|
|||
</div>
|
||||
<div class="mt-5 mb-3 footer text-muted text-center">
|
||||
<!--备案信息-->
|
||||
<?php if($conf['icp'] != NULL){
|
||||
echo '<img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp" target="_blank" _mstmutation="1" _istranslated="1">'.$conf['icp'].'</a>'; } ?>
|
||||
<?php if($conf['icp'] != null) {
|
||||
echo '<img src="./assets/img/icp.png" width="16px" height="16px" /><a href="http://beian.miit.gov.cn/" class="icp" target="_blank" _mstmutation="1" _istranslated="1">' . $conf['icp'] . '</a>';
|
||||
} ?>
|
||||
<!--版权信息-->
|
||||
<p> <?php echo $conf['copyright']; ?></p>
|
||||
<!--网站统计-->
|
||||
<?php if($conf['wztj'] != NULL){echo $conf["wztj"];}?>
|
||||
<?php if($conf['wztj'] != null) {
|
||||
echo $conf["wztj"];
|
||||
}?>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue