diff --git a/assets/css/sportspress-rtl.css b/assets/css/sportspress-rtl.css index 0c6349dc..0517de48 100644 --- a/assets/css/sportspress-rtl.css +++ b/assets/css/sportspress-rtl.css @@ -55,8 +55,4 @@ left: auto; right: 0; } - .sp-responsive-table-wrapper .scrollable { - margin-left: 0; - margin-right: 50%; - } } \ No newline at end of file diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 735e84ea..41979724 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -276,55 +276,4 @@ .sp-highlight, .sp-heading { font-weight: bold; -} - -@media only screen and (max-width: 40em) { - .sp-responsive-table { - margin-bottom: 0; - } - .sp-pinned-table { - position: absolute; - left: 0; - top: 0; - width: 50%; - overflow: hidden; - overflow-x: scroll; - box-shadow: 0 0 1em rgba(0,0,0,0.5); - } - .sp-pinned-table table { - border-right: none; - border-left: none; - width: 100%; - } - .sp-pinned-table table th, - .sp-pinned-table table td { - white-space: nowrap; - } - .sp-pinned-table td:last-child { - border-bottom: 0; - } - .sp-responsive-table-wrapper { - position: relative; - overflow: hidden; - background: #fff; - } - .sp-responsive-table-wrapper .scrollable { - margin-left: 50%; - } - .sp-responsive-table-wrapper .scrollable { - overflow: scroll; - overflow-y: hidden; - } - .sp-responsive-table-wrapper .scrollable td, - .sp-responsive-table-wrapper .scrollable th { - position: relative; - white-space: nowrap; - overflow: hidden; - } - .sp-responsive-table-wrapper .scrollable .data-number, - .sp-responsive-table-wrapper .scrollable .data-name, - .sp-responsive-table-wrapper .scrollable .data-rank, - .sp-responsive-table-wrapper .scrollable .data-date { - display: none; - } } \ No newline at end of file diff --git a/assets/fonts/sportspress.eot b/assets/fonts/sportspress.eot index 14e166f1..432ebdcf 100755 Binary files a/assets/fonts/sportspress.eot and b/assets/fonts/sportspress.eot differ diff --git a/assets/fonts/sportspress.svg b/assets/fonts/sportspress.svg index 3482e363..ebd58ac3 100755 --- a/assets/fonts/sportspress.svg +++ b/assets/fonts/sportspress.svg @@ -10,6 +10,7 @@ + diff --git a/assets/fonts/sportspress.ttf b/assets/fonts/sportspress.ttf index 94b24708..aaac5e2b 100755 Binary files a/assets/fonts/sportspress.ttf and b/assets/fonts/sportspress.ttf differ diff --git a/assets/fonts/sportspress.woff b/assets/fonts/sportspress.woff index 7e33eaad..a157933d 100755 Binary files a/assets/fonts/sportspress.woff and b/assets/fonts/sportspress.woff differ diff --git a/assets/js/sportspress.js b/assets/js/sportspress.js index ee65a80b..6bc35349 100644 --- a/assets/js/sportspress.js +++ b/assets/js/sportspress.js @@ -9,8 +9,6 @@ function viewport() { (function($) { - var sp_responsive_activated = false; - /* Header */ $('body').prepend( '
' ); @@ -44,7 +42,6 @@ function viewport() { /* Data Tables */ $(".sp-data-table").each(function() { sortable = viewport().width > 640 && $(this).hasClass("sp-sortable-table"); - responsive = $(this).hasClass("sp-responsive-table"); paginated = $(this).hasClass("sp-paginated-table"); display_length = parseInt($(this).attr("data-sp-rows")); if ( display_length == undefined || isNaN( display_length ) ) display_length = 10; @@ -55,7 +52,6 @@ function viewport() { "autoWidth": false, "searching": false, "info": false, - "responsive": responsive, "paging": paginated, "lengthChange": false, "pagingType": "simple_numbers", @@ -81,78 +77,4 @@ function viewport() { /* Scrollable Tables */ $(".sp-scrollable-table").wrap("
"); - /* - * Responsive Tables - * - * Based on responsive-tables.js by ZURB - * - * Credit: ZURB - * Original: https://github.com/zurb/responsive-tables - */ - var sp_responsive_activated = true; - var sp_responsive_switched = false; - var sp_update_tables = function() { - if ((viewport().width <= 640) && !sp_responsive_switched ){ - sp_responsive_switched = true; - $(".sp-responsive-table").each(function(i, element) { - sp_split_table($(element)); - }); - return true; - } - else if (sp_responsive_switched && (viewport().width > 640)) { - sp_responsive_switched = false; - $(".sp-responsive-table").each(function(i, element) { - sp_unsplit_table($(element)); - }); - } - }; - - $(window).load(sp_update_tables); - $(window).on("redraw",function(){sp_responsive_switched=false;sp_update_tables();}); // An event to listen for - $(window).on("resize", sp_update_tables); - - - function sp_split_table(original) - { - original.wrap("
"); - - var copy = original.clone(); - copy.find("td:not(.data-number):not(.data-name):not(.data-rank):not(.data-date), th:not(.data-number):not(.data-name):not(.data-rank):not(.data-date)").css("display", "none"); - copy.removeClass("sp-responsive-table"); - - original.closest(".sp-responsive-table-wrapper").append(copy); - copy.wrap("
"); - original.wrap("
"); - - sp_set_cell_heights(original, copy); - } - - function sp_unsplit_table(original) { - original.closest(".sp-responsive-table-wrapper").find(".sp-pinned-table").remove(); - original.unwrap(); - original.unwrap(); - } - - function sp_set_cell_heights(original, copy) { - var tr = original.find('tr'), - tr_copy = copy.find('tr'), - heights = []; - - tr.each(function (index) { - var self = $(this), - tx = self.find('th, td'); - - tx.each(function () { - var height = $(this).outerHeight(true); - heights[index] = heights[index] || 0; - if (height > heights[index]) heights[index] = height; - }); - - }); - - tr_copy.each(function (index) { - $(this).height(heights[index]); - }); - } - })(jQuery); \ No newline at end of file diff --git a/includes/admin/settings/class-sp-settings-general.php b/includes/admin/settings/class-sp-settings-general.php index c8ed168a..47ba97c8 100644 --- a/includes/admin/settings/class-sp-settings-general.php +++ b/includes/admin/settings/class-sp-settings-general.php @@ -143,7 +143,7 @@ class SP_Settings_General extends SP_Settings_Page { array( 'title' => __( 'Tables', 'sportspress' ), 'desc' => __( 'Responsive', 'sportspress' ), - 'id' => 'sportspress_enable_responsive_tables', + 'id' => 'sportspress_enable_scrollable_tables', 'default' => 'yes', 'type' => 'checkbox', 'checkboxgroup' => 'start', @@ -154,14 +154,6 @@ class SP_Settings_General extends SP_Settings_Page { 'id' => 'sportspress_enable_sortable_tables', 'default' => 'yes', 'type' => 'checkbox', - 'checkboxgroup' => '', - ), - - array( - 'desc' => __( 'Scrollable', 'sportspress' ), - 'id' => 'sportspress_enable_scrollable_tables', - 'default' => 'yes', - 'type' => 'checkbox', 'checkboxgroup' => 'end', ), )); diff --git a/readme.txt b/readme.txt index 61eb3d56..b93624f4 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ === SportsPress - Manage Leagues & Sports Clubs === Contributors: ThemeBoy, brianmiyaji, aylaview -Tags: sport, sports, club, clubs, teams, statistics, stats, metrics, data, fixtures, results, standings, league tables, leagues, shortcodes, sports data, sports club, themeboy, esports, wordpress sports, equations, calculations, events, calendars, players, profiles, staff, seasons, countdowns, football, nfl, footy, afl, baseball, basketball, cricket, darts, handball, hockey, netball, rugby, snooker, soccer, squash, tennis, volleyball, dota 2, league of legends +Tags: sport, sports, club, clubs, teams, statistics, stats, metrics, data, fixtures, results, standings, league tables, leagues, shortcodes, sports data, sports club, themeboy, esports, wordpress sports, equations, calculations, events, calendars, players, profiles, staff, seasons, countdowns, club management, football, nfl, footy, afl, baseball, basketball, cricket, darts, handball, hockey, netball, rugby, snooker, soccer, squash, tennis, volleyball, dota 2, league of legends Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress Requires at least: 3.8 Tested up to: 4.1 @@ -18,7 +18,7 @@ Transform your WordPress blog into a fully configurable team, club, or league we [youtube http://www.youtube.com/watch?v=KQyga_C5a6M] = Industry Reviews = -> "*The SportsPress plugin brings in some amazing features to your WordPress site and league management capabilities. If you are looking forward to create a sports related website on WordPress, you must have a look at SportsPress plugin.*" — [Indexwp](http://www.indexwp.com/sportspress-plugin-review/) +> "*There are number of professional sports club who likes to maintain their information and statistics online, SportsPress plugin makes this process really easy, cost effective and quick.*" — [Indexwp](http://www.indexwp.com/sportspress-plugin-review/) > > "*Script of the Day: While the WordPress repository holds various team and sports-related plugins, few of them come close to what you can achieve with SportsPress.*" — [Softpedia](http://news.softpedia.com/news/Script-of-the-Day-SportsPress-409247.shtml) > @@ -39,7 +39,8 @@ Transform your WordPress blog into a fully configurable team, club, or league we * Venue Information & Maps * Statistics & League Table Columns Configuration * Sport Presets -* Import Events, Teams, Players, and Staff from CSV Files +* Switch Between Club vs Club and Player vs Player Mode. +* Import Events, Clubs, Players, and Staff from CSV Files * Easy Shortcodes Menu in Editor * Events Integrate with iCal * Certified compatibility with [WPML](http://wpml.org/plugin/sportspress/) @@ -102,7 +103,7 @@ Looking for more advanced sports functionality? Upgrade to [SportsPress Pro](htt * Volleyball * Water Polo -= Themes = += SportsPress Themes for Clubs = * [Football Club](https://themeboy.com/products/footballclub/) * [Premier](https://themeboy.com/products/premier/) @@ -116,7 +117,7 @@ Looking for more advanced sports functionality? Upgrade to [SportsPress Pro](htt = Get Involved = -Feel free to share your suggestions with us so we can continue to develop awesome sports features for you guys! +Feel free to share your suggestions with us so we can continue to develop awesome sports club features for you guys! Developers can contribute via the [SportsPress GitHub Repository](https://github.com/ThemeBoy/SportsPress/blob/master/CONTRIBUTING.md). diff --git a/templates/event-list.php b/templates/event-list.php index 43137ee5..cd490c63 100644 --- a/templates/event-list.php +++ b/templates/event-list.php @@ -22,7 +22,6 @@ $defaults = array( 'link_venues' => get_option( 'sportspress_link_venues', 'yes' ) == 'yes' ? true : false, 'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false, 'scrollable' => get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false, - 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_event_list_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_event_list_rows', 10 ), 'order' => 'default', @@ -61,7 +60,7 @@ if ( $id ) { ?>
- +
-1, 'post_type' => 'sp_performance' ) ); foreach ( $performance_posts as $post ): @@ -90,7 +88,7 @@ if ( is_array( $teams ) ): ?>
-
+
@@ -246,7 +244,7 @@ if ( is_array( $teams ) ):

