Some unused code cleaning
This commit is contained in:
@@ -332,94 +332,6 @@ class SportsPress_Officials {
|
||||
return $columns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add settings.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function add_settings( $settings ) {
|
||||
return array_merge( $settings,
|
||||
array(
|
||||
array( 'title' => __( 'Officials', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ),
|
||||
),
|
||||
|
||||
apply_filters( 'sportspress_table_options', array(
|
||||
array(
|
||||
'title' => __( 'Duty', 'sportspress' ),
|
||||
'desc' => __( 'Display title', 'sportspress' ),
|
||||
'id' => 'sportspress_table_show_title',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Teams', 'sportspress' ),
|
||||
'desc' => __( 'Display logos', 'sportspress' ),
|
||||
'id' => 'sportspress_table_show_logos',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Pagination', 'sportspress' ),
|
||||
'desc' => __( 'Paginate', 'sportspress' ),
|
||||
'id' => 'sportspress_table_paginated',
|
||||
'default' => 'yes',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Limit', 'sportspress' ),
|
||||
'id' => 'sportspress_table_rows',
|
||||
'class' => 'small-text',
|
||||
'default' => '10',
|
||||
'desc' => __( 'teams', 'sportspress' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'min' => 1,
|
||||
'step' => 1
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Form', 'sportspress' ),
|
||||
'id' => 'sportspress_form_limit',
|
||||
'class' => 'small-text',
|
||||
'default' => '5',
|
||||
'desc' => __( 'events', 'sportspress' ),
|
||||
'type' => 'number',
|
||||
'custom_attributes' => array(
|
||||
'min' => 1,
|
||||
'step' => 1
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Pos', 'sportspress' ),
|
||||
'desc' => __( 'Always increment', 'sportspress' ),
|
||||
'id' => 'sportspress_table_increment',
|
||||
'default' => 'no',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Tiebreaker', 'sportspress' ),
|
||||
'id' => 'sportspress_table_tiebreaker',
|
||||
'default' => 'none',
|
||||
'type' => 'select',
|
||||
'options' => array(
|
||||
'none' => __( 'None', 'sportspress' ),
|
||||
'h2h' => __( 'Head to head', 'sportspress' ),
|
||||
),
|
||||
),
|
||||
) ),
|
||||
|
||||
array(
|
||||
array( 'type' => 'sectionend', 'id' => 'table_options' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add event template.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user