From 64eef5824abd6b6073cb01d7c03c7c77f658d9e6 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 17 Jul 2015 15:33:02 +1000 Subject: [PATCH] Add option to hide player list and league table titles --- modules/sportspress-league-tables.php | 8 ++++++++ modules/sportspress-player-lists.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/modules/sportspress-league-tables.php b/modules/sportspress-league-tables.php index 2edcc87a..55539104 100644 --- a/modules/sportspress-league-tables.php +++ b/modules/sportspress-league-tables.php @@ -187,6 +187,14 @@ class SportsPress_League_Tables { ), apply_filters( 'sportspress_table_options', array( + array( + 'title' => __( 'Title', 'sportspress' ), + 'desc' => __( 'Display title', 'sportspress' ), + 'id' => 'sportspress_table_show_title', + 'default' => 'yes', + 'type' => 'checkbox', + ), + array( 'title' => __( 'Teams', 'sportspress' ), 'desc' => __( 'Display logos', 'sportspress' ), diff --git a/modules/sportspress-player-lists.php b/modules/sportspress-player-lists.php index 812a4c97..b7c79c57 100644 --- a/modules/sportspress-player-lists.php +++ b/modules/sportspress-player-lists.php @@ -196,6 +196,14 @@ class SportsPress_Player_Lists { ), apply_filters( 'sportspress_player_list_options', array( + array( + 'title' => __( 'Title', 'sportspress' ), + 'desc' => __( 'Display title', 'sportspress' ), + 'id' => 'sportspress_list_show_title', + 'default' => 'yes', + 'type' => 'checkbox', + ), + array( 'title' => __( 'Players', 'sportspress' ), 'desc' => __( 'Display photos', 'sportspress' ),