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 +86 -46 1.7.18 → 1.9.1 View file →
@@ -1,46 +1,86 @@
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 _e('Click to toggle'); ?>"><br/></div>
15 - <h3 class="hndle" id="import"><?php _e('Export/Import Options', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h3>
16 - <div class="inside">
17 - <br class="clear" />
18 -
19 - <h4><?php _e('Export', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h4>
20 - <form name="export_options" method="get" action="">
21 - <p><?php _e('You can save a .seq file with your options.', FB_ADMINIMIZE_TEXTDOMAIN ) ?></p>
22 - <p id="submitbutton">
23 - <input type="hidden" name="_mw_adminimize_export" value="true" />
24 - <input type="submit" name="_mw_adminimize_save" value="<?php _e('Export &raquo;', FB_ADMINIMIZE_TEXTDOMAIN ) ?>" class="button" />
25 - </p>
26 - </form>
27 -
28 - <h4><?php _e('Import', FB_ADMINIMIZE_TEXTDOMAIN ) ?></h4>
29 - <form name="import_options" enctype="multipart/form-data" method="post" action="?page=<?php echo $_GET['page'];?>">
30 - <?php wp_nonce_field('mw_adminimize_nonce'); ?>
31 - <p><?php _e('Choose a Adminimize (<em>.seq</em>) file to upload, then click <em>Upload file and import</em>.', FB_ADMINIMIZE_TEXTDOMAIN ) ?></p>
32 - <p>
33 - <label for="datei_id"><?php _e('Choose a file from your computer', FB_ADMINIMIZE_TEXTDOMAIN ) ?>: </label>
34 - <input name="datei" id="datei_id" type="file" />
35 - </p>
36 - <p id="submitbutton">
37 - <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import" />
38 - <input type="submit" name="_mw_adminimize_save" value="<?php _e('Upload file and import &raquo;', FB_ADMINIMIZE_TEXTDOMAIN ) ?>" class="button" />
39 - </p>
40 - </form>
41 - <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
42 -
43 - </div>
44 - </div>
45 - </div>
46 -
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 +