adding context help code to upload

This commit is contained in:
zerzix
2010-09-08 20:19:12 -04:00
parent 9b15302ab2
commit da802cb028
2 changed files with 14 additions and 7 deletions
+7
View File
@@ -35,6 +35,7 @@ function ceo_add_menu_pages() {
case 'comiceasel-upload':
add_action('admin_print_scripts-' . $upload_hook, 'ceo_load_scripts_upload');
add_action('admin_print_styles-' . $upload_hook, 'ceo_load_styles_upload');
add_action( 'admin_head-settings_page_' . $upload_hook, 'ceo_add_help_upload' );
break;
}
}
@@ -54,6 +55,12 @@ function ceo_load_styles_upload() {
wp_enqueue_style('comiceasel-fileuploader-style', ceo_pluginfo('plugin_url') .'/css/fileuploader.css');
}
function ceo_add_help_upload() {
global $current_screen;
add_contextual_help( $current_screen, __( 'Help\'s on the way! Don\'t panic!' ) );
}
// This is done this way to *not* load pages unless they are called, self sufficient code, but since attached to the ceo-core it can use the library in core.
function ceo_image_manager() {
require_once('ceo-image-manager.php');
+7 -7
View File
@@ -23,7 +23,12 @@
<!-- or put a simple form for upload here -->
</noscript>
</div>
</td>
</tr>
</table>
</form>
</div>
<script>
function createUploader(){
var uploader = new qq.FileUploader({
@@ -51,9 +56,4 @@
// in your app create uploader as soon as the DOM is ready
// don't wait for the window to load
window.onload = createUploader;
</script>
</td>
</tr>
</table>
</form>
</div>
</script>