Changeset 2179165
- Timestamp:
- 10/24/2019 10:03:02 AM (6 years ago)
- Location:
- metapic/trunk
- Files:
-
- 2 edited
-
classes/WP_MTPC_Settings.php (modified) (1 diff)
-
templates/metapic-site-options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
metapic/trunk/classes/WP_MTPC_Settings.php
r2179163 r2179165 26 26 update_site_option( 'mtpc_registration_auto', 27 27 (bool) $_POST['mtpc_registration_auto'] ); 28 update_site_option( 'mtpc_registration_auto_role', 29 (string) $_POST['mtpc_registration_auto_role'] ); 28 30 update_site_option( 'mtpc_force_ssl', 29 31 (bool) $_POST['mtpc_force_ssl'] ); -
metapic/trunk/templates/metapic-site-options.php
r2179160 r2179165 97 97 <tr> 98 98 <th scope="row"><label 99 for="mtpc-registration-auto-role"><?php _e( 'Automatic registration role', 100 'metapic' ) ?></label></th> 101 <td> 102 <select id="mtpc-registration-auto-role" name="mtpc_registration_auto_role"> 103 <?php foreach ( $roles as $role_id => $role ) { 104 $selected = ($role_id === $auto_reg_role) ? 'selected="selected"' : ''; 105 ?> 106 <option <?= $selected ?> value="<?= $role_id ?>"><?= $role['name'] ?></option> 107 <?php } ?> 108 </select> 109 </td> 110 </tr> 111 <tr> 112 <th scope="row"><label 99 113 for="mtpc-force-ssl"><?php _e( 'Force Https', 100 114 'metapic' ) ?></label></th> … … 109 123 </td> 110 124 </tr> 111 <tr>112 <th scope="row"><label113 for="mtpc-registration-auto"><?php _e( 'Сommercial message',114 'metapic' ) ?></label></th>115 <td>116 <label>117 <input type="checkbox" <?php checked( $commercial_interest_message ) ?>118 value="1" name="mtpc_commercial_interest_message">119 <?= __('Display commercial interest message', 'metapic'); ?></label>120 </td>121 </tr>125 <tr> 126 <th scope="row"><label 127 for="mtpc-registration-auto"><?php _e( 'Сommercial message', 128 'metapic' ) ?></label></th> 129 <td> 130 <label> 131 <input type="checkbox" <?php checked( $commercial_interest_message ) ?> 132 value="1" name="mtpc_commercial_interest_message"> 133 <?= __( 'Display commercial interest message', 'metapic' ); ?></label> 134 </td> 135 </tr> 122 136 <?php if ( $this->debugMode ) { ?> 123 137 <tr>
Note: See TracChangeset
for help on using the changeset viewer.