From e3b7e2cb8e747ea234ccd39c0e4859735893d8b5 Mon Sep 17 00:00:00 2001 From: Kim Coleman Date: Sun, 3 Dec 2023 15:23:46 -0500 Subject: [PATCH] Anchors on form submits so the message shows without needing to scroll to that section --- includes/manage-group-page.php | 88 +++++++++++++++++----------------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/includes/manage-group-page.php b/includes/manage-group-page.php index d71ba38..39f035f 100644 --- a/includes/manage-group-page.php +++ b/includes/manage-group-page.php @@ -335,7 +335,7 @@ function pmprogroupacct_shortcode_manage_group() { printf( esc_html__( 'Change the settings for group ID %1$s managed by %2$s.', 'pmpro-group-accounts' ), esc_html( $group->id ), '' . esc_html( $group_parent->display_name ) . '' ); ?>

-
+
@@ -359,7 +359,7 @@ function pmprogroupacct_shortcode_manage_group() { echo '

' . esc_html__( 'There are no active members in this group.', 'pmpro-group-accounts' ) . '

'; } else { ?> - + @@ -430,9 +430,9 @@ function pmprogroupacct_shortcode_manage_group() { -

-

- + +

+

-

- - -
-
- -

- -
- - - -
- - -
+
+

+ + +
+
+ +

+ +
-
-
- - -
- + // Just one child level in the group? Show as a hidden field. + if ( count( $group_settings['child_level_ids'] ) === 1 ) { + ?> + + +
+ + +
+ +
+
+ + +
+ +