dedecms织梦分页列表添加省略号

打开 \include\arc.listview.class.php 找到

1 $total_list = $list_len * 2 + 1;

这里有2处,都需要在它的下面加入

01 //省略号
02        if ($totalpage > $total_list) { 
03            $half = floor(($total_list - 4) / 2); 
04            $half_start = $this->PageNo - $half + 1; 
05            if ($total_list % 2 !== 0) --$half_start; 
06            $half_end = $this->PageNo + $half; 
07        
08        if (($totalpage - $this->PageNo) < ($total_list - 3)) { 
09            $half_start = $totalpage - $total_list + 3; 
10            unset($half_end);
11        
12        if ($this-&g