Changeset 463683
- Timestamp:
- 11/16/2011 04:17:09 PM (14 years ago)
- Location:
- prophoto3-theme-compatibility-patches/trunk
- Files:
-
- 2 added
- 1 edited
-
p3-compat-admin.css (added)
-
p3-compat-popup.css (added)
-
p3-compatibility-patches.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prophoto3-theme-compatibility-patches/trunk/p3-compatibility-patches.php
r452923 r463683 20 20 } 21 21 22 $this->adminCSS(); 22 23 $this->fixIFramedUploadWindows(); 23 24 } … … 25 26 26 27 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' ); 33 37 } 34 38 }
Note: See TracChangeset
for help on using the changeset viewer.