PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.3.6
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.3.6
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 4 years ago
index.php
246 lines
1 <?php
2 if(!defined('ABSPATH')) {
3 die();
4 }
5 ?>
6 <style type="text/css">
7 .wpae-shake {
8 -webkit-animation: wpae_shake 0.4s 1 linear;
9 -moz-animation: wpae_shake 0.4s 1 linear;
10 -o-animation: wpae_shake 0.4s 1 linear;
11 }
12 @-webkit-keyframes wpae_shake {
13 0% { -webkit-transform: translate(30px); }
14 20% { -webkit-transform: translate(-30px); }
15 40% { -webkit-transform: translate(15px); }
16 60% { -webkit-transform: translate(-15px); }
17 80% { -webkit-transform: translate(8px); }
18 100% { -webkit-transform: translate(0px); }
19 }
20 @-moz-keyframes wpae_shake {
21 0% { -moz-transform: translate(30px); }
22 20% { -moz-transform: translate(-30px); }
23 40% { -moz-transform: translate(15px); }
24 60% { -moz-transform: translate(-15px); }
25 80% { -moz-transform: translate(8px); }
26 100% { -moz-transform: translate(0px); }
27 }
28 @-o-keyframes wpae_shake {
29 0% { -o-transform: translate(30px); }
30 20% { -o-transform: translate(-30px); }
31 40% { -o-transform: translate(15px); }
32 60% { -o-transform: translate(-15px); }
33 80% { -o-transform: translate(8px); }
34 100% { -o-origin-transform: translate(0px); }
35 }
36 </style>
37
38 <form class="settings" method="post" action="<?php echo esc_url($this->baseUrl); ?>" enctype="multipart/form-data">
39
40 <div class="wpallexport-header">
41 <div class="wpallexport-logo"></div>
42 <div class="wpallexport-title">
43 <h3><?php esc_html_e('Settings', 'wp_all_export_plugin'); ?></h3>
44 </div>
45 </div>
46 <h2 style="padding:0px;"></h2>
47
48 <div class="wpallexport-setting-wrapper">
49 <?php if ($this->errors->get_error_codes()): ?>
50 <?php $this->error() ?>
51 <?php endif ?>
52
53 <h3><?php esc_html_e('Import/Export Templates', 'wp_all_export_plugin') ?></h3>
54 <?php $templates = new PMXE_Template_List(); $templates->getBy()->convertRecords() ?>
55 <?php wp_nonce_field('delete-templates', '_wpnonce_delete-templates') ?>
56 <?php if ($templates->total()): ?>
57 <table>
58 <?php foreach ($templates as $t): ?>
59 <tr>
60 <td>
61 <label class="selectit" for="template-<?php echo $t->id ?>"><input id="template-<?php echo esc_attr($t->id) ?>" type="checkbox" name="templates[]" value="<?php echo esc_attr($t->id) ?>" /> <?php echo wp_all_export_clear_xss(esc_html($t->name)); ?></label>
62 </td>
63 </tr>
64 <?php endforeach ?>
65 </table>
66 <p class="submit-buttons">
67 <input type="submit" class="button-primary" name="delete_templates" value="<?php esc_html_e('Delete Selected', 'wp_all_export_plugin') ?>" />
68 <input type="submit" class="button-primary" name="export_templates" value="<?php esc_html_e('Export Selected', 'wp_all_export_plugin') ?>" />
69 </p>
70 <?php else: ?>
71 <em><?php esc_html_e('There are no templates saved', 'wp_all_export_plugin') ?></em>
72 <?php endif ?>
73 <p>
74 <input type="hidden" name="is_templates_submitted" value="1" />
75 <input type="file" name="template_file"/>
76 <input type="submit" class="button-primary" name="import_templates" value="<?php esc_html_e('Import Templates', 'wp_all_export_plugin') ?>" />
77 </p>
78 </div>
79
80 </form>
81 <br />
82
83 <form name="settings" class="settings" method="post" action="<?php echo esc_url($this->baseUrl); ?>">
84
85 <h3><?php esc_html_e('Files', 'wp_all_export_plugin') ?></h3>
86
87 <table class="form-table">
88 <tbody>
89 <tr>
90 <th scope="row"><label><?php esc_html_e('Secure Mode', 'wp_all_export_plugin'); ?></label></th>
91 <td>
92 <fieldset style="padding:0;">
93 <legend class="screen-reader-text"><span><?php esc_html_e('Secure Mode', 'wp_all_export_plugin'); ?></span></legend>
94 <input type="hidden" name="secure" value="0"/>
95 <label for="secure"><input type="checkbox" value="1" id="secure" name="secure" <?php echo (($post['secure']) ? 'checked="checked"' : ''); ?>><?php esc_html_e('Randomize folder names', 'wp_all_export_plugin'); ?></label>
96 </fieldset>
97 <p class="description">
98 <?php
99 $wp_uploads = wp_upload_dir();
100 ?>
101 <?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.', esc_html($wp_uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY) ); ?>
102 </p>
103 <p class="submit-buttons">
104 <?php wp_nonce_field('edit-settings', '_wpnonce_edit-settings') ?>
105 <input type="hidden" name="is_settings_submitted" value="1" />
106 <input type="submit" class="button-primary" value="Save Settings" />
107 </p>
108 </td>
109 </tr>
110 </tbody>
111 </table>
112
113 <h3><?php esc_html_e('Zapier Integration', 'wp_all_export_plugin') ?></h3>
114
115 <table class="form-table">
116 <tbody>
117 <tr>
118 <th scope="row"><label><?php esc_html_e('Getting Started', 'wp_all_export_plugin'); ?></label></th>
119 <td>
120 <p class="description"><?php printf(wp_kses_post(__('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>
121 </td>
122 </tr>
123 <tr>
124 <th scope="row"><label><?php esc_html_e('API Key', 'wp_all_export_plugin'); ?></label></th>
125 <td>
126 <input type="text" class="regular-text" name="zapier_api_key" readOnly="readOnly" value=""/>
127 <input type="submit" class="button-secondary generate-zapier-api-key" name="pmxe_generate_zapier_api_key" value="<?php esc_html_e('Generate API Key', 'wp_all_export_plugin'); ?>"/>
128 <p class="description"><?php esc_html_e('Changing the key will require you to update your existing Zaps on Zapier.', 'wp_all_export_plugin'); ?></p>
129 </td>
130 </tr>
131 </tbody>
132 </table>
133
134 <div class="wpallexport-free-edition-notice zapier-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
135 <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 esc_html_e('Upgrade to the Pro edition of WP All Export for Zapier Integration','wp_all_export_plugin');?></a>
136 <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
137 </div>
138
139 <div class="clear"></div>
140 </form>
141
142 <form name="settings" method="post" action="" class="settings">
143
144 <table class="form-table">
145 <tbody>
146
147 <tr>
148 <th scope="row"><label><?php esc_html_e('Automatic Scheduling License Key', 'wp_all_export_plugin'); ?></label></th>
149 <td>
150 <input type="password" class="regular-text" name="scheduling_license"
151 value="<?php if (!empty($post['scheduling_license'])) esc_attr_e(PMXE_Plugin::decode($post['scheduling_license'])); ?>"/>
152 <?php if (!empty($post['scheduling_license'])) { ?>
153
154 <?php if (!empty($post['scheduling_license_status']) && $post['scheduling_license_status'] == 'valid') { ?>
155 <div class="license-status inline updated"><?php esc_html_e('Active', 'wp_all_export_plugin'); ?></div>
156 <?php } else { ?>
157 <input type="submit" class="button-secondary" name="pmxe_scheduling_license_activate"
158 value="<?php esc_html_e('Activate License', 'wp_all_export_plugin'); ?>"/>
159 <div class="license-status inline error"><?php echo esc_html($post['scheduling_license_status']); ?></div>
160 <?php } ?>
161
162 <?php } ?>
163 <?php
164 $scheduling = \Wpae\Scheduling\Scheduling::create();
165 if(!($scheduling->checkLicense())){
166 ?>
167 <p class="description"><?php echo wp_kses_post(__('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>
168 <?php
169 }
170 ?>
171
172 <p class="submit-buttons">
173 <?php wp_nonce_field('edit-license', '_wpnonce_edit-scheduling-license') ?>
174 <input type="hidden" name="is_scheduling_license_submitted" value="1"/>
175 <input type="submit" class="button-primary" value="Save License"/>
176 </p>
177 </td>
178 </tr>
179 </tbody>
180 </table>
181 </form>
182 <form name="client-mode-settings" method="post" action="" class="client-mode-settings">
183
184 <div>
185 <h3>Client Mode</h3>
186 <div style="float: left; width: 20%;">
187 Roles With Access
188 </div>
189 <div style="float: left; width: 70%;">
190
191 <?php foreach ($roles as $key => $role) {
192 $roleObject = get_role($key);
193 ?>
194 <input type="checkbox" id="role-<?php echo esc_attr($key); ?>"
195 value="<?php echo esc_attr($key); ?>"
196 <?php if(isset($post['client_mode_roles']) && is_array($post['client_mode_roles']) && in_array($key, $post['client_mode_roles'])) {?> checked="checked" <?php } ?>
197 <?php if($roleObject->has_cap('manage_options')) {?> disabled="disabled" checked="checked" <?php }?>
198 name="client_mode_roles[]"/>
199 <label
200 for="role-<?php echo esc_attr($key); ?>"><?php echo esc_html($role['name']); ?> <br/></label>
201 <?php } ?>
202
203 <p class="submit-buttons">
204 <?php wp_nonce_field('edit-client-mode-settings', '_wpnonce_edit-client_mode_settings') ?>
205 <div class="input wp_all_export_save_client_mode_container">
206 <input type="button" class="button-primary wp_all_export_save_client_mode" value="<?php esc_html_e("Save Client Mode Settings", 'wp_all_export_plugin'); ?>"/>
207 </div>
208 </p>
209 </div>
210 <div class="clear"></div>
211 <div class="wpallexport-free-edition-notice php-client-mode-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
212 <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 esc_html_e('Upgrade to the Pro edition of WP All Export to enable Client Mode','wp_all_export_plugin');?></a>
213 <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
214 </div>
215 </div>
216 </form>
217
218 <?php
219 $uploads = wp_upload_dir();
220 $functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php';
221 ?>
222 <hr />
223 <div class="function-editor">
224 <h3><?php esc_html_e('Function Editor', 'pmxe_plugin') ?></h3>
225
226 <textarea id="wp_all_export_code" name="wp_all_export_code"><?php echo "<?php\n\n?>";?></textarea>
227 <div class="wpallexport-free-edition-notice php-functions-upgrade" style="margin: 15px 0; padding: 20px; display: none;">
228 <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 esc_html_e('Upgrade to the Pro edition of WP All Export to enable the Function Editor','wp_all_export_plugin');?></a>
229 <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p>
230 </div>
231
232 <div class="input" style="margin-top: 10px;">
233
234 <div class="input wp_all_export_save_functions_container" style="display:inline-block; margin-right: 20px;">
235 <input type="button" class="button-primary wp_all_export_save_functions" value="<?php esc_html_e("Save Functions", 'wp_all_export_plugin'); ?>"/>
236 <a href="#help" class="wpallexport-help" title="<?php printf(esc_html__("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", esc_html($functions)));?>" style="top: 0;">?</a>
237 <div class="wp_all_export_functions_preloader"></div>
238 </div>
239 <div class="input wp_all_export_saving_status">
240
241 </div>
242
243 </div>
244 </div>
245 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a>
246