mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-07-19 13:29:13 -04:00
adding context help code to upload
This commit is contained in:
@@ -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
@@ -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>
|
||||
Reference in New Issue
Block a user