From 9ea942b1c2a90a188dd95ab2cc52b94638953448 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 8 Mar 2014 01:41:39 +1100 Subject: [PATCH] Rearrange player profile default content --- admin/hooks/the-content.php | 18 +----------------- assets/js/sportspress.js | 15 --------------- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/admin/hooks/the-content.php b/admin/hooks/the-content.php index e6779b99..4dfbde0c 100644 --- a/admin/hooks/the-content.php +++ b/admin/hooks/the-content.php @@ -62,7 +62,7 @@ function sportspress_default_player_content( $content ) { if ( is_singular( 'sp_player' ) && in_the_loop() ): $metrics = sportspress_player_metrics(); $statistics = sportspress_player_statistics(); - $content = $metrics . $statistics . $content; + $content .= $metrics . $statistics; endif; return $content; } @@ -76,19 +76,3 @@ function sportspress_default_list_content( $content ) { return $content; } add_filter( 'the_content', 'sportspress_default_list_content' ); - - -/* - if ( ! $slug ) - return; - - $venue = get_term_by( 'slug', $slug, 'sp_venue' ); - $t_id = $venue->term_id; - $venue_meta = get_option( "taxonomy_$t_id" ); - $address = sportspress_array_value( $venue_meta, 'sp_address', null ); - $latitude = sportspress_array_value( $venue_meta, 'sp_latitude', null ); - $longitude = sportspress_array_value( $venue_meta, 'sp_longitude', null ); - - if ( $latitude != null && $longitude != null ) - echo '
'; - */ \ No newline at end of file diff --git a/assets/js/sportspress.js b/assets/js/sportspress.js index 7fc5b6b9..23543c2f 100644 --- a/assets/js/sportspress.js +++ b/assets/js/sportspress.js @@ -41,21 +41,6 @@ function viewport() { { "sType": "numeric", "aTargets": [ 0 ] }, ] }); - - $(".sp-player-statistics").dataTable({ - "aaSorting": [], - "bAutoWidth": false, - "bFilter": false, - "bInfo": false, - "bPaginate": false, - "bSort": true, - "oLanguage": { - "oAria": { - "sSortAscending": "", - "sSortDescending": "" - } - } - }); }