function podpress_print_admin_css() { global $pagenow, $wp_version; if (TRUE == version_compare($wp_version, '2.8', '>=')) { // for WP >= 2.8 wp_register_style('podpress_admin_styles', plugins_url('style/podpress_admin_wp27plus.css', __FILE__)); } else { // for WP 2.7.x (because the plugins_url() worked differently in WP 2.7.x) wp_register_style('podpress_admin_styles', plugins_url('podpress/style/podpress_admin_wp27plus.css', __FILE__)); } wp_enqueue_style('podpress_admin_styles'); if ('admin.php' == $pagenow and $_GET['page'] == 'podpress/podpress_players.php') { // since 8.8.5.3: styles for the 1PixelOut player with listen wrapper podpress_print_frontend_css(); } if ('admin.php' == $pagenow and ('podpress/podpress_feed.php' == $_GET['page'] or (podPress_isset_upgrade_status('podpress_update_stats_table') or podPress_isset_upgrade_status('podpress_update_statcounts_table')) and 'podpress/podpress_general.php' == $_GET['page']) or 'widgets.php' == $pagenow) { if (TRUE == version_compare($wp_version, '2.8', '>=')) { // for WP >= 2.8 wp_register_style('podpress_jquery_ui', plugins_url('js/jquery/css/custom-theme/jquery-ui-1.8.5.custom.css', __FILE__)); } else { // for WP 2.7.x (because the plugins_url() worked differently in WP 2.7.x) wp_register_style('podpress_jquery_ui', plugins_url('podpress/js/jquery/css/custom-theme/jquery-ui-1.8.5.custom.css', __FILE__)); } wp_enqueue_style('podpress_jquery_ui'); } }
function podpress_print_admin_css() { wp_register_style('podpress_admin_styles', PODPRESS_URL . '/podpress_admin_wp27plus.css'); wp_enqueue_style('podpress_admin_styles'); global $pagenow; if ('admin.php' == $pagenow and $_GET['page'] == 'podpress/podpress_players.php') { // since 8.8.5.3: styles for the 1PixelOut player with listen wrapper podpress_print_frontend_css(); } if ('admin.php' == $pagenow and 'podpress/podpress_feed.php' == $_GET['page'] or 'widgets.php' == $pagenow) { wp_register_style('podpress_jquery_ui', PODPRESS_URL . '/js/jquery/css/custom-theme/jquery-ui-1.8.5.custom.css'); wp_enqueue_style('podpress_jquery_ui'); } }