-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.php
35 lines (35 loc) · 1.91 KB
/
settings.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
<div class='wrap'>
<h3><?php _e('WP Updatr Site Settings', 'wp-updatr'); ?></h3>
<form method='POST'>
<table class='form-table striped'>
<tr>
<th><?php _e('API Key', 'wp-updatr'); ?></th>
<td>
<input type='text' name='wpur_api_key' value='<?php echo get_option( 'wp_updatr_api_key' ); ?>' style='width: 50%;' />
<p class='description'><?php echo wp_updatr_validate_api_key() ? __('Your API Key is Valid', 'wp-updatr') : __('Your API Key is Invalid', 'wp-updatr'); ?></p>
</td>
</tr>
<tr>
<th><?php _e('Select An Integration', 'wp-updatr'); ?></th>
<?php $integration = get_option( 'wp_updatr_integration' ); ?>
<td>
<p><input type='radio' name='wpur_integration' value='woocommerce' id='wpur_woocommerce' <?php checked( 'woocommerce', $integration ); ?> /> <label for='wpur_woocommerce'><?php _e( 'WooCommerce', 'wp-updatr' ); ?></label></p>
<p><input type='radio' name='wpur_integration' value='paid-memberships-pro' id='wpur_pmpro' <?php checked( 'paid-memberships-pro', $integration ); ?> /> <label for='wpur_pmpro'><?php _e( 'Paid Memberships Pro', 'wp-updatr' ); ?></label></p>
<p><input type='radio' name='wpur_integration' value='easy-digital-downloads' id='wpur_edd' <?php checked( 'easy-digital-downloads', $integration ); ?> /> <label for='wpur_edd'><?php _e( 'Easy Digital Downloads', 'wp-updatr' ); ?></label></p>
</td>
</tr>
<tr>
<th></th>
<td>
<input type='submit' class='button button-primary' name='wpur_save_settings' value='<?php _e('Save Settings', 'wp-updatr'); ?>' />
</td>
</tr>
</table>
</form>
<hr/>
<p class='description'>
WP Updatr |
<a href='https://wpupdatr.com/documentation/' target='_BLANK'><?php _e('Documentation', 'wp-updatr'); ?></a> |
<a href='https://app.wpupdatr.com/membership-account/membership-checkout/?level=4' target='_BLANK'><?php _e('Sign Up For Our Professional Plan', 'wp-updatr'); ?></a>
</p>
</div>