установи своё значение...
<?php
defined( '_JEXEC' ) or die;
function pagination_list_render($list){
$html = '';
$gwpages = array();
foreach ($list['pages'] as $number => $page) {
if($page['active'] === false){
$current = $number;
}
$countPages = $number;
}
if($current > 1) $html .= GWaddRow($gwpages, $list['previous'], 'pagination-previous');
$html .= GWaddRow($gwpages, $list['start'], 'pagination-start');
if($current > 3) $html .= '...';
if(isset($list['pages'][$current-1])) $html .= GWaddRow($gwpages, $list['pages'][$current-1]);
$html .= GWaddRow($gwpages, $list['pages'][$current]);
if(isset($list['pages'][$current+1])) $html .= GWaddRow($gwpages, $list['pages'][$current+1]);
if($current < ($countPages - 2)) $html .= '...';
$html .= GWaddRow($gwpages, $list['end'], 'pagination-end');
if($current < $countPages) $html .= GWaddRow($gwpages, $list['next'], 'pagination-next');
return '<div class="vm-pagination"><ul>'.$html.'</ul></div>';
}
function GWaddRow(&$pages, $page, $class = ''){
if(in_array($page, $pages)){
return;
}
$row = '<li';
$row .= ($class)? ' class="'.$class.'">' : '>';
$row .= $page['data']. '</li>';
$pages[] = $page;
return $row;
}
?>
.vm-pagination {text-align: center;}
.vm-pagination ul {list-style: none; margin-top: 50px;}
.vm-pagination ul li {display: inline-block; margin: 2px; }
.vm-pagination ul li a,.vm-pagination ul li span.pagenav,.pagenav a,div.pagination a,div.pagination span{display:inline-block;margin:0 3px;padding:4px 10px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;}
.vm-pagination ul li a,.pagenav a,div.pagination a{border:1px solid #d4d4d4;background: #fefefe;text-decoration:none;color:#27292c;
background: -moz-linear-gradient(top, #fefefe 0%, #f0f0f0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefefe), color-stop(100%,#f0f0f0));
background: -webkit-linear-gradient(top, #fefefe 0%,#f0f0f0 100%);
background: -o-linear-gradient(top, #fefefe 0%,#f0f0f0 100%);
background: -ms-linear-gradient(top, #fefefe 0%,#f0f0f0 100%);
background: linear-gradient(to bottom, #fefefe 0%,#f0f0f0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefefe', endColorstr='#f0f0f0',GradientType=0 );}
.vm-pagination ul li span.pagenav,div.pagination span{border:1px solid #ff9e34;color:white;background: #ff9e34;box-shadow:inset 0 0 4px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 0 4px rgba(0,0,0,0.1);-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,0.1);}
ul.pagenav,div.pagination{margin:10px 0 0;padding:0;}
ul.pagenav li,div.pagination li{list-style:none;display:inline-block;}