public function getPagination()
    {
        if ($this->perPage == 'all' || ! $this->totalCount)
        {
            return '<span class="pagination">&nbsp;</span>';
        }

        ob_start();
        // calculate advance shortcut
        // Advance shortcut
        if ($this->pageJump)
        {
            $this->jumpNext = min($this->page  + $this->pageJump, $this->lastPage);
            $this->jumpPrev = max($this->page  - $this->pageJump, $this->firstPage);
        }

        $pagi_from = max($this->page - ceil($this->pageJump / 2), $this->firstPage);
        $pagi_to = min($pagi_from + $this->pageJump, $this->lastPage);

        ?>
        <ul class="pagination pagination--offset pull-right">
            <?php
            $this->createPagiList(1, '<i class="icon-double-angle-left"></i> first', $this->page == $this->firstPage);

            if ($this->pageJump)
            {
                $this->createPagiList($this->jumpPrev, "<i class=\"icon-angle-left\"></i> - {$this->pageJump}", $this->jumpPrev == $this->firstPage);
            }

            $this->createPagiList($this->prevPage,'<i class="icon-angle-left"></i> prev',$this->page == $this->firstPage);

            for($i = $pagi_from;$i <= $pagi_to; $i++)
            {
                $this->createPagiList($i,$i,false,($i == $this->page));
            }

            $this->createPagiList($this->nextPage, 'next <i class="icon-angle-right"></i>', $this->page == $this->lastPage);

            if ($this->pageJump)
            {
                $this->createPagiList($this->jumpNext, "{$this->pageJump} + <i class=\"icon-angle-right\"></i>", $this->jumpNext == $this->lastPage);
            }

            $this->createPagiList($this->lastPage, 'last <i class="icon-double-angle-right"></i>',$this->lastPage == $this->page);
            ?>
        </ul>

        <?php
        return ob_get_clean();
    }
public function getPagination()
    {
        if ($this->perPage == 'all' || ! $this->totalCount)
        {
            return '<span class="pagination">&nbsp;</span>';
        }

        ob_start();
        // calculate advance shortcut
        // Advance shortcut
        if ($this->pageJump)
        {
            $this->jumpNext = min($this->page  + $this->pageJump, $this->lastPage);
            $this->jumpPrev = max($this->page  - $this->pageJump, $this->firstPage);
        }

        $pagi_from = max($this->page - ceil($this->pageJump / 2), $this->firstPage);
        $pagi_to = min($pagi_from + $this->pageJump, $this->lastPage);

        ?>
        <ul class="pagination pagination--offset pull-right">
            <?php
            $this->createPagiList(1, '<i class="icon-double-angle-left"></i> first', $this->page == $this->firstPage);

            if ($this->pageJump)
            {
                $this->createPagiList($this->jumpPrev, "<i class=\"icon-angle-left\"></i> - {$this->pageJump}", $this->jumpPrev == $this->firstPage);
            }

            $this->createPagiList($this->prevPage,'<i class="icon-angle-left"></i> prev',$this->page == $this->firstPage);

            for($i = $pagi_from;$i <= $pagi_to; $i++)
            {
                $this->createPagiList($i,$i,false,($i == $this->page));
            }

            $this->createPagiList($this->nextPage, 'next <i class="icon-angle-right"></i>', $this->page == $this->lastPage);

            if ($this->pageJump)
            {
                $this->createPagiList($this->jumpNext, "{$this->pageJump} + <i class=\"icon-angle-right\"></i>", $this->jumpNext == $this->lastPage);
            }

            $this->createPagiList($this->lastPage, 'last <i class="icon-double-angle-right"></i>',$this->lastPage == $this->page);
            ?>
        </ul>

        <?php
        return ob_get_clean();
    }
public function getPagination ( ) { if ( $ this -> perPage == 'all' || ! $ this -> totalCount ) { return '<span class="pagination">&nbsp;</span>' ; } ob_start ( ) ; // calculate advance shortcut // Advance shortcut if ( $ this -> pageJump ) { $ this -> jumpNext = min ( $ this -> page + $ this -> pageJump , $ this -> lastPage ) ; $ this -> jumpPrev = max ( $ this -> page - $ this -> pageJump , $ this -> firstPage ) ; } $ pagi_from = max ( $ this -> page - ceil ( $ this -> pageJump / 2 ) , $ this -> firstPage ) ; $ pagi_to = min ( $ pagi_from + $ this -> pageJump , $ this -> lastPage ) ; ?>
        <ul class="pagination pagination--offset pull-right">
            <?php $ this -> createPagiList ( 1 , '<i class="icon-double-angle-left"></i> first' , $ this -> page == $ this -> firstPage ) ; if ( $ this -> pageJump ) { $ this -> createPagiList ( $ this -> jumpPrev , "<i class=\"icon-angle-left\"></i> - {$this->pageJump}" , $ this -> jumpPrev == $ this -> firstPage ) ; } $ this -> createPagiList ( $ this -> prevPage , '<i class="icon-angle-left"></i> prev' , $ this -> page == $ this -> firstPage ) ; for ( $ i = $ pagi_from ; $ i <= $ pagi_to ; $ i ++ ) { $ this -> createPagiList ( $ i , $ i , false , ( $ i == $ this -> page ) ) ; } $ this -> createPagiList ( $ this -> nextPage , 'next <i class="icon-angle-right"></i>' , $ this -> page == $ this -> lastPage ) ; if ( $ this -> pageJump ) { $ this -> createPagiList ( $ this -> jumpNext , "{$this->pageJump} + <i class=\"icon-angle-right\"></i>" , $ this -> jumpNext == $ this -> lastPage ) ; } $ this -> createPagiList ( $ this -> lastPage , 'last <i class="icon-double-angle-right"></i>' , $ this -> lastPage == $ this -> page ) ; ?>
        </ul>

        <?php return ob_get_clean ( ) ; }
Create the pagination list

@return string
Create the pagination list