Data table styling and options
This commit is contained in:
@@ -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' );
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user