| @@ -64,11 +64,13 @@ class TagList | |||||
| ShowMsg('当前标签不存在,系统自动返回主页', '/'); | ShowMsg('当前标签不存在,系统自动返回主页', '/'); | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| $this->Fields['keywords'] = empty($this->Fields['keywords'])? "" : $this->Fields['keywords']; | |||||
| $this->Fields['description'] = empty($this->Fields['description'])? "" : $this->Fields['description']; | |||||
| $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['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']; | ||||
| $addInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex_infos` WHERE tagid='{$this->Tag}' "); | $addInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex_infos` WHERE tagid='{$this->Tag}' "); | ||||
| $this->Fields['litpic'] = empty($addInfos['litpic']) ? $addInfos['litpic'] : $addInfos['litpic']; | |||||
| if(is_array($addInfos)) $this->Fields['litpic'] = empty($addInfos['litpic']) ? $addInfos['litpic'] : $addInfos['litpic']; | |||||
| } | } | ||||
| //初始化模板 | //初始化模板 | ||||
| $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style'].'/'.$this->Templet; | $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style'].'/'.$this->Templet; | ||||
| @@ -547,12 +549,7 @@ class TagList | |||||
| $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>"; | $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>"; | ||||
| $purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
| //开启伪静态对规则替换 | //开启伪静态对规则替换 | ||||
| if ($cfg_rewrite == 'Y') { | |||||
| $purl = str_replace("/apps", "", $purl); | |||||
| $nowurls = preg_replace("/", ".php?", $purl); | |||||
| $nowurls = explode("?", $nowurls); | |||||
| $purl = $nowurls[0]; | |||||
| } | |||||
| if ($cfg_rewrite == 'Y') $purl = "/tags/"; | |||||
| $purl .= "?/".urlencode($this->Tag); | $purl .= "?/".urlencode($this->Tag); | ||||
| //获得上页和下页的链接 | //获得上页和下页的链接 | ||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| @@ -32,7 +32,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
| $tagid = $ctag->GetAtt('tagid'); | $tagid = $ctag->GetAtt('tagid'); | ||||
| } | } | ||||
| //arclist是否需要weight排序,默认为N,如果需要排序则设置为Y | //arclist是否需要weight排序,默认为N,如果需要排序则设置为Y | ||||
| $weight = $ctag->GetAtt('weight'); | |||||
| $isweight = $ctag->GetAtt('weight'); | |||||
| if ($tagname == 'imglist' || $tagname == 'imginfolist') { | if ($tagname == 'imglist' || $tagname == 'imginfolist') { | ||||
| $listtype = 'image'; | $listtype = 'image'; | ||||
| } else if ($tagname == 'specart') { | } else if ($tagname == 'specart') { | ||||
| @@ -72,7 +72,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
| } else { | } else { | ||||
| $flag = $ctag->GetAtt('att'); | $flag = $ctag->GetAtt('att'); | ||||
| } | } | ||||
| return lib_arclistDone ($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen, $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby, $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid, $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'), $tagid, $pagesize,$isweight, $ctag->GetAtt('notypeid') | |||||
| return lib_arclistDone ($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen, $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby, $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid, $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'), $tagid, $pagesize, $isweight, $ctag->GetAtt('notypeid') | |||||
| ); | ); | ||||
| } | } | ||||
| /** | /** | ||||