Skip to content

Commit

Permalink
Label elements for Manage Members email status radio buttons.
Browse files Browse the repository at this point in the history
See #3271.
  • Loading branch information
boonebgorges committed Nov 2, 2023
1 parent ae32315 commit 4bce6ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wp-content/themes/openlab/lib/plugin-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ function openlab_manage_members_email_status( $user_id = '', $group = '' ) {
echo '<h5>Email Status</h5>';

echo '<ul class="group-manage-members-bpges-status">';
echo ' <li><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'supersub', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/supersub/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="supersub" /> All Email</li>';
echo ' <li><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'dig', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/dig/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="dig" /> Daily</li>';
echo ' <li><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'sum', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/sum/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="sum" /> Weekly</li>';
echo ' <li><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'no', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/no/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="no" /> No Email</li>';
echo ' <li><label><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'supersub', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/supersub/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="supersub" /> All Email</label></li>';
echo ' <li><label><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'dig', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/dig/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="dig" /> Daily</label></li>';
echo ' <li><label><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'sum', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/sum/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="sum" /> Weekly</label></li>';
echo ' <li><label><input name="group-manage-members-bpges-status-' . esc_attr( $user_id ) . '" type="radio" ' . checked( 'no', $sub_type, false ) . ' data-url="' . esc_url( wp_nonce_url( $group_url . '/no/' . esc_attr( $user_id ) . '/', 'ass_member_email_status' ) ) . '" value="no" /> No Email</label></li>';

echo '</ul>';

Expand Down
4 changes: 4 additions & 0 deletions wp-content/themes/openlab/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10327,6 +10327,10 @@ input#group-request-send {
margin-left: 0;
padding-left: 0;
}
.group-manage-members.group-list .group-item .group-item-wrapper ul.group-manage-members-bpges-status label {
font-weight: normal;
margin-bottom: 0;
}
body.membership-requests .group-list {
margin-top: 0;
}
Expand Down
5 changes: 5 additions & 0 deletions wp-content/themes/openlab/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -3306,6 +3306,11 @@ input#group-request-send {
list-style-type: none;
margin-left: 0;
padding-left: 0;

label {
font-weight: normal;
margin-bottom: 0;
}
}
}
}
Expand Down

0 comments on commit 4bce6ac

Please sign in to comment.