PluginProbe
Order Tracking – WordPress Status Tracking Plugin / 3.2.2
Order Tracking – WordPress Status Tracking Plugin v3.2.2
3.5.4 3.5.3 3.5.2 3.5.1 3.5.0 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.3.0 3.3.1 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.15 All 235 releases
order-tracking / includes / InstallationWalkthrough.class.php

InstallationWalkthrough.class.php in Order Tracking – WordPress Status Tracking Plugin 3.2.2, at includes/InstallationWalkthrough.class.php

465 lines 21.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class to handle everything related to the walk-through that runs on plugin activation
5 */
6
7 if ( ! defined( 'ABSPATH' ) )
8 exit;
9
10 class ewdotpInstallationWalkthrough {
11
12 public function __construct() {
13
14 add_action( 'admin_menu', array( $this, 'register_install_screen' ) );
15 add_action( 'admin_head', array( $this, 'hide_install_screen_menu_item' ) );
16 add_action( 'admin_init', array( $this, 'redirect' ), 9999 );
17
18 add_action( 'admin_head', array( $this, 'admin_enqueue' ) );
19
20 add_action( 'wp_ajax_ewd_otp_welcome_add_status', array( $this, 'add_status' ) );
21 add_action( 'wp_ajax_ewd_otp_welcome_add_tracking_page', array( $this, 'add_tracking_page' ) );
22 add_action( 'wp_ajax_ewd_otp_welcome_set_options', array( $this, 'set_options' ) );
23 add_action( 'wp_ajax_ewd_otp_welcome_add_order', array( $this, 'add_order' ) );
24 }
25
26 /**
27 * On activation, redirect the user if they haven't used the plugin before
28 * @since 3.0.0
29 */
30 public function redirect() {
31 global $ewd_otp_controller;
32
33 if ( ! get_transient( 'ewd-otp-getting-started' ) )
34 return;
35
36 delete_transient( 'ewd-otp-getting-started' );
37
38 if ( is_network_admin() || isset( $_GET['activate-multi'] ) )
39 return;
40
41 if ( ! empty( $ewd_otp_controller->order_manager->get_matching_orders( array() ) ) ) {
42 return;
43 }
44
45 wp_safe_redirect( admin_url( 'index.php?page=ewd-otp-getting-started' ) );
46 exit;
47 }
48
49 /**
50 * Create the installation admin page
51 * @since 3.0.0
52 */
53 public function register_install_screen() {
54
55 add_dashboard_page(
56 esc_html__( 'Order Tracking - Welcome!', 'order-tracking' ),
57 esc_html__( 'Order Tracking - Welcome!', 'order-tracking' ),
58 'manage_options',
59 'ewd-otp-getting-started',
60 array($this, 'display_install_screen')
61 );
62 }
63
64 /**
65 * Hide the installation admin page from the WordPress sidebar menu
66 * @since 3.0.0
67 */
68 public function hide_install_screen_menu_item() {
69
70 remove_submenu_page( 'index.php', 'ewd-otp-getting-started' );
71 }
72
73 /**
74 * Lets the user create the statuses they want to assign to their orders
75 * @since 3.0.0
76 */
77 public function add_status() {
78 global $ewd_otp_controller;
79
80 // Authenticate request
81 if (
82 ! check_ajax_referer( 'ewd-otp-getting-started', 'nonce' )
83 or ! current_user_can( $ewd_otp_controller->settings->get_setting( 'access-role' ) )
84 ) {
85 ewdotpHelper::admin_nopriv_ajax();
86 }
87
88 $statuses = ewd_otp_decode_infinite_table_setting( $ewd_otp_controller->settings->get_setting( 'statuses' ) );
89
90 $status_name = isset( $_POST['status_name'] ) ? sanitize_text_field( $_POST['status_name'] ) : '';
91 $status_percentage = isset( $_POST['status_percentage'] ) ? sanitize_text_field( $_POST['status_percentage'] ) : '';
92
93 $statuses[] = array(
94 'status' => $status_name,
95 'percentage' => $status_percentage,
96 'email' => '',
97 'internal' => 'no'
98 );
99
100 $ewd_otp_controller->settings->set_setting( 'statuses', json_encode( $statuses ) );
101
102 $ewd_otp_controller->settings->save_settings();
103
104 exit();
105 }
106
107 /**
108 * Adds a new Order Tracking shortcode page
109 * @since 3.0.0
110 */
111 public function add_tracking_page() {
112 global $ewd_otp_controller;
113
114 // Authenticate request
115 if (
116 ! check_ajax_referer( 'ewd-otp-getting-started', 'nonce' )
117 or ! current_user_can( $ewd_otp_controller->settings->get_setting( 'access-role' ) )
118 ) {
119 ewdotpHelper::admin_nopriv_ajax();
120 }
121
122 $args = array(
123 'post_title' => isset( $_POST['tracking_page_title'] ) ? sanitize_text_field( $_POST['tracking_page_title'] ) : '',
124 'post_content' => '<!-- wp:paragraph --><p> [tracking-form] </p><!-- /wp:paragraph -->',
125 'post_status' => 'publish',
126 'post_type' => 'page'
127 );
128
129 wp_insert_post( $args );
130
131 exit();
132 }
133
134 /**
135 * Set a number of key options selected during the walk-through process
136 * @since 3.0.0
137 */
138 public function set_options() {
139 global $ewd_otp_controller;
140
141 // Authenticate request
142 if (
143 ! check_ajax_referer( 'ewd-otp-getting-started', 'nonce' )
144 or ! current_user_can( $ewd_otp_controller->settings->get_setting( 'access-role' ) )
145 ) {
146 ewdotpHelper::admin_nopriv_ajax();
147 }
148
149 $ewd_otp_options = get_option( 'ewd-otp-settings' );
150
151 if ( isset( $_POST['order_information'] ) ) { $ewd_otp_options['order-information'] = is_array( json_decode( stripslashes( $_POST['order_information'] ) ) ) ? array_map( 'sanitize_text_field', json_decode( stripslashes( $_POST['order_information'] ) ) ) : array(); }
152 if ( isset( $_POST['email_frequency'] ) ) { $ewd_otp_options['email-frequency'] = sanitize_text_field( $_POST['email_frequency'] ); }
153 if ( isset( $_POST['form_instructions'] ) ) { $ewd_otp_options['form-instructions'] = sanitize_textarea_field( $_POST['form_instructions'] ); }
154 if ( isset( $_POST['hide_blank_fields'] ) ) { $ewd_otp_options['hide-blank-fields'] = sanitize_text_field( $_POST['hide_blank_fields'] ); }
155
156 update_option( 'ewd-otp-settings', $ewd_otp_options );
157
158 exit();
159 }
160
161 /**
162 * Add in a new order
163 * @since 3.0.0
164 */
165 public function add_order() {
166 global $ewd_otp_controller;
167
168 // Authenticate request
169 if (
170 ! check_ajax_referer( 'ewd-otp-getting-started', 'nonce' )
171 or ! current_user_can( $ewd_otp_controller->settings->get_setting( 'access-role' ) )
172 ) {
173 ewdotpHelper::admin_nopriv_ajax();
174 }
175
176 $order = new ewdotpOrder();
177
178 $order->display = true;
179
180 $order->name = isset( $_POST['order_name'] ) ? sanitize_text_field( $_POST['order_name'] ) : '';
181 $order->number = isset( $_POST['order_number'] ) ? sanitize_text_field( $_POST['order_number'] ) : '';
182 $order->email = isset( $_POST['order_email'] ) ? sanitize_email( $_POST['order_email'] ) : '';
183 $order->status = $order->external_status = isset( $_POST['order_status'] ) ? sanitize_text_field( $_POST['order_status'] ) : '';
184
185 $order->insert_order();
186
187 $order->insert_order_status();
188
189 exit();
190 }
191
192 /**
193 * Enqueue the admin assets necessary to run the walk-through and display it nicely
194 * @since 3.0.0
195 */
196 public function admin_enqueue() {
197
198 if ( ! isset( $_GET['page'] ) or $_GET['page'] != 'ewd-otp-getting-started' ) { return; }
199
200 wp_enqueue_style( 'ewd-otp-admin-css', EWD_OTP_PLUGIN_URL . '/assets/css/ewd-otp-admin.css', array(), EWD_OTP_VERSION );
201 wp_enqueue_style( 'ewd-otp-sap-admin-css', EWD_OTP_PLUGIN_URL . '/lib/simple-admin-pages/css/admin.css', array(), EWD_OTP_VERSION );
202 wp_enqueue_style( 'ewd-otp-welcome-screen', EWD_OTP_PLUGIN_URL . '/assets/css/ewd-otp-welcome-screen.css', array(), EWD_OTP_VERSION );
203 wp_enqueue_style( 'ewd-otp-admin-settings-css', EWD_OTP_PLUGIN_URL . '/lib/simple-admin-pages/css/admin-settings.css', array(), EWD_OTP_VERSION );
204
205 wp_enqueue_script( 'ewd-otp-getting-started', EWD_OTP_PLUGIN_URL . '/assets/js/ewd-otp-welcome-screen.js', array( 'jquery' ), EWD_OTP_VERSION );
206 wp_enqueue_script( 'ewd-otp-admin-settings-js', EWD_OTP_PLUGIN_URL . '/lib/simple-admin-pages/js/admin-settings.js', array( 'jquery' ), EWD_OTP_VERSION );
207 wp_enqueue_script( 'ewd-otp-admin-spectrum-js', EWD_OTP_PLUGIN_URL . '/lib/simple-admin-pages/js/spectrum.js', array( 'jquery' ), EWD_OTP_VERSION );
208
209 wp_localize_script(
210 'ewd-otp-getting-started',
211 'ewd_otp_getting_started',
212 array(
213 'nonce' => wp_create_nonce( 'ewd-otp-getting-started' )
214 )
215 );
216 }
217
218 /**
219 * Output the HTML of the walk-through screen
220 * @since 3.0.0
221 */
222 public function display_install_screen() {
223 global $ewd_otp_controller;
224
225 $statuses = ewd_otp_decode_infinite_table_setting( $ewd_otp_controller->settings->get_setting( 'statuses' ) );
226
227 $order_information = $ewd_otp_controller->settings->get_setting( 'order-information' );
228 $email_frequency = $ewd_otp_controller->settings->get_setting( 'email-frequency' );
229 $form_instructions = $ewd_otp_controller->settings->get_setting( 'form-instructions' );
230 $hide_blank_fields = $ewd_otp_controller->settings->get_setting( 'hide-blank-fields' );
231
232 ?>
233
234 <div class='ewd-otp-welcome-screen'>
235
236 <div class='ewd-otp-welcome-screen-header'>
237 <h1><?php _e('Welcome to Order Tracking', 'order-tracking'); ?></h1>
238 <p><?php _e('Thanks for choosing Order Tracking! The following will help you get started with the setup by setting up your statuses, creating an order tracking page and configuring a few key options.', 'order-tracking'); ?></p>
239 </div>
240
241 <div class='ewd-otp-welcome-screen-box ewd-otp-welcome-screen-statuses ewd-otp-welcome-screen-open' data-screen='statuses'>
242 <h2><?php _e('1. Statuses', 'order-tracking'); ?></h2>
243 <div class='ewd-otp-welcome-screen-box-content'>
244 <p><?php _e('Create statuses or edit the default statuses so that they\'re meaningful for your visitors.', 'order-tracking'); ?></p>
245 <div class='ewd-otp-welcome-screen-statuses-table'>
246 <table class="wp-list-table striped widefat tags sorttable status-list">
247 <thead>
248 <tr>
249 <th><?php _e("Status", 'order-tracking') ?></th>
250 <th><?php _e("&#37; Complete", 'order-tracking') ?></th>
251 </tr>
252 </thead>
253 <tfoot>
254 <tr>
255 <th><?php _e("Status", 'order-tracking') ?></th>
256 <th><?php _e("&#37; Complete", 'order-tracking') ?></th>
257 </tr>
258 </tfoot>
259
260 <tbody>
261 <?php foreach ( $statuses as $key => $status) { ?>
262 <tr class="list-item edit-status-item">
263 <td class="status"><input type='text' class='ewd-otp-welcome-edit-status-input' name='status[]' value='<?php echo esc_attr( $status->status ); ?>' disabled /></td>
264 <td class="status-completed"><input type='text' class='ewd-otp-welcome-edit-status-input ewd-otp-edit-status-percentage-input' name='status_percentages[]' value='<?php echo esc_attr( $status->percentage ); ?>' disabled /></td>
265 </tr>
266 <?php } ?>
267 </tbody>
268
269 </table>
270 </div>
271
272 <table class='form-table ewd-otp-welcome-screen-create-status'>
273 <tr class='ewd-otp-welcome-screen-add-status-name ewd-otp-welcome-screen-box-content-divs'>
274 <th scope='row'><?php _e( 'Status Name', 'order-tracking' ); ?></th>
275 <td class='ewd-otp-welcome-screen-option'>
276 <input type='text'>
277 </td>
278 </tr>
279 <tr class='ewd-otp-welcome-screen-add-status-percentage ewd-otp-welcome-screen-box-content-divs'>
280 <th scope='row'><?php _e( 'Percentage Complete', 'order-tracking' ); ?></th>
281 <td class='ewd-otp-welcome-screen-option'>
282 <input type='text'>
283 </td>
284 </tr>
285 <tr>
286 <th scope='row'></th>
287 <td>
288 <div class='ewd-otp-welcome-screen-add-status-button'><?php _e( 'Add Status', 'order-tracking' ); ?></div>
289 </td>
290 </tr>
291 </table>
292
293 <div class='ewd-otp-welcome-clear'></div>
294
295 <div class='ewd-otp-welcome-screen-next-button' data-nextaction='tracking-page'><?php _e( 'Next', 'order-tracking' ); ?></div>
296
297 <div class='ewd-otp-welcome-clear'></div>
298 </div>
299 </div>
300
301 <div class='ewd-otp-welcome-screen-box ewd-otp-welcome-screen-tracking-page' data-screen='tracking-page'>
302 <h2><?php _e('2. Add an Order Tracking Page', 'order-tracking'); ?></h2>
303 <div class='ewd-otp-welcome-screen-box-content'>
304 <p><?php _e('You can create a dedicated tracking page below, or skip this step and add your tracking form to a page you\'ve already created manually.', 'order-tracking'); ?></p>
305 <table class='form-table ewd-otp-welcome-screen-booking-page'>
306 <tr class='ewd-otp-welcome-screen-add-tracking-page-name ewd-otp-welcome-screen-box-content-divs'>
307 <th scope='row'><?php _e( 'Page Title', 'order-tracking' ); ?></th>
308 <td class='ewd-otp-welcome-screen-option'>
309 <input type='text'>
310 </td>
311 </tr>
312 <tr>
313 <th scope='row'></th>
314 <td>
315 <div class='ewd-otp-welcome-screen-add-tracking-page-button' data-nextaction='options'><?php _e( 'Create Page', 'order-tracking' ); ?></div>
316 </td>
317 </tr>
318 </table>
319
320 <div class='ewd-otp-welcome-clear'></div>
321 <div class='ewd-otp-welcome-screen-next-button' data-nextaction='options'><?php _e('Next', 'order-tracking'); ?></div>
322 <div class='ewd-otp-welcome-screen-previous-button' data-previousaction='statuses'><?php _e('Previous', 'order-tracking'); ?></div>
323 <div class='ewd-otp-clear'></div>
324 </div>
325 </div>
326
327 <div class='ewd-otp-welcome-screen-box ewd-otp-welcome-screen-options' data-screen='options'>
328 <h2><?php _e('3. Set Key Options', 'order-tracking'); ?></h2>
329 <div class='ewd-otp-welcome-screen-box-content'>
330 <p><?php _e('Options can always be changed later, but here are a few that a lot of users want to set for themselves.', 'order-tracking'); ?></p>
331 <table class='form-table'>
332 <tr>
333 <th scope='row'><?php _e('Order Information Displayed', 'order-tracking'); ?></th>
334 <td class='ewd-otp-welcome-screen-option'>
335 <fieldset>
336 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_number' <?php echo ( in_array( 'order_number', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Order Number', 'order-tracking' ); ?></span></label><br />
337 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_name' <?php echo ( in_array( 'order_name', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Name', 'order-tracking' ); ?></span></label><br />
338 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_status' <?php echo ( in_array( 'order_status', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Status', 'order-tracking' ); ?></span></label><br />
339 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_location' <?php echo ( in_array( 'order_location', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Location', 'order-tracking' ); ?></span></label><br />
340 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_updated' <?php echo ( in_array( 'order_updated', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Updated Date', 'order-tracking' ); ?></span></label><br />
341 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_notes' <?php echo ( in_array( 'order_notes', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Notes', 'order-tracking' ); ?></span></label><br />
342 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='customer_notes' <?php echo ( in_array( 'customer_notes', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Customer Notes', 'order-tracking' ); ?></span></label><br />
343 <label class='sap-admin-input-container'><input type='checkbox' name='order_information[]' value='order_graphic' <?php echo ( in_array( 'order_graphic', $order_information ) ? 'checked' : '' ); ?> /><span class='sap-admin-checkbox'></span> <span><?php _e( 'Status Graphic', 'order-tracking' ); ?></span></label><br />
344 <p class='description'><?php _e('Select what information should be displayed for each order.', 'order-tracking'); ?></p>
345 </fieldset>
346 </td>
347 </tr>
348 <tr>
349 <th scope='row'><?php _e('Order Email Frequency', 'order-tracking'); ?></th>
350 <td class='ewd-otp-welcome-screen-option'>
351 <fieldset>
352 <legend class="screen-reader-text"><span>Order Email Frequency</span></legend>
353 <label class='sap-admin-input-container'><input type='radio' name='email_frequency' value='change' <?php if($email_frequency == "change") {echo "checked='checked'";} ?> /><span class='sap-admin-radio-button'></span> <span><?php _e( 'On Change', 'order-tracking' ); ?></span></label><br />
354 <label class='sap-admin-input-container'><input type='radio' name='email_frequency' value='creation' <?php if($email_frequency == "creation") {echo "checked='checked'";} ?> /><span class='sap-admin-radio-button'></span> <span><?php _e( 'On Creation', 'order-tracking' ); ?></span></label><br />
355 <label class='sap-admin-input-container'><input type='radio' name='email_frequency' value='never' <?php if($email_frequency == "never") {echo "checked='checked'";} ?> /><span class='sap-admin-radio-button'></span> <span><?php _e( 'Never', 'order-tracking' ); ?></span></label><br />
356 <p><?php _e('How often should emails be sent to customers about the status of their orders?', 'order-tracking'); ?></p>
357 </fieldset>
358 </td>
359 </tr>
360 <tr>
361 <th scope='row'><?php _e('Order Form Instructions', 'order-tracking'); ?></th>
362 <td class='ewd-otp-welcome-screen-option'>
363 <fieldset>
364 <legend class="screen-reader-text"><span>Order Form Instructions</span></legend>
365 <label for='form_instructions'></label><textarea class='ewd-otp-textarea' name='form_instructions'> <?php echo esc_textarea( $form_instructions ); ?></textarea><br />
366 <p><?php _e('The instructions that will display above the order form.', 'order-tracking'); ?></p>
367 </fieldset>
368 </td>
369 </tr>
370 <tr>
371 <th scope='row'><?php _e('Hide Blank Fields', 'order-tracking'); ?></th>
372 <td class='ewd-otp-welcome-screen-option'>
373 <fieldset>
374 <div class='sap-admin-hide-radios'>
375 <input type='checkbox' name='hide_blank_fields' value='1'>
376 </div>
377 <label class='sap-admin-switch'>
378 <input type='checkbox' class='sap-admin-option-toggle' data-inputname='hide_blank_fields' <?php if ( $hide_blank_fields == '1' ) { echo 'checked'; } ?>>
379 <span class='sap-admin-switch-slider round'></span>
380 </label>
381 <p class='description'><?php _e('Should fields which don\'t have a value (ex. customer name, custom fields) be hidden if they\'re empty?', 'order-tracking'); ?></p>
382 </fieldset>
383 </td>
384 </tr>
385 </table>
386
387 <div class='ewd-otp-welcome-screen-save-options-button'><?php _e('Save Options', 'order-tracking'); ?></div>
388 <div class='ewd-otp-welcome-clear'></div>
389 <div class='ewd-otp-welcome-screen-next-button' data-nextaction='orders'><?php _e('Next', 'order-tracking'); ?></div>
390 <div class='ewd-otp-welcome-screen-previous-button' data-previousaction='tracking-page'><?php _e('Previous', 'order-tracking'); ?></div>
391
392 <div class='ewd-otp-clear'></div>
393 </div>
394 </div>
395
396 <div class='ewd-otp-welcome-screen-box ewd-otp-welcome-screen-orders' data-screen='orders'>
397 <h2><?php _e('4. Create an Order', 'order-tracking'); ?></h2>
398 <div class='ewd-otp-welcome-screen-box-content'>
399 <p><?php _e('Create your first orders. Don\'t worry, you can always add more later.', 'order-tracking'); ?></p>
400 <table class='form-table ewd-otp-welcome-screen-created-categories'>
401 <tr class='ewd-otp-welcome-screen-add-order-name ewd-otp-welcome-screen-box-content-divs'>
402 <th scope='row'><?php _e( 'Order Name', 'order-tracking' ); ?></th>
403 <td class='ewd-otp-welcome-screen-option'>
404 <input type='text'>
405 </td>
406 </tr>
407 <tr class='ewd-otp-welcome-screen-add-order-number ewd-otp-welcome-screen-box-content-divs'>
408 <th scope='row'><?php _e( 'Order Number', 'order-tracking' ); ?></th>
409 <td class='ewd-otp-welcome-screen-option'>
410 <input type='text'>
411 </td>
412 </tr>
413 <tr class='ewd-otp-welcome-screen-add-order-email ewd-otp-welcome-screen-box-content-divs'>
414 <th scope='row'><?php _e( 'Order Email', 'order-tracking' ); ?></th>
415 <td class='ewd-otp-welcome-screen-option'>
416 <input type='text'>
417 </td>
418 </tr>
419 <tr class='ewd-otp-welcome-screen-add-order-status ewd-otp-welcome-screen-box-content-divs'>
420 <th scope='row'><?php _e( 'Order Status', 'order-tracking' ); ?></th>
421 <td class='ewd-otp-welcome-screen-option'>
422 <select>
423 <?php foreach ( $statuses as $key => $status) { ?>
424
425 <option value='<?php echo esc_attr( $status->status ); ?>'><?php echo esc_html( $status->status ); ?></option>
426 <?php } ?>
427 </select>
428 </td>
429 </tr>
430 <tr>
431 <th scope='row'></th>
432 <td>
433 <div class='ewd-otp-welcome-screen-add-order-button'><?php _e('Add Order', 'order-tracking'); ?></div>
434 </td>
435 </tr>
436 <tr></tr>
437 <tr>
438 <td colspan="2">
439 <h3><?php _e('Created Orders', 'order-tracking'); ?></h3>
440 <table class='ewd-otp-welcome-screen-show-created-orders'>
441 <tr>
442 <th class='ewd-otp-welcome-screen-show-created-order-name'><?php _e('Name', 'order-tracking'); ?></th>
443 <th class='ewd-otp-welcome-screen-show-created-order-number'><?php _e('Order Number', 'order-tracking'); ?></th>
444 <th class='ewd-otp-welcome-screen-show-created-order-status'><?php _e('Status', 'order-tracking'); ?></th>
445 </tr>
446 </table>
447 </td>
448 </tr>
449 </table>
450
451 <div class='ewd-otp-welcome-clear'></div>
452 <div class='ewd-otp-welcome-screen-previous-button' data-previousaction='options'><?php _e('Previous', 'order-tracking'); ?></div>
453 <div class='ewd-otp-welcome-screen-finish-button'><a href='admin.php?page=ewd-otp-settings'><?php _e('Finish', 'order-tracking'); ?></a></div>
454 <div class='ewd-otp-clear'></div>
455 </div>
456 </div>
457
458 <div class='ewd-otp-welcome-screen-skip-container'>
459 <a href='admin.php?page=ewd-otp-settings'><div class='ewd-otp-welcome-screen-skip-button'><?php _e('Skip Setup', 'order-tracking'); ?></div></a>
460 </div>
461 </div>
462
463 <?php }
464 }
465