織夢(mèng) 實(shí)現(xiàn)中英文分頁(yè)功能分享一下,dedecms
導(dǎo)讀:dedecmsdedecms1、打開(kāi)include/arc.listview.class.php(本文以DedeCMS5.6為例) 找到(約29行) var $remoteDir; 在其下dede商城模板織夢(mèng)cms模板。
1、打開(kāi)include/arc.listview.class.php(本文以DedeCMS5.6為例) 找到(約29行)
var $remoteDir;
在其下面加上一個(gè)新行
var $pagelang;
找到(約528行)
$list_len = trim($ctag->GetAtt("listsize"));
在其下面加上一個(gè)新行
$pagelang = trim($ctag->GetAtt("pagelang"));
找到(約531行)
if($list_len=="") { $list_len = 3; }
在其下面加上
if($pagelang=="") { $pagelang = 'cn'; }
修改(約545行)
$this->dtp->Assign($tagid,$this->GetPageListST($list_len,$listitem));
為
$this->dtp->Assign($tagid,$this->GetPageListST($list_len,$listitem,$pagelang));
修改(新增)
function GetPageListST($list_len,$listitem="index,end,pre,next,pageno")
為
function GetPageListST($list_len,$織夢(mèng)手機(jī)模板listitem="index,end,pre,next,pageno",$pagelang='cn')
修改(約826行)
return "<li><span class=\"pageinfo\">共 <strong>1</strong> 頁(yè) <strong>".$this->TotalResult."</strong> 條記錄</span></li>\r\n";
為
if($pagelang=='cn') {
return "<li><span class=\"pageinfo\">共 <strong>1</strong> 頁(yè) <strong>".$this->TotalResult."</織夢(mèng)首頁(yè)模板strong> 條記錄</span></li>\r\n"; } else { return "<li><span class=\"pageinfo\">Total <strong>1</strong> Page <strong> ".$this->TotalResult."</strong> Records</span></li>\r\n"; }
修改
return "<li><span class=\"pageinfo\">共 <strong>0</strong> 頁(yè) <strong>".$this->TotalResult."</strong> 條記錄</span></li>\r\n";
為
if($pagelang=='cn') { return "<li><span class=\"pageinfo\">共 <strong>0</strong> 頁(yè) <strong>".$this->TotalResult."</strong> 條記錄</span></li>\r\n"; } else { return "<li><span class=\"pageinfo\">Total <strong>0</strong> Page <strong> ".$this->TotalResult."</strong> Records</span></li>\r\n"; }
修改
$maininfo = "<li><span class=\"pageinfo\">共 <strong>{$totalpage}</strong> 頁(yè) <strong>".$this->TotalResult."</strong> 條</span></li>\r\n";
聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-18 ,文章織夢(mèng) 實(shí)現(xiàn)中英文分頁(yè)功能分享一下,dedecms主要講述分頁(yè),中英文,織夢(mèng)網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_29219.html
為你推薦與織夢(mèng) 實(shí)現(xiàn)中英文分頁(yè)功能分享一下,dedecms相關(guān)的文章
-
當(dāng)前欄目調(diào)用上級(jí)欄目名稱(chēng)的辦法,織夢(mèng)文
(106)人喜歡 2023-07-18 -
Dedecms自定義表單后臺(tái)列表展現(xiàn)方式更改
(142)人喜歡 2023-07-18 -
用SQL命令刪除dede版權(quán)信息的官方鏈接,D
(124)人喜歡 2023-07-18 -
Dedecms后臺(tái)驗(yàn)證碼不顯示的解決方法,織夢(mèng)
(102)人喜歡 2023-07-18 -
Dedecms搜索頁(yè)面調(diào)用最新文章的方法,織夢(mèng)
(77)人喜歡 2023-07-18 -
DedeCMS轉(zhuǎn)換WordPress方法-親測(cè)成功,DEDE技術(shù)
(183)人喜歡 2023-07-18