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
← All changes | inc-options/im_export_options.php +31 -46 1.11.11 → 1.9.1 View file →
@@ -7,60 +7,44 @@
7 7 if ( ! function_exists( 'add_action' ) ) {
8 8 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
9 9 exit;
10 10 }
11 -global $wp_roles;
12 11 ?>
13 -
14 12 <div id="poststuff" class="ui-sortable meta-box-sortables">
15 13 <div class="postbox">
16 - <h3 class="hndle ui-sortable-handle" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"
17 - id="import"><?php esc_attr_e( 'Export/Import Options', 'adminimize' ); ?></h3>
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>
18 16
19 17 <div class="inside">
18 + <br class="clear" />
20 19
21 - <h3><?php esc_attr_e( 'Export', 'adminimize' ); ?></h3>
22 - <p><?php esc_attr_e( 'You can save a JSON formatted ".json" file with your settings.', 'adminimize' ); ?></p>
23 - <label for="_mw_adminimize_choose_export" class="control-label">Export All Roles</label>
24 - <input type="checkbox" id="adminimize-toggle" name="_mw_adminimize_choose_export" value="1"
25 - class="adminimize-checkbox" checked="checked">
26 - <label for="adminimize-toggle" class="switch"></label>
27 - <form method="post" id="adminimize-export">
28 - <p><input type="hidden" name="_mw_adminimize_export" value="true"/></p>
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 +
29 27 <p>
30 28 <?php wp_nonce_field( 'mw_adminimize_export_nonce', 'mw_adminimize_export_nonce' ); ?>
29 + <input type="hidden" name="_mw_adminimize_export" value="true" />
31 30 <?php
32 31 $submit_text = esc_html__( 'Export &raquo;', 'adminimize' );
33 - submit_button( $submit_text, 'primary', '_mw_adminimize_save', false );
32 + submit_button(
33 + $text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
34 + $other_attributes = NULL
35 + );
34 36 ?>
35 37 </p>
36 38 </form>
37 - <br class="clear">
38 - <form method="post" id="adminimize-export-role">
39 - <p>
40 - <label><?php esc_attr_e( 'Choose one or more roles:', 'adminimize' ); ?><br>
41 - <select name="select_adminimize_roles[]" multiple id="mw_adminimize_export_select_roles">
42 - <?php foreach ( $wp_roles->role_names as $role_name => $data ) : ?>
43 - <option value="<?php echo $role_name; ?>"><?php echo $data; ?></option>
44 - <?php endforeach; ?>
45 - </select>
46 - </label>
47 - </p>
48 - <p><input type="hidden" name="_mw_adminimize_export_role" value="true"/></p>
49 - <p>
50 - <?php wp_nonce_field( 'mw_adminimize_export_role_nonce', 'mw_adminimize_export_role_nonce' ); ?>
51 - <?php
52 - $submit_text = esc_html__( 'Export role(s) &raquo;', 'adminimize' );
53 - submit_button( $submit_text, 'primary', '_mw_adminimize_save', false ); ?>
54 - </p>
55 - </form>
56 - <br class="clear">
57 39
58 - <h3><?php esc_attr_e( 'Import', 'adminimize' ) ?></h3>
59 - <form name="import_options" enctype="multipart/form-data" method="post"
60 - action="?page=<?php echo esc_attr( $_GET['page'] ); ?>">
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 + ); ?>">
61 45 <?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
62 - <p><?php _e(
46 + <p><?php esc_attr_e(
63 47 'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
64 48 'adminimize'
65 49 );
66 50 esc_html_e( 'After import please reload the page to display also all global values from WordPress.', 'adminimize' ); ?>
@@ -71,19 +55,19 @@
71 55 <?php esc_html_e(
72 56 'Choose a ".json" file from your computer:', 'adminimize'
73 57 ) ?>
74 58 </label>
75 - <input name="import_file" id="datei_id" type="file"/>
59 + <input name="import_file" id="datei_id" type="file" />
76 60 </p>
77 61
78 62 <p>
79 63 <?php wp_nonce_field( 'mw_adminimize_import_nonce', 'mw_adminimize_import_nonce' ); ?>
80 - <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import"/>
64 + <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import" />
81 65 <?php
82 66 $submit_text = esc_html__( 'Upload file and import &raquo;', 'adminimize' );
83 67 submit_button(
84 - $text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = false,
85 - $other_attributes = null
68 + $text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
69 + $other_attributes = NULL
86 70 );
87 71 ?>
88 72 </p>
89 73 </form>
@@ -88,14 +72,15 @@
88 72 </p>
89 73 </form>
90 74
91 75 <p>
92 - <a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;">
93 - <?php esc_html_e( 'scroll to top', 'adminimize' ); ?>
94 - </a>
95 - <br class="clear"/>
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" />
96 81 </p>
97 82
98 83 </div>
99 84 </div>
100 85 </div>
101 -
86 +