@@ -46,7 +46,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?>(<?php echo $row->aititle;?>)</option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php }?> | <?php }?> | ||||
</select> | </select> | ||||
<button type="button" id="btnAIAction" class="btn btn-success btn-sm">AI生成</button> | <button type="button" id="btnAIAction" class="btn btn-success btn-sm">AI生成</button> | ||||
@@ -243,7 +243,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?><?php echo $row->aititle;?></option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -333,7 +333,6 @@ | |||||
const input = document.querySelector(`[name="${currentKey}"]`); | const input = document.querySelector(`[name="${currentKey}"]`); | ||||
if (input) input.value += tagBuffer; | if (input) input.value += tagBuffer; | ||||
} | } | ||||
isClosingTag = false; | isClosingTag = false; | ||||
tagBuffer = ""; | tagBuffer = ""; | ||||
} | } | ||||
@@ -247,7 +247,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?>(<?php echo $row->aititle;?>)</option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -313,7 +313,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?>(<?php echo $row->aititle;?>)</option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -210,7 +210,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?>(<?php echo $row->aititle;?>)</option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -342,7 +342,7 @@ | |||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
?> | ?> | ||||
<option value="<?php echo $row->id;?>"<?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?>(<?php echo $row->aititle;?>)</option> | |||||
<option value="<?php echo $row->id;?>" <?php echo $row->isdefault==1?' selected' : '';?>><?php echo $row->model;?> <?php echo $row->aititle;?></option> | |||||
<?php | <?php | ||||
} | } | ||||
?> | ?> | ||||
@@ -817,9 +817,9 @@ CREATE TABLE `#@__search_sync` ( | |||||
DROP TABLE IF EXISTS `#@__sgpage`; | DROP TABLE IF EXISTS `#@__sgpage`; | ||||
CREATE TABLE `#@__sgpage` ( | CREATE TABLE `#@__sgpage` ( | ||||
`aid` smallint(5) unsigned NOT NULL auto_increment, | `aid` smallint(5) unsigned NOT NULL auto_increment, | ||||
`title` char(255) NOT NULL default '', | |||||
`ismake` smallint(6) NOT NULL default '1', | `ismake` smallint(6) NOT NULL default '1', | ||||
`filename` varchar(60) NOT NULL default '', | `filename` varchar(60) NOT NULL default '', | ||||
`title` char(255) NOT NULL default '', | |||||
`keywords` varchar(255) NOT NULL default '', | `keywords` varchar(255) NOT NULL default '', | ||||
`description` varchar(255) NOT NULL default '', | `description` varchar(255) NOT NULL default '', | ||||
`template` varchar(30) NOT NULL default '', | `template` varchar(30) NOT NULL default '', | ||||
@@ -967,10 +967,10 @@ DROP TABLE IF EXISTS `#@__tagindex`; | |||||
CREATE TABLE `#@__tagindex` ( | CREATE TABLE `#@__tagindex` ( | ||||
`id` int(10) NOT NULL AUTO_INCREMENT, | `id` int(10) NOT NULL AUTO_INCREMENT, | ||||
`tag` varchar(255) NOT NULL DEFAULT '', | `tag` varchar(255) NOT NULL DEFAULT '', | ||||
`title` varchar(255) DEFAULT NULL, | |||||
`litpic` varchar(255) DEFAULT NULL, | |||||
`keywords` varchar(255) DEFAULT NULL, | `keywords` varchar(255) DEFAULT NULL, | ||||
`description` varchar(255) DEFAULT NULL, | `description` varchar(255) DEFAULT NULL, | ||||
`litpic` varchar(255) DEFAULT NULL, | |||||
`title` varchar(255) DEFAULT NULL, | |||||
`typeid` smallint(5) UNSIGNED NOT NULL DEFAULT '0', | `typeid` smallint(5) UNSIGNED NOT NULL DEFAULT '0', | ||||
`count` int(10) UNSIGNED NOT NULL DEFAULT '0', | `count` int(10) UNSIGNED NOT NULL DEFAULT '0', | ||||
`total` int(10) UNSIGNED NOT NULL DEFAULT '0', | `total` int(10) UNSIGNED NOT NULL DEFAULT '0', | ||||
@@ -64,8 +64,8 @@ class TagList | |||||
ShowMsg('当前标签不存在,系统自动返回主页', '/'); | ShowMsg('当前标签不存在,系统自动返回主页', '/'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$this->Fields['litpic'] = empty($this->TagInfos['litpic']) ? $this->TagInfos['litpic'] : $this->TagInfos['litpic']; | |||||
$this->Fields['title'] = empty($this->TagInfos['title']) ? $this->TagInfos['tag'] : $this->TagInfos['title']; | $this->Fields['title'] = empty($this->TagInfos['title']) ? $this->TagInfos['tag'] : $this->TagInfos['title']; | ||||
$this->Fields['litpic'] = empty($this->TagInfos['litpic']) ? $this->TagInfos['litpic'] : $this->TagInfos['litpic']; | |||||
$this->Fields['keywords'] = empty($this->TagInfos['keywords']) ? $this->Fields['keywords'] : $this->TagInfos['keywords']; | $this->Fields['keywords'] = empty($this->TagInfos['keywords']) ? $this->Fields['keywords'] : $this->TagInfos['keywords']; | ||||
$this->Fields['description'] = empty($this->TagInfos['description']) ? $this->Fields['description'] : $this->TagInfos['description']; | $this->Fields['description'] = empty($this->TagInfos['description']) ? $this->Fields['description'] : $this->TagInfos['description']; | ||||
} | } | ||||
@@ -719,7 +719,7 @@ class DedeTagParse | |||||
$endPos = $e3; | $endPos = $e3; | ||||
$elen = $endPos + strlen($fullTagEndWordThis); | $elen = $endPos + strlen($fullTagEndWordThis); | ||||
} else { | } else { | ||||
if($e1 < $e3){ | |||||
if ($e1 < $e3) { | |||||
$endPos = $e3; | $endPos = $e3; | ||||
$elen = $endPos + strlen($fullTagEndWordThis); | $elen = $endPos + strlen($fullTagEndWordThis); | ||||
} elseif ($e1 < $e2) { | } elseif ($e1 < $e2) { | ||||
@@ -39,7 +39,7 @@ if (!function_exists('HtmlReplace')) { | |||||
if ($purifier === null) { | if ($purifier === null) { | ||||
$purifier = new HTMLPurifier($config); | $purifier = new HTMLPurifier($config); | ||||
} | } | ||||
// 处理不同模式 | |||||
//处理不同模式 | |||||
if ($rptype == 0) { | if ($rptype == 0) { | ||||
//仅替换网页标记 | //仅替换网页标记 | ||||
$str = $purifier->purify($str); | $str = $purifier->purify($str); | ||||
@@ -22,7 +22,7 @@ | |||||
</div> | </div> | ||||
<main class="container py-3"> | <main class="container py-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9 pb-m-3">{dede:list pagesize='2' titlelen='230'} | |||||
<div class="col-md-9 pb-m-3">{dede:list pagesize='10' titlelen='230'} | |||||
<article class="list-article bg-white rounded shadow-sm mb-3 p-3"> | <article class="list-article bg-white rounded shadow-sm mb-3 p-3"> | ||||
<div class="list-article-body"> | <div class="list-article-body"> | ||||
<h2 class="mb-3"><a href="[field:arcurl/]">[field:title/]</a></h2> | <h2 class="mb-3"><a href="[field:arcurl/]">[field:title/]</a></h2> | ||||