-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate-wc-api-debug.php
141 lines (110 loc) · 5.56 KB
/
template-wc-api-debug.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
/**
* The template for displaying the WooCommerce API Debug Fields.
*
* Template Name: WC API Debug
*
* @package wc-api-debugger
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) :
the_post();
do_action( 'storefront_page_before' );
get_template_part( 'content', 'page' );
?>
<form id='search_form' action=''>
<p class='woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide'>
<label for='search_domain'>Site URL <span class='required'>*</span></label>
<input type='text' placeholder='e.g. https://google.com' class='search_domain' value='https://riaan.mystagingwebsite.com' />
</p>
<p class='woocommerce-form-row woocommerce-form-row--first form-row form-row-first'>
<label for='search_key'>Consumer Key <span class='required'>*</span></label>
<input type=text placeholder='API Key' class='search_key' value='ck_d3da3544c96a653ad1d2fc3944ef817e7baee163' />
</p>
<p class='woocommerce-form-row woocommerce-form-row--last form-row form-row-last'>
<label for='search_secret'>Consumer Secret <span class='required'>*</span></label>
<input type=text placeholder='API Secret' class='search_secret' value='cs_f72ae661a31734033bf69949f66dba9ef6a87312' />
</p>
<p class='woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide'>
<label for='search_permalink' class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">Permalink Structure <span class='required'>*</span>
<br />
<input type=radio class='search_permalink woocommerce-form__input woocommerce-form__input-checkbox input-checkbox' value='pretty' name='search_permalink' />
<span><abbr title="(e.g. https://yoursite.com/sample-page)">Pretty Permalinks</abbr></span>
<br />
<input type=radio class='search_permalink woocommerce-form__input woocommerce-form__input-checkbox input-checkbox' value='plain' name='search_permalink' />
<span><abbr title="(e.g. https://yoursite.com/?p=123)">Plain Permalinks</abbr></span>
</label>
</p>
<input type='submit' class='search_submit'/></form>
<div id='search_container'>
<div class="woocommerce-api-data">
<!-- General Environment Results Page -->
<table class="woocommerce-orders-table my_account_orders account-orders-table woocommerce-api-data-general inactive">
<thead>
<tr>
<th class="woocommerce-orders-table__header"><span class="nobr">Store Data</span></th>
<th class="woocommerce-orders-table__header"><span class="nobr">Values</span></th>
</tr>
</thead>
<tbody>
<tr>
<th>Site URL</th>
<td class="woocommerce-api-environment-homeurl"></a></td>
</tr>
<tr>
<th>API: Status</th>
<td class="woocommerce-api-environment-apienabled"></td>
</tr>
<tr>
<th>API URL</th>
<td class="woocommerce-api-environment-domain"></a>
</td>
</tr>
<tr>
<th>Server Info</th>
<td class="woocommerce-api-environment-serverinfo"></td>
</tr>
<tr>
<th>PHP: Version</th>
<td class="woocommerce-api-environment-phpversion"></td>
</tr>
<tr>
<th>PHP: Maximum Execution Time</th>
<td class="woocommerce-api-environment-phpmaxtime"></td>
</tr>
<tr>
<th>PHP: Maximum Input Variables</th>
<td class="woocommerce-api-environment-maxvars"></td>
</tr>
<tr>
<th>PHP: Remote Post</th>
<td class="woocommerce-api-environment-remotepost"></td>
</tr>
<tr>
<th>PHP: Remote Get</th>
<td class="woocommerce-api-environment-remoteget"></td>
</tr>
<tr>
<th>PHP: Debug Mode</th>
<td class="woocommerce-api-environment-debug"></td>
</tr>
</tbody>
</table>
</div>
</div>
<?php
/**
* Functions hooked in to storefront_page_after action
*
* @hooked storefront_display_comments - 10
*/
do_action( 'storefront_page_after' );
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();