|
24 | 24 |
|
25 | 25 | <div class="wrap"> |
26 | 26 |
|
27 | | - <div id="icon-options-wolfnet" class="icon32"><br /></div> |
| 27 | + <div id="icon-options-wolfnet" class="icon32"><br /></div> |
28 | 28 |
|
29 | | - <h1>WolfNet <sup>®</sup> - General Settings</h1> |
| 29 | + <h1><?php _e('General Settings'); ?> - WolfNet<sup>®</sup></h1> |
30 | 30 |
|
31 | | - <form method="post" id="wolfnetSettings" action="options.php"> |
| 31 | + <form method="post" id="wolfnetSettings" action="options.php"> |
32 | 32 |
|
33 | | - <?php echo $formHeader; ?> |
| 33 | + <?php echo $formHeader; ?> |
34 | 34 |
|
35 | | - <input type="hidden" id="wolfnet_setSslVerify" value="<?php echo $setSslVerify; ?>" /> |
36 | | - <input type="hidden" id="wolfnet_keyCount" value="<?php echo count($productKey); ?>" /> |
| 35 | + <input type="hidden" id="wolfnet_setSslVerify" value="<?php echo $setSslVerify; ?>" /> |
| 36 | + <input type="hidden" id="wolfnet_keyCount" value="<?php echo count($productKey); ?>" /> |
37 | 37 |
|
38 | | - <fieldset> |
| 38 | + <fieldset> |
39 | 39 |
|
40 | | - <legend> |
41 | | - <h2 class="title">Product Key</h2> |
42 | | - </legend> |
| 40 | + <legend> |
| 41 | + <h2 class="title"><?php _e('Product Key'); ?></h2> |
| 42 | + </legend> |
43 | 43 |
|
44 | 44 | <table class="key-table widefat" id="wolfnet_keys"> |
45 | 45 | <thead> |
46 | 46 | <tr> |
47 | 47 | <th class="row-title" scope="row"> |
48 | | - Product Key |
| 48 | + <?php _e('Product Key'); ?> |
49 | 49 | </th> |
50 | 50 | <th class="row-title" scope="row"> |
51 | | - Market Name |
| 51 | + <?php _e('Market Name'); ?> |
52 | 52 | </th> |
53 | 53 | <th class="row-title" scope="row"> |
54 | | - Label |
| 54 | + <?php _e('Label'); ?> |
55 | 55 | </th> |
56 | 56 | <th class="row-title" scope="row"></th> |
57 | 57 | </tr> |
|
111 | 111 | </tbody> |
112 | 112 | </table> |
113 | 113 |
|
114 | | - <div class="tablenav bottom"> |
115 | | - <button type="button" class="button action" id="wolfnet_addKey"> |
116 | | - <span class="wnt-icon wnt-icon-plus"></span> |
117 | | - <?php _e('Add Product Key'); ?> |
118 | | - </button> |
119 | | - </div> |
120 | | - |
121 | | - <p class="description"> |
122 | | - Enter your unique product key for the WolfNet WordPress plugin. The |
123 | | - product key is required to connect your WordPress site to your WolfNet |
124 | | - property search. WolfNet Plugin features will not be available until the |
125 | | - correct key has been entered. If you do not have a key, please contact |
126 | | - WolfNet Technologies via phone at 612-342-0088 or toll free at |
127 | | - 1-866-WOLFNET, or via email at |
128 | | - |
129 | | - You may also find us online at |
130 | | - <a href="http://wolfnet.com" target="_blank">WolfNet.com</a>. |
131 | | - </p> |
132 | | - |
133 | | - </fieldset> |
134 | | - |
135 | | - <fieldset> |
136 | | - |
137 | | - <legend> |
138 | | - <h2 class="title">SSL</h2> |
139 | | - </legend> |
140 | | - |
141 | | - <p> |
142 | | - <input name="<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>" |
143 | | - id="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>" |
144 | | - <?php checked($sslEnabled, true); ?> type="checkbox" value="1" /> |
145 | | - <label for="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>"> |
146 | | - SSL Enabled |
147 | | - </label> |
148 | | - </p> |
149 | | - |
150 | | - <p class="description"> |
151 | | - This option determines if the plugin will communicate with the API via |
152 | | - a secure connection. In the near future this option will be deprecated |
153 | | - and the API will only work over SSL. |
154 | | - </p> |
155 | | - |
156 | | - </fieldset> |
157 | | - |
158 | | - <p class="submit"> |
159 | | - <?php submit_button( |
160 | | - $text = NULL, $type = 'primary', $name = 'submit', $wrap = FALSE, $other_attributes = NULL |
161 | | - ); ?> |
162 | | - </p> |
163 | | - |
164 | | - </form> |
| 114 | + <div class="tablenav bottom"> |
| 115 | + <button type="button" class="button action" id="wolfnet_addKey"> |
| 116 | + <span class="wnt-icon wnt-icon-plus"></span> |
| 117 | + <?php _e('Add Product Key'); ?> |
| 118 | + </button> |
| 119 | + </div> |
| 120 | + |
| 121 | + <p class="description"> |
| 122 | + <?php printf( |
| 123 | + __('Enter your unique product key for the WolfNet WordPress plugin. The product key is required to connect your WordPress site to your WolfNet property search. WolfNet Plugin features will not be available until the correct key has been entered. If you do not have a key, please contact WolfNet Technologies via phone at 612-342-0088 or toll free at 1-866-WOLFNET, or via email at %s. You may also find us online at %s.'), |
| 124 | + |
| 125 | + '<a href="http://wolfnet.com" target="_blank">WolfNet.com</a>' |
| 126 | + ); ?> |
| 127 | + </p> |
| 128 | + |
| 129 | + </fieldset> |
| 130 | + |
| 131 | + <div id="wolfnet-advanced-options"> |
| 132 | + <fieldset> |
| 133 | + <legend> |
| 134 | + <h2 class="title"><?php _e('Advanced Settings'); ?></h2> |
| 135 | + </legend> |
| 136 | + <table class="form-table"> |
| 137 | + <tr> |
| 138 | + <th scope="row">WolfNet API Connection Port</th> |
| 139 | + <td> |
| 140 | + <label for="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>-1"> |
| 141 | + <input name="<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>" |
| 142 | + id="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>-1" |
| 143 | + <?php checked($sslEnabled, true); ?> type="radio" value="1" /> |
| 144 | + <?php _e('Port 443 (Recommended)'); ?> |
| 145 | + </label> |
| 146 | + <br /> |
| 147 | + <label for="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>-0"> |
| 148 | + <input name="<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>" |
| 149 | + id="wnt-<?php echo Wolfnet_Plugin::SSL_WP_OPTION; ?>-0" |
| 150 | + <?php checked($sslEnabled, false); ?> type="radio" value="0" /> |
| 151 | + <?php _e('Port 80 - not secure'); ?> |
| 152 | + </label> |
| 153 | + <p class="description"> |
| 154 | + <?php _e("This option determines if the plugin will communicate with the API via a secure connection. In the near future this option will be deprecated and the API will only work over TLS via port 443."); ?> |
| 155 | + </p> |
| 156 | + </td> |
| 157 | + </tr> |
| 158 | + </table> |
| 159 | + </fieldset> |
| 160 | + </div> |
| 161 | + |
| 162 | + <p class="submit"> |
| 163 | + <?php submit_button( |
| 164 | + $text = NULL, $type = 'primary', $name = 'submit', $wrap = FALSE, $other_attributes = NULL |
| 165 | + ); ?> |
| 166 | + </p> |
| 167 | + |
| 168 | + </form> |
165 | 169 |
|
166 | 170 | </div> |
167 | 171 |
|
|
237 | 241 | $.fn.wolfnetInsertKeyRow(); |
238 | 242 | } ); |
239 | 243 |
|
| 244 | + |
| 245 | + var $advOptions = $('#wolfnet-advanced-options'), |
| 246 | + $advContent = $advOptions.find('fieldset').first().hide(); |
| 247 | + |
| 248 | + var $advToggle = $('<p>') |
| 249 | + .append( |
| 250 | + $('<button type="button" class="button">') |
| 251 | + .html('<span class="wnt-icon wnt-icon-cog"></span> <?php _e('Advanced Settings ...'); ?>') |
| 252 | + .click(function () { |
| 253 | + $advToggle.hide(); |
| 254 | + $advContent.show(); |
| 255 | + }) |
| 256 | + ) |
| 257 | + .prependTo($advOptions); |
| 258 | + |
240 | 259 | }); |
241 | 260 |
|
242 | 261 | } |
|
0 commit comments