Enqueue admin scripts and styles in class

This commit is contained in:
Brian Miyaji
2014-03-26 11:51:07 +11:00
parent 2151599a75
commit 95a7fbb9c7
4 changed files with 168 additions and 114 deletions

View File

@@ -0,0 +1,51 @@
<?php
/**
* SportsPress Admin Functions
*
* @author ThemeBoy
* @category Core
* @package SportsPress/Admin/Functions
* @version 0.7
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* Get all SportsPress screen ids
*
* @return array
*/
function sp_get_screen_ids() {
return apply_filters( 'sportspress_screen_ids', array(
'edit-sp_result',
'sp_result',
'edit-sp_outcome',
'sp_outcome',
'edit-sp_performance',
'sp_performance',
'edit-sp_column',
'sp_column',
'edit-sp_metric',
'sp_metric',
'edit-sp_statistic',
'sp_statistic',
'edit-sp_event',
'sp_event',
'edit-sp_calendar',
'sp_calendar',
'edit-sp_team',
'sp_team',
'edit-sp_table',
'sp_table',
'edit-sp_player',
'sp_player',
'edit-sp_list',
'sp_list',
'edit-sp_staff',
'sp_staff',
'edit-sp_venue',
'edit-sp_league',
'edit-sp_season',
'edit-sp_position',
) );
}