Permalink
Browse files

Update CSS for WP 3.3

  • Loading branch information...
sawyerh committed Oct 21, 2011
1 parent e418aeb commit 709f8f2a0a66b0410a8dcf0680a66f62cb694dcf
Showing with 14 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +6 −0 css/styles.css
  3. +7 −1 social-bartender.php
View
@@ -0,0 +1 @@
+.DS_Store
View
@@ -67,6 +67,12 @@
display: inline;
}
+.howto span{
+ margin-top: 4px;
+ display: block;
+ float: left;
+}
+
#sh_sb_icon_new{
float: left;
width: 150px;
View
@@ -61,7 +61,13 @@ function sh_sb_image_admin_scripts() {
//style actions with page detection
function sh_sb_image_admin_styles() {
- wp_enqueue_style( 'sh-image-upload', SH_SB_DIR.'css/styles.css', array( 'thickbox', 'nav-menu' ) );
+ if( version_compare( '3.3', get_bloginfo( 'version' ), '>' ) ):
+ wp_register_style( 'social-bartender-css', SH_SB_DIR.'css/styles.css', array( 'thickbox', 'nav-menu' ) );
+ else:
+ wp_register_style( 'social-bartender-css', SH_SB_DIR.'css/styles.css', array( 'wp-admin' ) );
+ endif;
+
+ wp_enqueue_style( 'social-bartender-css' );
}
/**

0 comments on commit 709f8f2

Please sign in to comment.