src/Kharanenka/Helper/PaginationHelper.php
protected static function addNextButton($sCode) {

        if(self::$iCurrentPage + self::$arSettings[$sCode.'_button_limit'] > self::$iTotalCountPages) {
            return;
        }

        //Get button value
        $sValue = self::getValue($sCode);

        //Get button name
        $sName = self::$arSettings[$sCode.'_button_name'];
        if(isset(self::$arSettings[$sCode.'_button_number']) && self::$arSettings[$sCode.'_button_number']) {
            $sName = $sValue;
        }

        self::$arResult[] = [
            'name' => $sName,
            'value' => $sValue,
            'class' => self::$arSettings[$sCode.'_button_class'],
            'code' => $sCode,
        ];
    }
protected static function addNextButton($sCode) {

        if(self::$iCurrentPage + self::$arSettings[$sCode.'_button_limit'] > self::$iTotalCountPages) {
            return;
        }

        //Get button value
        $sValue = self::getValue($sCode);

        //Get button name
        $sName = self::$arSettings[$sCode.'_button_name'];
        if(isset(self::$arSettings[$sCode.'_button_number']) && self::$arSettings[$sCode.'_button_number']) {
            $sName = $sValue;
        }

        self::$arResult[] = [
            'name' => $sName,
            'value' => $sValue,
            'class' => self::$arSettings[$sCode.'_button_class'],
            'code' => $sCode,
        ];
    }
Add next button
@param string $sCode