Permalink
Browse files

more granular adding of js and css in admin

  • Loading branch information...
1 parent 588f686 commit 1d227f6437461ae5e465ccf40d07e6b0f71d1832 @alexkingorg alexkingorg committed Apr 29, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 admin.php
View
@@ -242,10 +242,12 @@ function cfct_header_image_form() {
function cfct_admin_head() {
// see enqueued style above, we'll activate that in the future
- echo '
+ if ($_GET['page'] == 'carrington-settings') {
+ echo '
<link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo('template_directory').'/carrington-core/css/colorpicker.css" />
- ';
- cfct_admin_css();
+ ';
+ cfct_admin_css();
+ }
// cfct_admin_js();
}
add_action('admin_head', 'cfct_admin_head');

0 comments on commit 1d227f6

Please sign in to comment.