PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.3.2
Subscriptions for WooCommerce with Stripe Recurring Payments v1.3.2
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / includes / Admin / views / settings.php

settings.php in Subscriptions for WooCommerce with Stripe Recurring Payments 1.3.2, at includes/Admin/views/settings.php

123 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2 <?php settings_errors(); ?>
3 <h1><?php esc_html_e( 'Subscription Settings', 'sdevs_subscrpt' ); ?></h1>
4 <p><?php esc_html_e( 'These settings can effect Subscription', 'sdevs_subscrpt' ); ?></p>
5 <form method="post" action="options.php">
6 <?php settings_fields( 'subscrpt_settings' ); ?>
7 <?php do_settings_sections( 'subscrpt_settings' ); ?>
8 <table class="form-table">
9 <tbody>
10 <tr>
11 <th scope="row">
12 <label for="subscrpt_renewal_process">
13 <?php esc_html_e( 'Renewal Process', 'sdevs_subscrpt' ); ?>
14 </label>
15 </th>
16 <td>
17 <select name="subscrpt_renewal_process" id="subscrpt_renewal_process">
18 <option value="auto">Automatic</option>
19 <option value="manual"
20 <?php
21 if ( 'manual' === get_option( 'subscrpt_renewal_process', 'auto' ) ) {
22 echo esc_attr( 'selected' );
23 }
24 ?>
25 >Manual</option>
26 </select>
27 <p class="description"><?php esc_html_e( 'How renewal process will be done after Subscription Expired !!', 'sdevs_subscrpt' ); ?></p>
28 </td>
29 </tr>
30 <tr id="sdevs_renewal_cart_tr">
31 <th scope="row">
32 <label for="subscrpt_manual_renew_cart_notice">
33 <?php esc_html_e( 'Renewal Cart Notice', 'sdevs_subscrpt' ); ?>
34 </label>
35 </th>
36 <td>
37 <input id="subscrpt_manual_renew_cart_notice" name="subscrpt_manual_renew_cart_notice" class="large-text" value="<?php echo wp_kses_post( get_option( 'subscrpt_manual_renew_cart_notice' ) ); ?>" type="text"/>
38 <p class="description"><?php echo wp_kses_post( 'Display Notice when Renewal Subscription product add to cart !! It\'s only available for <b>Manual Renewal Process</b>.', 'sdevs_subscrpt' ); ?></p>
39 </td>
40 </tr>
41 <tr>
42 <th scope="row">
43 <label for="subscrpt_active_role">
44 <?php esc_html_e( 'Subscriber Default Role', 'sdevs_subscrpt' ); ?>
45 </label>
46 </th>
47 <td>
48 <select name="subscrpt_active_role" id="subscrpt_active_role">
49 <?php wp_dropdown_roles( get_option( 'subscrpt_active_role', 'subscriber' ) ); ?>
50 </select>
51 <p class="description"><?php esc_html_e( 'When a subscription is activated, either manually or after a successful purchase, new users will be assigned this role.', 'sdevs_subscrpt' ); ?></p>
52 </td>
53 </tr>
54 <tr>
55 <th scope="row">
56 <label for="subscrpt_unactive_role">
57 <?php esc_html_e( 'Subscriber Unactive Role', 'sdevs_subscrpt' ); ?>
58 </label>
59 </th>
60 <td>
61 <select name="subscrpt_unactive_role" id="subscrpt_unactive_role">
62 <?php wp_dropdown_roles( get_option( 'subscrpt_unactive_role', 'customer' ) ); ?>
63 </select>
64 <p class="description"><?php esc_html_e( "If a subscriber's subscription is manually cancelled or expires, will be assigned this role.", 'sdevs_subscrpt' ); ?></p>
65 </td>
66 </tr>
67 <tr id="subscrpt_stripe_auto_renew_tr" valign="top">
68 <th scope="row" class="titledesc"><?php echo esc_html_e( 'Stripe Auto Renewal', 'sdevs_subscrpt' ); ?></th>
69 <td class="forminp forminp-checkbox">
70 <fieldset>
71 <legend class="screen-reader-text"><span><?php echo esc_html_e( 'Accept Stripe Auto Renewals', 'sdevs_subscrpt' ); ?></span></legend>
72 <label for="subscrpt_stripe_auto_renew">
73 <input name="subscrpt_stripe_auto_renew" id="subscrpt_stripe_auto_renew" type="checkbox" value="1"
74 <?php
75 if ( '1' === get_option( 'subscrpt_stripe_auto_renew', '1' ) ) {
76 echo 'checked';
77 }
78 ?>
79 > <?php echo esc_html_e( 'Accept Stripe Auto Renewals', 'sdevs_subscrpt' ); ?> </label>
80 <p class="description">
81 <?php
82 echo wp_kses_post(
83 sprintf(
84 /* translators: HTML tags */
85 __(
86 '%1$s WooCommerce Stripe Payment Gateway %2$s plugin is required !',
87 'sdevs_subscrpt'
88 ),
89 '<a href="https://wordpress.org/plugins/woocommerce-gateway-stripe/" target="_blank">',
90 '</a>'
91 )
92 );
93 ?>
94 </p>
95 </fieldset>
96 </td>
97 </tr>
98 <tr id="subscrpt_auto_renewal_toggle_tr" valign="top">
99 <th scope="row" class="titledesc"><?php echo esc_html_e( 'Auto Renewal Toggle', 'sdevs_subscrpt' ); ?></th>
100 <td class="forminp forminp-checkbox">
101 <fieldset>
102 <legend class="screen-reader-text"><span><?php echo esc_html_e( 'Auto Renewal Toggle', 'sdevs_subscrpt' ); ?></span></legend>
103 <label for="subscrpt_auto_renewal_toggle">
104 <input name="subscrpt_auto_renewal_toggle" id="subscrpt_auto_renewal_toggle" type="checkbox" value="1"
105 <?php
106 if ( '1' === get_option( 'subscrpt_auto_renewal_toggle', '1' ) ) {
107 echo 'checked';
108 }
109 ?>
110 > <?php echo esc_html_e( 'Display the auto renewal toggle', 'sdevs_subscrpt' ); ?> </label>
111 <p class="description"><?php echo esc_html_e( 'Allow customers to turn on and off automatic renewals from their Subscription details page.', 'sdevs_subscrpt' ); ?></p>
112 </fieldset>
113 </td>
114 </tr>
115 <?php do_action( 'subscrpt_setting_fields' ); ?>
116 </tbody>
117 </table>
118
119 <?php submit_button(); ?>
120
121 </form>
122 </div>
123