Data table styling and options

This commit is contained in:
Brian Miyaji
2014-01-08 12:18:39 +11:00
parent 126062ed5e
commit e76d392726
18 changed files with 35 additions and 233 deletions

View File

@@ -3,8 +3,6 @@ function sportspress_enqueue_scripts() {
// Styles
wp_register_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array(), time() );
wp_enqueue_style( 'sportspress');
wp_register_style( 'jquery-datatables', SPORTSPRESS_PLUGIN_URL . 'assets/css/jquery.dataTables.css', array(), '1.9.4' );
wp_enqueue_style( 'jquery-datatables');
// Scripts
wp_enqueue_script( 'jquery' );

View File

@@ -7,14 +7,14 @@ function sportspress_the_content( $content ) {
global $post;
// Display league table
$content .= '<p>' . sportspress_league_table( $post->ID ) . '</p>';
$content .= sportspress_league_table( $post->ID );
elseif ( is_singular( 'sp_list' ) && in_the_loop() ):
global $post;
// Display player list
$content .= '<p>' . sportspress_player_list( $post->ID ) . '</p>';
$content .= sportspress_player_list( $post->ID );
endif;