0, 'numberOfPosts'=>0, 'numberOfPages'=>0, 'nextPage'=>0, 'prevPage'=>0, 'currentPage'=>0, 'showOlder'=>false, 'showNewer'=>false, 'show'=>false ); public static function set($key, $value) { self::$pager[$key] = $value; } public static function get($key) { return self::$pager[$key]; } public static function urlNextPage() { global $Url; $domain = trim(DOMAIN_BASE,'/'); $filter = trim($Url->activeFilter(), '/'); if(empty($filter)) { $url = $domain.'/'.$Url->slug(); } else { $url = $domain.'/'.$filter.'/'.$Url->slug(); } return $url.'?page='.self::get('nextPage'); } public static function urlPrevPage() { global $Url; $domain = trim(DOMAIN_BASE,'/'); $filter = trim($Url->activeFilter(), '/'); if(empty($filter)) { $url = $domain.'/'.$Url->slug(); } else { $url = $domain.'/'.$filter.'/'.$Url->slug(); } return $url.'?page='.self::get('prevPage'); } public static function urlLastPage() { global $Url; $domain = trim(DOMAIN_BASE,'/'); $filter = trim($Url->activeFilter(), '/'); if(empty($filter)) { $url = $domain.'/'.$Url->slug(); } else { $url = $domain.'/'.$filter.'/'.$Url->slug(); } return $url.'?page='.self::get('numberOfPosts'); } public static function urlFirstPage() { global $Url; $domain = trim(DOMAIN_BASE,'/'); $filter = trim($Url->activeFilter(), '/'); if(empty($filter)) { $url = $domain.'/'.$Url->slug(); } else { $url = $domain.'/'.$filter.'/'.$Url->slug(); } return $url.'?page=0'; } public static function html($textPrevPage=false, $textNextPage=false, $showPageNumber=false) { global $Language; $html = '