function GetPagintation($page = 0, $pageid = 'page') { $list = $this->GetList(); $n = count($list); $s = 'content_' . $this->content_id . '_count'; $perPage = opt_get($s); if ($perPage <= 0) { return ''; } $pageCount = ceil($n / $perPage); if ($pageCount <= 1) { return ''; } return stencil_pagintation($pageCount, $page, content_url_get_full(), $pageid); }
function pagintation($count, $current = 0, $url_prefix = '', $pageid = 'pageid') { println(stencil_pagintation($count, $current, $url_orefix, $pageid)); }