国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > CMS > 織夢(mèng)DEDE > 正文

dedecms 列表 用分頁(yè)標(biāo)簽 判斷 當(dāng)?shù)谝豁?yè)則顯示,第二頁(yè)以上不顯示 土辦法!

2024-07-12 09:08:01
字體:
供稿:網(wǎng)友

arc.listview.class.php

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno,spurl")  // ,spurl新增的
,spurl新境的
1
2
3
4
5
$purl $this->GetCurUrl();
$maininfo "<li><span class="pageinfo">共 <strong>{$totalpage}</strong>頁(yè)<strong>".$this->TotalResult."</strong>條</span></li> ";
$tnamerule $this->GetMakeFileRule($this->Fields['id'],"list",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields['namerule2']);
$tnamerule = preg_replace("/^(.*)//"''$tnamerule);
$typedirereg_replace('{cmspath}',$GLOBALS['cfg_cmspath'],$this->Fields['typedir']); //新增的

  

1
2
3
4
5
6
7
8
9
        if($this->PageNo != 1)
        {
            $prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>上一頁(yè)</a></li> ";
            $indexpage="<li><a href='".str_replace("{page}",1,$tnamerule)."'>首頁(yè)</a></li> ";
        }
        else
        {
            $indexpage="<li>首頁(yè)</li> ";
$spurlpage$GLOBALS['cfg_basehost'].$typedir."/";  //新增的
1
2
3
4
5
6
7
8
9
10
11
12
13
    }
    $plist '';
    if(preg_match('/index/i'$listitem)) $plist .= $indexpage;
    if(preg_match('/pre/i'$listitem)) $plist .= $prepage;
    if(preg_match('/pageno/i'$listitem)) $plist .= $listdd;
    if(preg_match('/next/i'$listitem)) $plist .= $nextpage;
    if(preg_match('/end/i'$listitem)) $plist .= $endpage;
    if(preg_match('/option/i'$listitem)) $plist .= $optionlist;
    if(preg_match('/info/i'$listitem)) $plist .= $maininfo;
    if(preg_match('/spurl/i'$listitem)) $plist .= $spurlpage;  //新增的
    
    return $plist;
}

  list_article.htm 調(diào)用 {dede:pagelist listitem="spurl" listsize="0"/}

 

當(dāng)?shù)谝豁?yè)則顯示列表的網(wǎng)址,第二頁(yè)往后則不顯示。用于百度移動(dòng)適配,因?yàn)橐苿?dòng)版與PC版條數(shù)不一樣,二頁(yè)往后內(nèi)容完全不對(duì)應(yīng)。適配失敗。所以只能適配第一頁(yè)。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 兴安盟| 嘉鱼县| 庄浪县| 武穴市| 松原市| 海口市| 海盐县| 青冈县| 兴和县| 湛江市| 咸阳市| 原阳县| 衡水市| 宁津县| 江永县| 陆川县| 云安县| 岳阳县| 同仁县| 东乌珠穆沁旗| 彰武县| 桃源县| 吉林省| 海口市| 甘孜| 右玉县| 柘城县| 鹿泉市| 白银市| 青龙| 临沂市| 洛阳市| 南靖县| 砚山县| 镇沅| 郧西县| 游戏| 徐水县| 历史| 太康县| 新龙县|