helpers/TbHtml.php
public static function paginationLink($label, $url, $htmlOptions = array())
    {
        $linkOptions = TbArray::popValue('linkOptions', $htmlOptions, array());
        if (TbArray::popValue('active', $htmlOptions, false)) {
            self::addCssClass('active', $htmlOptions);
            $label .= ' ' . self::tag('span', array('class' => 'sr-only'), '(current)');
        }
        if (TbArray::popValue('disabled', $htmlOptions, false)) {
            self::addCssClass('disabled', $htmlOptions);
        }
        $content = self::link($label, $url, $linkOptions);
        return self::tag('li', $htmlOptions, $content);
    }
public static function paginationLink($label, $url, $htmlOptions = array())
    {
        $linkOptions = TbArray::popValue('linkOptions', $htmlOptions, array());
        if (TbArray::popValue('active', $htmlOptions, false)) {
            self::addCssClass('active', $htmlOptions);
            $label .= ' ' . self::tag('span', array('class' => 'sr-only'), '(current)');
        }
        if (TbArray::popValue('disabled', $htmlOptions, false)) {
            self::addCssClass('disabled', $htmlOptions);
        }
        $content = self::link($label, $url, $linkOptions);
        return self::tag('li', $htmlOptions, $content);
    }
public static function paginationLink ( $ label , $ url , $ htmlOptions = array ( ) ) { $ linkOptions = TbArray :: popValue ( 'linkOptions' , $ htmlOptions , array ( ) ) ; if ( TbArray :: popValue ( 'active' , $ htmlOptions , false ) ) { self :: addCssClass ( 'active' , $ htmlOptions ) ; $ label .= ' ' . self :: tag ( 'span' , array ( 'class' => 'sr-only' ) , '(current)' ) ; } if ( TbArray :: popValue ( 'disabled' , $ htmlOptions , false ) ) { self :: addCssClass ( 'disabled' , $ htmlOptions ) ; } $ content = self :: link ( $ label , $ url , $ linkOptions ) ; return self :: tag ( 'li' , $ htmlOptions , $ content ) ; }
Generates a pagination link.
@param string $label the link label text.
@param mixed $url the link url.
@param array $htmlOptions additional HTML attributes.
@return string the generated link.
Generates a pagination link .