PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / inc-options / im_export_options.php

im_export_options.php in Adminimize 1.9.1, at inc-options/im_export_options.php

87 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Adminimize
4 * @subpackage Im/Export options
5 * @author Frank Bültge
6 */
7 if ( ! function_exists( 'add_action' ) ) {
8 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
9 exit;
10 }
11 ?>
12 <div id="poststuff" class="ui-sortable meta-box-sortables">
13 <div class="postbox">
14 <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle' ); ?>"><br /></div>
15 <h3 class="hndle" id="import"><?php esc_attr_e( 'Export/Import Options', 'adminimize' ) ?></h3>
16
17 <div class="inside">
18 <br class="clear" />
19
20 <h4><?php esc_attr_e( 'Export', 'adminimize' ) ?></h4>
21
22 <form name="export_options" method="get" action="">
23 <p><?php esc_attr_e(
24 'You can save a JSON formatted ".json" file with your settings.', 'adminimize'
25 ) ?></p>
26
27 <p>
28 <?php wp_nonce_field( 'mw_adminimize_export_nonce', 'mw_adminimize_export_nonce' ); ?>
29 <input type="hidden" name="_mw_adminimize_export" value="true" />
30 <?php
31 $submit_text = esc_html__( 'Export &raquo;', 'adminimize' );
32 submit_button(
33 $text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
34 $other_attributes = NULL
35 );
36 ?>
37 </p>
38 </form>
39
40 <h4><?php esc_attr_e( 'Import', 'adminimize' ) ?></h4>
41
42 <form name="import_options" enctype="multipart/form-data" method="post" action="?page=<?php echo esc_attr(
43 $_GET[ 'page' ]
44 ); ?>">
45 <?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
46 <p><?php esc_attr_e(
47 'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
48 'adminimize'
49 );
50 esc_html_e( 'After import please reload the page to display also all global values from WordPress.', 'adminimize' ); ?>
51 </p>
52
53 <p>
54 <label for="datei_id">
55 <?php esc_html_e(
56 'Choose a ".json" file from your computer:', 'adminimize'
57 ) ?>
58 </label>
59 <input name="import_file" id="datei_id" type="file" />
60 </p>
61
62 <p>
63 <?php wp_nonce_field( 'mw_adminimize_import_nonce', 'mw_adminimize_import_nonce' ); ?>
64 <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import" />
65 <?php
66 $submit_text = esc_html__( 'Upload file and import &raquo;', 'adminimize' );
67 submit_button(
68 $text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
69 $other_attributes = NULL
70 );
71 ?>
72 </p>
73 </form>
74
75 <p>
76 <a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;">
77 <?php esc_html_e(
78 'scroll to top', 'adminimize'
79 ); ?>
80 </a><br class="clear" />
81 </p>
82
83 </div>
84 </div>
85 </div>
86
87