在织梦标签dede:list中增加noflag属性的方法支持5.7版本(6)

相关案例演示
$truepath = $GLOBALS[“cfg_basedir”];

return $truepath;

}

function GetTrueUrl($nurl)

{

if($this->Fields[‘moresite’]==1)

{

if($this->Fields[‘sitepath’]!=”)

{

$nurl = preg_replace(“/^”.$this->Fields[‘sitepath’].”/”, ”, $nurl);

}

$nurl = $this->Fields[‘siteurl’].$nurl;

}

return $nurl;

}

function ParseTempletsFirst()

{

if(isset($this->TypeLink->TypeInfos[‘reid’]))

{

$GLOBALS[‘envs’][‘reid’] = $this->TypeLink->TypeInfos[‘reid’];

}

$GLOBALS[‘envs’][‘typeid’] = $this->TypeID;

$GLOBALS[‘envs’][‘topid’] = GetTopid($this->Fields[‘typeid’]);

$GLOBALS[‘envs’][‘cross’] = 1;

MakeOneTag($this->dtp,$this);

}

function ParseDMFields($PageNo,$ismake=1)

{

//替换第二页后的内容

if(($PageNo>1 || strlen($this->Fields[‘content’])<10 ) && !$this->IsReplace)

{

$this->dtp->SourceString = str_replace(‘[cmsreplace]’,’display:none’,$this->dtp->SourceString);

$this->IsReplace = true;

}

foreach($this->dtp->CTags as $tagid=>$ctag)

{

if($ctag->GetName()==”list”)

{

$limitstart = ($this->PageNo-1) * $this->PageSize;

$row = $this->PageSize;

if(trim($ctag->GetInnerText())==””)

{

$InnerText = GetSysTemplets(“list_fulllist.htm”);

}

else

{

$InnerText = trim($ctag->GetInnerText());

}

$this->dtp->Assign($tagid,

$this->GetArcList(

$limitstart,

$row,

$ctag->GetAtt(“col”),

$ctag->GetAtt(“titlelen”),

$ctag->GetAtt(“infolen”),

$ctag->GetAtt(“imgwidth”),

$ctag->GetAtt(“imgheight”),

$ctag->GetAtt(“listtype”),

$ctag->GetAtt(“orderby”),

$InnerText,

$ctag->GetAtt(“tablewidth”),

$ismake,

$ctag->GetAtt(“orderway”),

$ctag->GetAtt(“noflag”)

)

);

}

else if($ctag->GetName()==”pagelist”)

{

$list_len = trim($ctag->GetAtt(“listsize”));

$ctag->GetAtt(“listitem”)==”” ? $listitem=”index,pre,pageno,next,end,option” : $listitem=$ctag->GetAtt(“listitem”);

if($list_len==””)

{

$list_len = 3;

}

if($ismake==0)

{

$this->dtp->Assign($tagid,$this->GetPageListDM($list_len,$listitem));

}

else

{

$this->dtp->Assign($tagid,$this->GetPageListST($list_len,$listitem));

}

}

else if($PageNo!=1 && $ctag->GetName()==’field’ && $ctag->GetAtt(‘display’)!=”)

{

$this->dtp->Assign($tagid,”);

}

}

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。


来源:网友投稿 关注: 时间:2020-06-28 08:36
首先声明,只要是我们的vip会员所有源码均可以免费下载,不做任何限制(了解更多)
☉本站的源码不会像其它下载站一样植入大量的广告。为了更好的用户体验以后坚持不打水印
☉本站只提供精品织梦源码,源码在于可用,不在多!!希望在这里找到你合适的。
☉本站提供的整站织梦程序,均带数据及演示地址。可以在任一源码详情页查看演示地址
☉本站所有资源(包括源码、模板、素材、特效等)仅供学习与参考,请勿用于商业用途。
☉如有其他问题,请加网站客服QQ进行交流。
相关织梦教程
QQ在线咨询