-
+
diff --git a/templates/event-results.php b/templates/event-results.php index bab12ca8..2f867721 100644 --- a/templates/event-results.php +++ b/templates/event-results.php @@ -32,7 +32,6 @@ $data = array_filter( $data ); if ( empty( $data ) ) return false; -$responsive = get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false; $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false; $link_teams = get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false; $show_outcomes = array_key_exists( 'outcome', $labels ); @@ -99,7 +98,7 @@ else: $output .= '

' . __( 'Event Results', 'sportspress' ) . '

'; $output .= '
' . - '
#
' . + '
' . ''; foreach( $labels as $key => $label ): $output .= ''; diff --git a/templates/league-table.php b/templates/league-table.php index 15b11ebe..9c21661c 100644 --- a/templates/league-table.php +++ b/templates/league-table.php @@ -19,7 +19,6 @@ $defaults = array( 'link_posts' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false, 'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false, 'scrollable' => get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false, - 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_table_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_table_rows', 10 ), ); @@ -32,7 +31,7 @@ $output = '

' . get_the_title( $id ) . '

'; $output .= '
'; -$output .= '
' . __( 'Team', 'sportspress' ) . '' . $label . '
' . '' . ''; +$output .= '
' . '' . ''; $table = new SP_League_Table( $id ); diff --git a/templates/player-list.php b/templates/player-list.php index 9b4a997a..ba9c74ba 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -23,7 +23,6 @@ $defaults = array( 'link_teams' => get_option( 'sportspress_link_teams', 'no' ) == 'yes' ? true : false, 'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false, 'scrollable' => get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false, - 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_list_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_list_rows', 10 ), ); @@ -86,7 +85,7 @@ foreach ( $groups as $group ): endif; $output .= '
' . - '
' . '' . ''; + '
' . '' . ''; if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ): if ( in_array( $orderby, array( 'number', 'name' ) ) ): diff --git a/templates/player-statistics.php b/templates/player-statistics.php index 25bd8da3..e4bbc605 100644 --- a/templates/player-statistics.php +++ b/templates/player-statistics.php @@ -15,7 +15,6 @@ if ( ! isset( $id ) ) $player = new SP_Player( $id ); $scrollable = get_option( 'sportspress_enable_scrollable_tables', 'yes' ) == 'yes' ? true : false; -$responsive = get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false; $show_total = get_option( 'sportspress_player_show_total', 'no' ) == 'yes' ? true : false; $leagues = get_the_terms( $id, 'sp_league' ); @@ -36,7 +35,7 @@ if ( is_array( $leagues ) ): $output = '

' . $league->name . '

' . '
' . - '
' . '' . ''; + '
' . '' . ''; foreach( $labels as $key => $label ): $output .= ''; @@ -84,7 +83,7 @@ if ( $show_total ): $output = '

' . __( 'Career Total', 'sportspress' ) . '

' . '
' . - '
' . $label . '
' . '' . ''; + '
' . '' . ''; foreach( $labels as $key => $label ): if ( 'team' == $key )