Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-admin-ui.php Secret
Created Dec 4, 2017

What would you like to do?
* This is the parent administration UI. This includes a single partial for the messaging.
<div class="wrap">
<h1 class="wp-heading-inline">Import New Item</h1>
<?php include_once 'partials/error-invalid-file.php'; ?>
<div id="acme-upload-new-item-pdf">
<form action="" enctype="multipart/form-data" method="post">
<p>Upload a PDF</p>
<input type="file" />
<?php submit_button( 'Upload' ); ?>
<?php wp_nonce_field( 'acme-upload', 'acme-importer' ); ?>
</div><!-- #acme-upload-new-item-pdf -->
</div><!-- .wrap -->
<div id="invalid-file-message" class="error notice is-dismissible">
<p>You have attempted to upload an invalid file type.</p>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">Dismiss this notice.</span>
</div><!-- #invalid-file-message -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.