More cleaning and renaming
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
function sportspress_admin_enqueue_scripts() {
|
||||
wp_register_style( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL . 'assets/css/admin.css', array(), time() );
|
||||
wp_enqueue_style( 'sportspress-admin');
|
||||
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL .'/assets/js/admin.js', array( 'jquery' ), time(), true );
|
||||
}
|
||||
|
||||
@@ -131,10 +131,6 @@ function sportspress_admin_init() {
|
||||
update_option( 'sportspress_installed', 1 );
|
||||
|
||||
endif;
|
||||
|
||||
// Load admin styles
|
||||
wp_register_style( 'sportspress-admin', SPORTSPRESS_PLUGIN_URL . 'assets/css/admin.css', array(), '1.0' );
|
||||
wp_enqueue_style( 'sportspress-admin');
|
||||
|
||||
// Add settings sections
|
||||
register_setting(
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
function sp_manage_posts_columns() {
|
||||
sportspress_highlight_admin_menu();
|
||||
}
|
||||
14
admin/actions/wp-enqueue-scripts.php
Normal file
14
admin/actions/wp-enqueue-scripts.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
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' );
|
||||
wp_enqueue_script( 'jquery-datatables', SPORTSPRESS_PLUGIN_URL .'/assets/js/jquery.dataTables.min.js', array( 'jquery' ), '1.9.4', true );
|
||||
wp_enqueue_script( 'sportspress', SPORTSPRESS_PLUGIN_URL .'/assets/js/sportspress.js', array( 'jquery' ), time(), true );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'sportspress_enqueue_scripts' );
|
||||
Reference in New Issue
Block a user