Add paginate option to tables close #18

This commit is contained in:
Brian Miyaji
2014-03-30 00:37:49 +11:00
parent 62094357c6
commit 64abb6c9b5
10 changed files with 260 additions and 34 deletions

View File

@@ -48,15 +48,40 @@ class SP_Settings_Players extends SP_Settings_Page {
'type' => 'checkbox',
),
array( 'type' => 'sectionend', 'id' => 'player_options' ),
array( 'title' => __( 'Player Lists', 'sportspress' ), 'type' => 'title', 'id' => 'list_options' ),
array(
'title' => __( 'Player Lists', 'sportspress' ),
'title' => __( 'Players', 'sportspress' ),
'desc' => __( 'Link players', 'sportspress' ),
'id' => 'sportspress_list_link_players',
'default' => 'yes',
'type' => 'checkbox',
),
array( 'type' => 'sectionend', 'id' => 'player_options' ),
array(
'title' => __( 'Pagination', 'sportspress' ),
'desc' => __( 'Paginate', 'sportspress' ),
'id' => 'sportspress_list_paginated',
'default' => 'yes',
'type' => 'checkbox',
),
array(
'title' => __( 'Limit', 'sportspress' ),
'id' => 'sportspress_list_rows',
'class' => 'small-text',
'default' => '10',
'desc' => __( 'players', 'sportspress' ),
'type' => 'number',
'custom_attributes' => array(
'min' => 1,
'step' => 1
),
),
array( 'type' => 'sectionend', 'id' => 'list_options' ),
array( 'title' => __( 'Text', 'sportspress' ), 'type' => 'title', 'desc' => __( 'The following options affect how words are displayed on the frontend.', 'sportspress' ), 'id' => 'text_options' ),