diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index 147dd09c..a7060adb 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -253,6 +253,9 @@ } /* Event Performance */ +.sp-event-performance thead { + display: none; +} .sp-event-performance .sub { background: rgba(0,0,0,0.05); } diff --git a/assets/js/sportspress.js b/assets/js/sportspress.js index 358b9468..0c03477c 100644 --- a/assets/js/sportspress.js +++ b/assets/js/sportspress.js @@ -25,6 +25,22 @@ function sp_viewport() { }); }); + /* Scrollable Tables */ + $(".sp-scrollable-table").wrap("
"); + + /* Selector Redirect */ + $(".sp-selector-redirect").change(function() { + window.location = $(this).val(); + }); + + /* Template Tabs */ + $(".sp-tab-menu-item a").click(function() { + $template = $(this).data("sp-tab"); + $(this).closest(".sp-tab-menu-item").addClass("sp-tab-menu-item-active").siblings(".sp-tab-menu-item").removeClass("sp-tab-menu-item-active"); + $(this).closest(".sp-tab-group").find(".sp-tab-content-"+$template).show().siblings(".sp-tab-content").hide(); + return false; + }); + /* API method to get paging information */ $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) { @@ -76,20 +92,4 @@ function sp_viewport() { } }); - /* Scrollable Tables */ - $(".sp-scrollable-table").wrap("
"); - - /* Selector Redirect */ - $(".sp-selector-redirect").change(function() { - window.location = $(this).val(); - }); - - /* Template Tabs */ - $(".sp-tab-menu-item a").click(function() { - $template = $(this).data("sp-tab"); - $(this).closest(".sp-tab-menu-item").addClass("sp-tab-menu-item-active").siblings(".sp-tab-menu-item").removeClass("sp-tab-menu-item-active"); - $(this).closest(".sp-tab-group").find(".sp-tab-content-"+$template).show().siblings(".sp-tab-content").hide(); - return false; - }); - })(jQuery); \ No newline at end of file diff --git a/templates/event-performance-table.php b/templates/event-performance-table.php index 2a91192d..b23edbaa 100644 --- a/templates/event-performance-table.php +++ b/templates/event-performance-table.php @@ -45,6 +45,12 @@ if ( ! isset( $subs ) ) $subs = array(); $label ): ?> + + + + + +