From e40f6e902649503c8831c9f75df70c94cbddc1ef Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 30 Jan 2015 18:36:31 +1100 Subject: [PATCH] Merge scrollable and responsive settings --- assets/css/sportspress-rtl.css | 4 - assets/css/sportspress.css | 51 ------------ assets/fonts/sportspress.eot | Bin 6524 -> 6540 bytes assets/fonts/sportspress.svg | 1 + assets/fonts/sportspress.ttf | Bin 6344 -> 6360 bytes assets/fonts/sportspress.woff | Bin 6420 -> 6436 bytes assets/js/sportspress.js | 78 ------------------ .../settings/class-sp-settings-general.php | 10 +-- readme.txt | 11 +-- templates/event-list.php | 3 +- templates/event-performance.php | 6 +- templates/event-results.php | 3 +- templates/league-table.php | 3 +- templates/player-list.php | 3 +- templates/player-statistics.php | 5 +- 15 files changed, 16 insertions(+), 162 deletions(-) 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 14e166f1f93a1a7871e8cda894af74f2820e042c..432ebdcf128d2ade42439b6226fd3560693a636b 100755 GIT binary patch delta 1326 zcmZuxU2Gdg5T4od`Odx{+s)nir>5Vx(&92Py&fs0yIt9CX$;5 zwU8i6!vhjficmTFK!vJO9*|lgAsGqsf)Ge8NVKXDk$C6}jTCrktE5E&5hC_#1zuQb z_S@u6&`CHmckK8HV5kWKUs_ds#s3E# zJ_1p2KnM_`Yy6sTO3PON_Qs+DF`6x4TqazE$r=S>wllgfo=g>J>YAUXX)4ZtQ&kc4 zVt;Qa)Z1Uw{~Ki|o0})I^}ah62*hl`D?y{2G0H}eqLHDvdAU^FT`KJ^mfp2p{IMAN zYi~H`h~$9?qyU;8E@io0iRetJG!qUiE(XHmWBazL<<8Es)-blmwDoalZT>Zh)n`R>y?S6X~7ulpxEjqf+(OPgz*qV+>$`74@6ydclVjRmu0=Y+1Kr^ zT@{zeU=KaPRMN@Gs5U5?KVk=}7rxV%OLic=0C~-yju5I>!%RlesMR*5@bYS)Bs-CD zIoN@Ub95>lEcGh{y`4e}5yTtv#KgWN_ue$cTF1qg0 WKz6VwdU1%It6h7z9%+CJI{_pJE*-Uq5cXnsnge1GO+1=JAo1dDOto0!&DU^zhY10If zHjpTl7W1HB3stF8gre9Iib#r}?t}PJtU~=kLHZyF6{N<1U_%2cS~PfPw=sEgn3?mP zbMCqK*VY2fnG@$fVA0I0E#KRL0$FoXbz&aC_7?DJEf zC0}}v`MUw4cc)KG94Eh&z6Xf&EMJ*s0q!1QFy704+3C5(GnJ2oe&!!z{<+!HlM@4# z;p@!5%lv`4i8J%i0iOUU>^#sxU;(xP&di@)SOkuxfWB+b;#v6tgL^>- z9w;E_8}5zpM%>=S{q}ycch9GRTY+~17XmN)*ZiX2CH*7)DLs(ZrC+6=rF+tkzT3Vl zzRNz@`_O)y^fi7U1!CV4zFMMCgc>_8;}QcXCQ(UZ$*NRqSna}m7aHM=$xNR4HI|68 zw8GW}(5S{-M#e1nR9I9-FoyMXUn0?$)`yLqSS?Z7CCgoumeieiUz*Z%n(m`%yrHUU zy=c{$agbGX(B?`s5-n#kLI92|nPtk@2DWfDO9nD42Ors=w- z)!W$LvPd@Jd`MJW9$MvbPwE zv)MTLJg%(Kk$?+14=)UvWZbKNxOPlv;N35im4MZtRY{h#3`1@Yw(GD~6p>FENJ2 zs39xWd>NrQuIss+u8$YDk$FH>ckNQu1Lii0WDh3};+^Ko!d6Y8S+jYxxi-I5m2XyI z?Ulpo!508rFa-&`g5N*{6wsj28GDmx%gGt->0s~g;B)#5@a^hfuWng;HD1M(ttlzH zUpdvkh~JS6IZCdRn`D)9b5C-A@XP!|q1W| + diff --git a/assets/fonts/sportspress.ttf b/assets/fonts/sportspress.ttf index 94b2470801ae96db71dfbb6f68ab1b2499051c00..aaac5e2b7f14eb7a2648a47b159df5b94d341dc5 100755 GIT binary patch delta 1280 zcmZuxO>7%Q6n-=7^{%}?_Qv~T8`rVDj@>v>Vmr1sp^cMHW;j)c2|PLiOeTC*J`;0V4d7`Qs}9;0D0E39?6OuO9w*;^qe7NdV6ei-+bH z@V{Rl1WMllv?)T7ho( z5bB!=g;yMKaMA2{P5{S?P0{})4X+hMN&KY@RF!7FfEaF0TxgDwL zAru#p9*Jc$xxTd8j*MI;&e&BW7fUfom3fA3kHtD&uHCT?iaooI*6#38{*EA6aOOPi zpyge=WVhG878itlNXNVy^`%@_qH(vh%P+Zo(ZclVNrpMe$jm8*sptqvJTEyN8I5S} zF`V*JLEiJ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ix2@P`In@t85=- zPTI%978fD>@aR}LA9t!%Ctiqr`sYBgJQj|r9(93X9+H$Y^W%pjw;TByt z3|+6bwN)F;od}FX^mw(ceXt=6wzpN|y8Bt+7-yqiw?oVZSbvMD0&B4QjMy&n36789 zbd2MYyn9|Wo1zy&ErQSzx)8115I-bSY&JQIy`3yY>+Rn$BPZNxtZ6 z6r&1^k@<6Yb&U=NJ(%hNVS_BxxwS!Zy~f4{IdC~_khim3ft_g# z#}Qza8ha$e%rMFiCzF{>GC7>zW>>eictCgICQE|jDvRT6z zDQ+`szoxaeYTABln?*9Cu><&KJ+iQsQ>f=W7_Z0Xwz6{dtlCxSeWG7V9M_)>b^VS4 ztc?hLedn*&x2$_wskA2R^5z!?3vmYkaX`uaR(Zi$z~7NH87C{`BXWoHaZhr8@R#`e lLYLz}P_n7Z(-' ); @@ -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 )