fuel/core — pull request #729 by eggsurplus (2011-12-14 22:31:25+00:00)
Title: Adds attribute support to pagination link creation. Also allows an overr...

...ide to show the link even if it matches the current page condition. Example pagination config:

'pagination' => array(
'pagination_url' => 'http://fuelphp.com/docs/',
'uri_segment' => 3,
'per_page' => 5,
'template' => array(
'wrapper_start' => '

',
'wrapper_end' => '

',
'page_start' => '',
'page_end' => '',
'previous_start' => '',
'previous_end' => '',
'previous_mark' => '',
'next_start' => '',
'next_end' => '',
'next_mark' => '',
'active_start' => '',
'active_end' => '',
'show_current_link' => true,
'previous_link_attrs' => array(
'data-role' => 'button',
'data-icon' => 'arrow-l',
'data-inline' => 'true',
'data-theme' => 'b'
),
'previous_current_link_attrs' => array(
'data-role' => 'button',
'data-icon' => 'arrow-l',
'data-inline' => 'true',
'data-theme' => 'd',
'class' => 'pageactive ui-disabled',
'disabled' => 'disabled',
),
'next_link_attrs' => array(
'data-role' => 'button',
'data-icon' => 'arrow-r',
'data-iconpos' => 'right',
'data-inline' => 'true',
'data-theme' => 'b'
),
'next_current_link_attrs' => array(
'data-role' => 'button',
'data-icon' => 'arrow-r',
'data-iconpos' => 'right',
'data-inline' => 'true',
'data-theme' => 'd',
'class' => 'pageactive ui-disabled',
'disabled' => 'disabled',
),
'page_link_attrs' => array(
'data-role' => 'button',
'data-inline' => 'true',
'data-theme' => 'b',
'class' => 'pagenum',
),
'page_current_link_attrs' => array(
'data-role' => 'button',
'data-inline' => 'true',
'data-theme' => 'd',
'class' => 'pagenum pageactive ui-disabled',
'disabled' => 'disabled',
),
),
),