PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.9
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.9
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / views / admin / settings / index.php
wp-all-export / views / admin / settings Last commit date
index.php 5 years ago
index.php
242 lines
1 <style type="text/css">
2 .wpae-shake {
3 -webkit-animation: wpae_shake 0.4s 1 linear;
4 -moz-animation: wpae_shake 0.4s 1 linear;
5 -o-animation: wpae_shake 0.4s 1 linear;
6 }
7 @-webkit-keyframes wpae_shake {
8 0% { -webkit-transform: translate(30px); }
9 20% { -webkit-transform: translate(-30px); }
10 40% { -webkit-transform: translate(15px); }
11 60% { -webkit-transform: translate(-15px); }
12 80% { -webkit-transform: translate(8px); }
13 100% { -webkit-transform: translate(0px); }
14 }
15 @-moz-keyframes wpae_shake {
16 0% { -moz-transform: translate(30px); }
17 20% { -moz-transform: translate(-30px); }
18 40% { -moz-transform: translate(15px); }
19 60% { -moz-transform: translate(-15px); }
20 80% { -moz-transform: translate(8px); }
21 100% { -moz-transform: translate(0px); }
22 }
23 @-o-keyframes wpae_shake {
24 0% { -o-transform: translate(30px); }
25 20% { -o-transform: translate(-30px); }
26 40% { -o-transform: translate(15px); }
27 60% { -o-transform: translate(-15px); }
28 80% { -o-transform: translate(8px); }
29 100% { -o-origin-transform: translate(0px); }
30 }
31 </style>
32
33 <form class="settings" method="post" action="<?php echo $this->baseUrl ?>" enctype="multipart/form-data">
34
35 <div class="wpallexport-header">
36 <div class="wpallexport-logo"></div>
37 <div class="wpallexport-title">
38 <p><?php _e('WP All Export', 'wp_all_export_plugin'); ?></p>
39 <h3><?php _e('Settings', 'wp_all_export_plugin'); ?></h3>
40 </div>
41 </div>
42 <h2 style="padding:0px;"></h2>
43
44 <div class="wpallexport-setting-wrapper">
45 <?php if ($this->errors->get_error_codes()): ?>
46 <?php $this->error() ?>
47 <?php endif ?>
48
49 <h3><?php _e('Import/Export Templates', 'wp_all_export_plugin') ?></h3>
50 <?php $templates = new PMXE_Template_List(); $templates->getBy()->convertRecords() ?>
51 <?php wp_nonce_field('delete-templates', '_wpnonce_delete-templates') ?>
52 <?php if ($templates->total()): ?>
53 <table>
54 <?php foreach ($templates as $t): ?>
55 <tr>
56 <td>
57 <label class="selectit" for="template-<?php echo $t->id ?>"><input id="template-<?php echo $t->id ?>" type="checkbox" name="templates[]" value="<?php echo $t->id ?>" /> <?php echo $t->name ?></label>
58 </td>
59 </tr>
60 <?php endforeach ?>
61 </table>
62 <p class="submit-buttons">
63 <input type="submit" class="button-primary" name="delete_templates" value="<?php _e('Delete Selected', 'wp_all_export_plugin') ?>" />
64 <input type="submit" class="button-primary" name="export_templates" value="<?php _e('Export Selected', 'wp_all_export_plugin') ?>" />
65 </p>
66 <?php else: ?>
67 <em><?php _e('There are no templates saved', 'wp_all_export_plugin') ?></em>
68 <?php endif ?>
69 <p>
70 <input type="hidden" name="is_templates_submitted" value="1" />
71 <input type="file" name="template_file"/>
72 <input type="submit" class="button-primary" name="import_templates" value="<?php _e('Import Templates', 'wp_all_export_plugin') ?>" />
73 </p>
74 </div>
75
76 </form>
77 <br />
78
79 <form name="settings" class="settings" method="post" action="<?php echo $this->baseUrl ?>">
80
81 <h3><?php _e('Files', 'wp_all_export_plugin') ?></h3>
82
83 <table class="form-table">
84 <tbody>
85 <tr>
86 <th scope="row"><label><?php _e('Secure Mode', 'wp_all_export_plugin'); ?></label></th>
87 <td>
88 <fieldset style="padding:0;">
89 <legend class="screen-reader-text"><span><?php _e('Secure Mode', 'wp_all_export_plugin'); ?></span></legend>
90 <input type="hidden" name="secure" value="0"/>
91 <label for="secure"><input type="checkbox" value="1" id="secure" name="secure" <?php echo (($post['secure']) ? 'checked="checked"' : ''); ?>><?php _e('Randomize folder names', 'wp_all_export_plugin'); ?></label>
92 </fieldset>
93 <p class="description">
94 <?php
95 $wp_uploads = wp_upload_dir();
96 ?>
97 <?php printf(__('If enabled, exported files and temporary files will be saved in a folder with a randomized name in %s.<br/><br/>If disabled, exported files will be saved in the Media Library.', 'wp_all_export_plugin'), $wp_uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY ); ?>
98 </p>
99 <p class="submit-buttons">
100 <?php wp_nonce_field('edit-settings', '_wpnonce_edit-settings') ?>
101 <input type="hidden" name="is_settings_submitted" value="1" />
102 <input type="submit" class="button-primary" value="Save Settings" />
103 </p>
104 </td>
105 </tr>
106 </tbody>
107 </table>
108
109 <h3><?php _e('Zapier Integration', 'wp_all_export_plugin') ?></h3>
110
111 <table class="form-table">
112 <tbody>
113 <tr>
114 <th scope="row"><label><?php _e('Getting Started', 'wp_all_export_plugin'); ?></label></th>
115 <td>
116 <p class="description"><?php printf(__('Zapier acts as a middle man between WP All Export and hundreds of other popular apps. To get started go to Zapier.com, create an account, and make a new Zap. Read more: <a target="_blank" href="https://zapier.com/zapbook/wp-all-export-pro/">https://zapier.com/zapbook/wp-all-export-pro/</a>', 'wp_all_export_plugin'), "https://zapier.com/zapbook/wp-all-export-pro/"); ?></p>
117 </td>
118 </tr>
119 <tr>
120 <th scope="row"><label><?php _e('API Key', 'wp_all_export_plugin'); ?></label></th>
121 <td>
122 <input type="text" class="regular-text" name="zapier_api_key" readOnly="readOnly" value=""/>
123 <input type="submit" class="button-secondary generate-zapier-api-key" name="pmxe_generate_zapier_api_key" value="<?php _e('Generate API Key', 'wp_all_export_plugin'); ?>"/>
124 <p class="description"><?php _e('Changing the key will require you to update your existing Zaps on Zapier.', 'wp_all_export_plugin'); ?></p>
125 </td>
126 </tr>
127 </tbody>
128 </table>
129
130 <div class="wpallexport-free-edition-notice zapier-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
131 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=zapier"><?php _e('Upgrade to the Pro edition of WP All Export for Zapier Integration','wp_all_export_plugin');?></a>
132 <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
133 </div>
134
135 <div class="clear"></div>
136 </form>
137
138 <form name="settings" method="post" action="" class="settings">
139
140 <table class="form-table">
141 <tbody>
142
143 <tr>
144 <th scope="row"><label><?php _e('Automatic Scheduling License Key', 'wp_all_export_plugin'); ?></label></th>
145 <td>
146 <input type="password" class="regular-text" name="scheduling_license"
147 value="<?php if (!empty($post['scheduling_license'])) esc_attr_e(PMXE_Plugin::decode($post['scheduling_license'])); ?>"/>
148 <?php if (!empty($post['scheduling_license'])) { ?>
149
150 <?php if (!empty($post['scheduling_license_status']) && $post['scheduling_license_status'] == 'valid') { ?>
151 <div class="license-status inline updated"><?php _e('Active', 'wp_all_export_plugin'); ?></div>
152 <?php } else { ?>
153 <input type="submit" class="button-secondary" name="pmxe_scheduling_license_activate"
154 value="<?php _e('Activate License', 'wp_all_export_plugin'); ?>"/>
155 <div class="license-status inline error"><?php echo $post['scheduling_license_status']; ?></div>
156 <?php } ?>
157
158 <?php } ?>
159 <?php
160 $scheduling = \Wpae\Scheduling\Scheduling::create();
161 if(!($scheduling->checkLicense())){
162 ?>
163 <p class="description"><?php _e('A license key is required to use Automatic Scheduling. If you have already subscribed, <a href="https://www.wpallimport.com/portal/automatic-scheduling/" target="_blank">click here to access your license key</a>.<br>If you don\'t have a license, <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling" target="_blank">click here to subscribe</a>.', 'wp_all_export_plugin'); ?></p>
164 <?php
165 }
166 ?>
167
168 <p class="submit-buttons">
169 <?php wp_nonce_field('edit-license', '_wpnonce_edit-scheduling-license') ?>
170 <input type="hidden" name="is_scheduling_license_submitted" value="1"/>
171 <input type="submit" class="button-primary" value="Save License"/>
172 </p>
173 </td>
174 </tr>
175 </tbody>
176 </table>
177 </form>
178 <form name="client-mode-settings" method="post" action="" class="client-mode-settings">
179
180 <div>
181 <h3>Client Mode</h3>
182 <div style="float: left; width: 20%;">
183 Roles With Access
184 </div>
185 <div style="float: left; width: 70%;">
186
187 <?php foreach ($roles as $key => $role) {
188 $roleObject = get_role($key);
189 ?>
190 <input type="checkbox" id="role-<?php echo $key; ?>"
191 value="<?php echo $key; ?>"
192 <?php if(is_array($post['client_mode_roles']) && in_array($key, $post['client_mode_roles'])) {?> checked="checked" <?php } ?>
193 <?php if($roleObject->has_cap('manage_options')) {?> disabled="disabled" checked="checked" <?php }?>
194 name="client_mode_roles[]"/>
195 <label
196 for="role-<?php echo $key; ?>"><?php echo $role['name']; ?> <br/></label>
197 <?php } ?>
198
199 <p class="submit-buttons">
200 <?php wp_nonce_field('edit-client-mode-settings', '_wpnonce_edit-client_mode_settings') ?>
201 <div class="input wp_all_export_save_client_mode_container">
202 <input type="button" class="button-primary wp_all_export_save_client_mode" value="<?php _e("Save Client Mode Settings", 'wp_all_export_plugin'); ?>"/>
203 </div>
204 </p>
205 </div>
206 <div class="clear"></div>
207 <div class="wpallexport-free-edition-notice php-client-mode-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
208 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=client-mode"><?php _e('Upgrade to the Pro edition of WP All Export to enable Client Mode','wp_all_export_plugin');?></a>
209 <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
210 </div>
211 </div>
212 </form>
213
214 <?php
215 $uploads = wp_upload_dir();
216 $functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php';
217 ?>
218 <hr />
219 <div class="function-editor">
220 <h3><?php _e('Function Editor', 'pmxe_plugin') ?></h3>
221
222 <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo "<?php\n\n?>";?></textarea>
223 <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
224 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=function-editor"><?php _e('Upgrade to the Pro edition of WP All Export to enable the Function Editor','wp_all_export_plugin');?></a>
225 <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
226 </div>
227
228 <div class="input" style="margin-top: 10px;">
229
230 <div class="input wp_all_export_save_functions_container" style="display:inline-block; margin-right: 20px;">
231 <input type="button" class="button-primary wp_all_export_save_functions" value="<?php _e("Save Functions", 'wp_all_export_plugin'); ?>"/>
232 <a href="#help" class="wpallexport-help" title="<?php printf(__("Add functions here for use during your export. You can access this file at %s", "wp_all_export_plugin"), preg_replace("%.*wp-content%", "wp-content", $functions));?>" style="top: 0;">?</a>
233 <div class="wp_all_export_functions_preloader"></div>
234 </div>
235 <div class="input wp_all_export_saving_status">
236
237 </div>
238
239 </div>
240 </div>
241 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a>
242