From 0571f295c8977a63b3307b69c6ecbed9aeb6ee95 Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 26 Sep 2021 16:25:50 +0300 Subject: [PATCH] Some unused code cleaning --- modules/sportspress-officials.php | 88 ------------------------------- 1 file changed, 88 deletions(-) diff --git a/modules/sportspress-officials.php b/modules/sportspress-officials.php index f6d7d48b..1727173a 100644 --- a/modules/sportspress-officials.php +++ b/modules/sportspress-officials.php @@ -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. *