Plugin Directory

Changeset 463683


Ignore:
Timestamp:
11/16/2011 04:17:09 PM (14 years ago)
Author:
jaredh123
Message:

more tweaks for WP 3.3 B3
move css into enqueued files

Location:
prophoto3-theme-compatibility-patches/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • prophoto3-theme-compatibility-patches/trunk/p3-compatibility-patches.php

    r452923 r463683  
    2020        }
    2121       
     22        $this->adminCSS();
    2223        $this->fixIFramedUploadWindows();
    2324    }
     
    2526   
    2627    protected function fixIFramedUploadWindows() {
    27         if ( $GLOBALS['pagenow'] == 'popup.php' && isset( $_GET['p3_image'] ) ) {
    28             add_action( 'admin_head', create_function( '', 'echo "<style>
    29                 #plupload-upload-ui, p.hide-if-no-js label { display:none; }
    30                 #html-upload-ui { display:block !important; }
    31                 .media-upload-form { margin-top:0; }
    32             </style>";' ) );
     28        if ( $GLOBALS['pagenow'] == 'popup.php' ) {
     29            wp_enqueue_style( 'p3-compat-popup-css', plugin_dir_url( __FILE__ ) .'p3-compat-popup.css' );
     30        }
     31    }
     32   
     33   
     34    protected function adminCSS() {
     35        if ( is_admin() ) {
     36            wp_enqueue_style( 'p3-compat-admin-css', plugin_dir_url( __FILE__ ) .'p3-compat-admin.css' );
    3337        }
    3438    }
Note: See TracChangeset for help on using the changeset viewer.