51 '<li>' . __('Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.') . '</li>' . |
51 '<li>' . __('Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.') . '</li>' . |
52 '</ul>' |
52 '</ul>' |
53 ) ); |
53 ) ); |
54 get_current_screen()->set_help_sidebar( |
54 get_current_screen()->set_help_sidebar( |
55 '<p><strong>' . __('For more information:') . '</strong></p>' . |
55 '<p><strong>' . __('For more information:') . '</strong></p>' . |
56 '<p>' . __('<a href="http://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a>') . '</p>' . |
56 '<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a>') . '</p>' . |
57 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
57 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
58 ); |
58 ); |
59 |
59 |
60 require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
60 require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
61 |
61 |
62 $form_class = 'media-upload-form type-form validate'; |
62 $form_class = 'media-upload-form type-form validate'; |
63 |
63 |
64 if ( get_user_setting('uploader') || isset( $_GET['browser-uploader'] ) ) |
64 if ( get_user_setting('uploader') || isset( $_GET['browser-uploader'] ) ) |
65 $form_class .= ' html-uploader'; |
65 $form_class .= ' html-uploader'; |
66 ?> |
66 ?> |
67 <div class="wrap"> |
67 <div class="wrap"> |
68 <?php screen_icon(); ?> |
|
69 <h2><?php echo esc_html( $title ); ?></h2> |
68 <h2><?php echo esc_html( $title ); ?></h2> |
70 |
69 |
71 <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form"> |
70 <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form"> |
72 |
71 |
73 <?php media_upload_form(); ?> |
72 <?php media_upload_form(); ?> |