analytics.php
3 months ago
design-preview.php
1 year ago
design-settings.php
3 months ago
display-settings.php
3 months ago
floating-widget-settings.php
1 year ago
meta-accounts.php
1 year ago
meta-button-style.php
1 year ago
selected-accounts.php
1 year ago
settings.php
1 year ago
url-settings.php
3 months ago
user-role-settings.php
3 months ago
woocommerce-button.php
3 months ago
user-role-settings.php
26 lines
| 1 | <?php |
| 2 | global $wp_roles; |
| 3 | ?> |
| 4 | <table class="form-table"> |
| 5 | <tbody> |
| 6 | <tr> |
| 7 | <th scope="row"><label for="nta-wa-select-user-roles"><?php echo esc_html__( 'Select User Roles to access', 'wp-whatsapp' ); ?></label></th> |
| 8 | <td> |
| 9 | <div style="line-height: 2" class="nta-wa-setting-width nta-wa-list-col4"> |
| 10 | <?php |
| 11 | foreach ( $wp_roles->roles as $key => $value ) { |
| 12 | ?> |
| 13 | <?php if ( 'administrator' !== $key ) { ?> |
| 14 | <span class="list-col4-item"> |
| 15 | <input type="checkbox" class="nta-wa-list-user-restrictions-item" id="<?php echo esc_attr( $key ); ?>" name="userRole[]" |
| 16 | value="<?php echo esc_attr( $key ); ?>" <?php echo isset( $option[ $key ] ) ? 'checked' : ''; ?>> |
| 17 | <label for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $value['name'] ); ?></label> |
| 18 | </span> |
| 19 | <?php } ?> |
| 20 | <?php } ?> |
| 21 | </div> |
| 22 | </td> |
| 23 | </tr> |
| 24 | </tbody> |
| 25 | </table> |
| 26 | <button class="button button-large button-primary wa-save"><span class="wa-save-text"><?php esc_html_e( 'Save Changes', 'wp-whatsapp' ); ?></span></button> |