PluginProbe
SendWP / 0.0.2
SendWP v0.0.2
trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2.10 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.4.4 1.4.5 1.4.6 1.4.8
← All changes | includes/admin/views/menu.html.php +52 -69 trunk0.0.2 View file →
@@ -1,70 +1,53 @@
1 -<?php
2 -$connected = sendwp_client_connected();
3 -$forwarding = sendwp_forwarding_enabled();
4 -?>
5 -
6 -<div class="sendwp-page">
7 -
8 - <img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
9 -
10 - <?php if(!$connected) { ?>
11 - <div id="sendwp-connect">
12 - <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
13 - <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
14 - <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
15 - <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
16 - <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
17 - <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
18 - <input type="hidden" name="partner_id" value="<?php echo sendwp_get_client_partner_id(); ?>">
19 - <button type="submit" class="button button-primary">
20 - <?php _e('Connect to SendWP', 'sendwp'); ?>
21 - </button>
22 - </form>
23 - </div>
24 - <?php } else { ?>
25 - <div id="sendwp-enabled">
26 - <label class="switch" id="sendwp-enabled-button">
27 - <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?> />
28 - <span class="slider round"></span>
29 - </label>
30 - <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
31 - </div>
32 - <?php } ?>
33 - <hr />
34 -
35 - <p>
36 - <strong>Questions?</strong> Get help at <a
37 - href="https://sendwp.com/support?utm_source=sendwp&utm_medium=plugin&utm_campaign=support-help&utm_content=questions-cta">https://sendwp.com/support</a>
38 - </p>
39 -
40 - <!-- spoiler -->
41 - <div id="spoiler-block">
42 - <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
43 - <div id="spoiler-content" class="closed">
44 - <ul>
45 - <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
46 - <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
47 - <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
48 - <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
49 - <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
50 - <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
51 - <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
52 - <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
53 - <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
54 - <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
55 - </ul>
56 - </div>
57 - </div>
58 -
59 - <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
60 - <input type="hidden" name="action" value="sendwp_reset_plugin_data">
61 - <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
62 -
63 - <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
64 - </form>
65 -
66 - <a class="button button-link" href="<?php echo esc_url( add_query_arg( [ 'grant-access' => 1 ] ) ); ?>">Grant
67 - Support Access</a>
68 -
69 -</div>
1 +<?php
2 +$connected = sendwp_client_connected();
3 +$forwarding = sendwp_forwarding_enabled();
4 +?>
5 +
6 +<div class="sendwp-page">
7 +
8 +<img src="<?php echo \SendWP\Assets::image_url('logo-render.png'); ?>" alt="SendWP" class="logo" />
9 +
10 +<?php if(!$connected) { ?>
11 +<div id="sendwp-connect">
12 + <p><?php _e('Your site is currently not connected to sendwp.com.', 'sendwp'); ?></p>
13 + <form method="POST" action="<?php echo sendwp_get_server_url(); ?>_/signup">
14 + <input type="hidden" name="client_name" value="<?php echo sendwp_get_client_name(); ?>">
15 + <input type="hidden" name="client_url" value="<?php echo sendwp_get_client_url(); ?>">
16 + <input type="hidden" name="client_redirect" value="<?php echo sendwp_get_client_redirect(); ?>">
17 + <input type="hidden" name="client_secret" value="<?php echo sendwp_get_client_secret(); ?>">
18 + <button type="submit" class="button button-primary">
19 + <?php _e('Connect to SendWP', 'sendwp'); ?>
20 + </button>
21 + </form>
22 +</div>
23 +<?php } else { ?>
24 +<div id="sendwp-enabled">
25 + <label class="switch" id="sendwp-enabled-button">
26 + <input type="checkbox" id="sendwp-enabled-checkbox" <?php print $forwarding ? 'checked' : ''; ?>/>
27 + <span class="slider round"></span>
28 + </label>
29 + <span id="sendwp-enabled-status"><?php print $forwarding ? $vars['enabled'] : $vars['disabled']; ?></span>
30 +</div>
31 +<?php } ?>
32 +<hr />
33 +<!-- spoiler -->
34 +<div id="spoiler-block">
35 + <span id="spoiler-title">Debug Info<span id="spoiler-arrow" class="down"></span></span>
36 + <div id="spoiler-content" class="closed">
37 + <ul>
38 + <li>Server URL: <?php echo sendwp_get_server_url(); ?></li>
39 + <li>Client Name: <?php echo sendwp_get_client_name(); ?></li>
40 + <li>Client URL: <?php echo sendwp_get_client_url(); ?></li>
41 + <li>Client Redirect: <?php echo sendwp_get_client_redirect(); ?></li>
42 + <li>Client Secret: <?php echo sendwp_get_client_secret(); ?></li>
43 + <li>Authorization Hash: <?php echo sendwp_generate_hash() ?> </li>
44 + <li>Connection Status: <?php print $connected ? 'Connected' : 'Not Connected'; ?></li>
45 + <li>Forwarding Status: <?php print $forwarding ? 'Enabled' : 'Disabled'; ?></li>
46 + <li>Last Check In: <?php echo sendwp_last_pulse(); ?></li>
47 + <li>Last Result: <?php echo sendwp_last_pulse_result(); ?></li>
48 + </ul>
49 + </div>
50 +</div>
51 +
52 +</div>
70 53 <!-- end of main content -->