Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d8942c8b0 | |||
| d4d6e9ddf1 |
@@ -2,13 +2,14 @@
|
||||
/**
|
||||
* Plugin Name: KGV Rollen Manager
|
||||
* Description: Erstellt zusätzliche WordPress-Rollen und vergibt Rechte direkt im Backend.
|
||||
* Version: 1.0.2
|
||||
* Version: 1.0.4
|
||||
* Author: Ronny Grobel
|
||||
* Author URI: https://apex-project.de/
|
||||
* Text Domain: kgv-role-manager
|
||||
* Plugin URI: https://apex-project.de/
|
||||
* Update URI: https://git.apex-project.de/Wordpress_Plugins/KGV-Role-Manager
|
||||
* Gitea Plugin URI: https://git.apex-project.de/Wordpress_Plugins/KGV-Role-Manager
|
||||
* Requires Plugins: KGV-Updater
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
@@ -348,20 +349,20 @@ final class KGV_Rollen_Manager {
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="role_name"><?php esc_html_e( 'Rollenname', 'kgv-role-manager' ); ?></label></th>
|
||||
<td><input name="role_name" id="role_name" type="text" class="regular-text" required value="<?php echo esc_attr( $edit_data['name'] ?? '' ); ?>"></td>
|
||||
<td><input name="role_name" id="role_name" type="text" class="regular-text" style="max-width:320px;width:100%;" required value="<?php echo esc_attr( $edit_data['name'] ?? '' ); ?>"></td>
|
||||
</tr>
|
||||
<?php if ( ! $edit_data ) : ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="role_slug"><?php esc_html_e( 'Rollen-Slug', 'kgv-role-manager' ); ?></label></th>
|
||||
<td>
|
||||
<input name="role_slug" id="role_slug" type="text" class="regular-text" value="">
|
||||
<input name="role_slug" id="role_slug" type="text" class="regular-text" style="max-width:320px;width:100%;" value="">
|
||||
<p class="description"><?php esc_html_e( 'Nur Kleinbuchstaben, Zahlen und Unterstriche. Leer lassen = automatisch aus dem Namen erzeugen.', 'kgv-role-manager' ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="source_role"><?php esc_html_e( 'Vorlage', 'kgv-role-manager' ); ?></label></th>
|
||||
<td>
|
||||
<select name="source_role" id="source_role">
|
||||
<select name="source_role" id="source_role" style="max-width:320px;width:100%;">
|
||||
<option value=""><?php esc_html_e( 'Keine Vorlage', 'kgv-role-manager' ); ?></option>
|
||||
<?php foreach ( $all_roles as $role_key => $role_data ) : ?>
|
||||
<option value="<?php echo esc_attr( $role_key ); ?>"><?php echo esc_html( translate_user_role( $role_data['name'] ) . ' (' . $role_key . ')' ); ?></option>
|
||||
|
||||
Reference in New Issue
Block a user