소스 검색

Update archives.class.php

tags/6.2.5
叙述、别离 2 년 전
부모
커밋
5e1eb1453a
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. +2
    -5
      src/system/archive/archives.class.php

+ 2
- 5
src/system/archive/archives.class.php 파일 보기

@@ -43,7 +43,7 @@ class Archives
*/ */
function __construct($aid) function __construct($aid)
{ {
global $dsql,$envs;
global $dsql, $envs;
$this->IsError = FALSE; $this->IsError = FALSE;
$this->ArcID = $aid; $this->ArcID = $aid;
$this->PreNext = array(); $this->PreNext = array();
@@ -579,7 +579,7 @@ class Archives
} else if ($ctag->GetName() == 'prenext') { } else if ($ctag->GetName() == 'prenext') {
$this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get'))); $this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get')));
} }
//二次开发上一篇下一篇{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy}
//添加上一篇下一篇标签{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy}
else if ($ctag->GetName()=='prenextdiy') else if ($ctag->GetName()=='prenextdiy')
{ {
$innertext = trim($ctag->GetInnerText()); $innertext = trim($ctag->GetInnerText());
@@ -686,7 +686,6 @@ class Archives
$preRow['siteurl'], $preRow['siteurl'],
$preRow['sitepath'] $preRow['sitepath']
); );
//二次开发上一篇属性
$preRow['litpic'] = (empty($preRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $preRow['litpic']; $preRow['litpic'] = (empty($preRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $preRow['litpic'];
$this->PreNext['diy']['pre']['id'] = $preRow['id']; $this->PreNext['diy']['pre']['id'] = $preRow['id'];
$this->PreNext['diy']['pre']['arcurl'] = $mlink; $this->PreNext['diy']['pre']['arcurl'] = $mlink;
@@ -715,7 +714,6 @@ class Archives
$nextRow['siteurl'], $nextRow['siteurl'],
$nextRow['sitepath'] $nextRow['sitepath']
); );
//二次开发下一篇属性
$nextRow['litpic'] = (empty($nextRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $nextRow['litpic']; $nextRow['litpic'] = (empty($nextRow['litpic'])) ? $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg' : $nextRow['litpic'];
$this->PreNext['diy']['next']['id'] = $nextRow['id']; $this->PreNext['diy']['next']['id'] = $nextRow['id'];
$this->PreNext['diy']['next']['arcurl'] = $mlink; $this->PreNext['diy']['next']['arcurl'] = $mlink;
@@ -729,7 +727,6 @@ class Archives
$this->PreNext['nextimg'] = ""; $this->PreNext['nextimg'] = "";
} }
} }
//二次开发上一篇下一篇
if ($gtype=='diy') { if ($gtype=='diy') {
return $this->PreNext['diy']; return $this->PreNext['diy'];
} if ($gtype=='pre') { } if ($gtype=='pre') {


불러오는 중...
취소
저장